A pedicle screw placement surgical path planning method, device and equipment
By performing vertebra instance segmentation and three-dimensional reconstruction on CT images of the spine, key feature points are identified, a local coordinate system is established, and the pedicle screw placement path is automatically planned. This solves the complex and time-consuming problem of surgical path planning in the existing technology and achieves Efficient and accurate path planning.
Patent Information
- Application Number
- CN202111518581.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-13
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-12-13
AI Technical Summary
During pedicle screw placement surgery, existing technology cannot guarantee the accuracy and efficiency of preoperative screw positions, resulting in complex and time-consuming surgical path planning. It relies on the personal experience of the surgeon, and it is difficult to guarantee the accuracy of the actual surgical path and the planned path. consistency.
By performing vertebral instance segmentation and three-dimensional reconstruction on CT images of the spine, key feature points are identified, a local coordinate system is established, key points of the surgical path are located, and pedicle screw placement paths are automatically planned to reduce human dependence and improve the accuracy of path planning. and efficiency.
It realizes the automation of pedicle screw placement surgical path planning, improves the accuracy and efficiency of path planning, and reduces dependence on surgeons. The evaluation results show an excellent and good rate of 93%, verifying the effectiveness of this method.
Smart Images

Figure CN114358388B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the medical field, and in particular to a method, device and equipment for planning a surgical path for pedicle screw placement. Background Art
[0002] Pedicle screw technology has been widely used in spinal surgery due to its good fixation effect in spinal fixation. However, the current preoperative screw placement plan is manually selected, which is complicated and time-consuming.
[0003] In actual surgery, the pedicle screw insertion point is determined by the surgeon's personal experience. There is no guarantee that the actual surgical path is consistent with the planned path, nor that the end instrument can accurately follow the planned path, which leads to large differences in the effect of pedicle screw insertion. How to automatically plan the path for pedicle screw insertion, simplify the steps of pedicle screw insertion path planning, and improve the efficiency and accuracy of pedicle screw insertion surgical path planning are the problems we need to solve at present. Summary of the invention
[0004] The embodiments of the present application provide a method, device and equipment for pedicle screw placement surgery path planning, which can automatically plan the pedicle screw placement surgery path, reduce the human dependence on the surgeon during pedicle screw placement surgery, and improve the accuracy and efficiency of pedicle screw placement surgery path planning.
[0005] In a first aspect, the present application provides a method for pedicle screw placement surgical path planning, comprising:
[0006] The scanned image of the target spine is processed for vertebral instance segmentation to obtain image data of multiple different vertebral segments in the target spine; the image data of the multiple vertebral segments are three-dimensionally reconstructed to obtain three-dimensional vertebral images corresponding to the multiple vertebral segments; based on vertebral features, the position information of key feature points corresponding to each vertebral segment in the scanned image is identified and recorded; based on the position information, local coordinate systems corresponding to the multiple vertebral segments are established; based on the multiple three-dimensional vertebral images, key points of the surgical path are located in the local coordinate systems corresponding to the multiple vertebral segments; based on the key points of the surgical path corresponding to the multiple vertebral segments, the surgical path corresponding to the vertebral segments is planned.
[0007] In an embodiment of the present application, image data of multiple different vertebral segments are obtained by performing vertebral instance segmentation on the scanned image, and a local coordinate system is established based on the position information of the key feature points of each vertebral segment obtained based on the vertebral features. The three-dimensional vertebral image reconstructed based on the image data of multiple vertebral segments is placed in the established local coordinate system to locate the key points of the surgical path, so that the surgical path of the corresponding vertebral segment is planned according to the obtained key points of the surgical path, which not only reduces the human dependence on the surgeon, but also improves the accuracy and efficiency of the surgical path planning for pedicle screw placement.
[0008] In a second aspect, the present application provides a pedicle screw placement surgical path planning device, comprising:
[0009] An instance segmentation unit, used for performing vertebral instance segmentation processing on the scanned image of the target spine to obtain image data of multiple different vertebral segments in the target spine;
[0010] A three-dimensional reconstruction unit, used for performing three-dimensional reconstruction on the image data of the plurality of vertebral segments to obtain three-dimensional vertebral images corresponding to the plurality of vertebral segments;
[0011] A position information recording unit, used to identify and record the position information of key feature points corresponding to each vertebral segment in the scanned image according to vertebral features;
[0012] A local coordinate system establishing unit, used for establishing local coordinate systems corresponding to a plurality of vertebral segments according to the position information;
[0013] A surgical path key point positioning unit, used for positioning the surgical path key points in the local coordinate system corresponding to the plurality of vertebral segments based on the plurality of three-dimensional vertebral images;
[0014] The path planning unit is used to plan the surgical path of the corresponding vertebral segment according to the key points of the surgical path corresponding to the plurality of vertebral segments.
[0015] In a third aspect, the present application provides a pedicle screw placement surgical path planning device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the method described in the first aspect or any optional method of the first aspect.
[0016] In a fourth aspect, 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 method described in the first aspect or any optional method of the first aspect is implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a pedicle screw placement surgery path planning device, the pedicle screw placement surgery path planning device enables the pedicle screw placement surgery path planning device to perform the steps of the pedicle screw placement surgery path planning method described in the first aspect above.
[0018] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0020] Figure 1 It is a flowchart of a pedicle screw placement surgical path planning method provided in an embodiment of the present application;
[0021] Figure 2 It is a schematic diagram of a network architecture of a neural network model provided in an embodiment of the present application;
[0022] Figure 3 It is a flowchart of a vertebral segment marking method provided in an embodiment of the present application;
[0023] Figure 4 A set of methods provided in an embodiment of the present application uses different labels to mark different vertebral segments;
[0024] Figure 5 is a flowchart of a method for extracting image data of vertebral segments provided in an embodiment of the present application;
[0025] Figure 6 is a flowchart of a method for acquiring a first spine image provided in an embodiment of the present application;
[0026] Figure 7 is a set of image data in the vertebral instance segmentation process provided by the embodiment of the present application, wherein Figure 7 (a) is the scanned image of the target spine. Figure 7 (b) is for Figure 7 The image data obtained after grayscale transformation and window adjustment of the image (a) in the figure is Figure 7 (c) is for Figure 7 The image data obtained after thresholding the image (b) in the figure is Figure 7 (d) is for Figure 7 Image data obtained after screening the vertebral region in (c);
[0027] Figure 8 It is a resampling schematic diagram provided in an embodiment of the present application;
[0028] Fig. 9 (a) is a first spine image provided in an embodiment of the present application. Fig. 9 (b) is a three-dimensional vertebral image of a target spine provided in an embodiment of the present application;
[0029] Fig.10 It is a flowchart of a method for obtaining location information of a key feature point provided in an embodiment of the present application;
[0030] Fig.11 (a) is the image of the closed spinal canal area. Fig.11 (b) shows the image of the unclosed spinal canal area. Fig.11 (c) shows an image of the spinal canal region where there is an incorrect judgment;
[0031] Fig.12 is a flow chart of a method for determining a reference plane of a local coordinate system provided in an embodiment of the present application;
[0032] Fig.13 is a schematic diagram of an image of a vertebral axis provided in an embodiment of the present application;
[0033] Fig.14 is an image schematic diagram of a second reference plane S provided in an embodiment of the present application;
[0034] Fig.15 It is a schematic diagram of an image provided by an embodiment of the present application, which describes a three-dimensional vertebral image in its corresponding local coordinate system;
[0035] Fig.16 (a) is a three-dimensional vertebral image before the uncorrected direction provided in an embodiment of the present application. Fig.16 (b) is a three-dimensional vertebral image after direction correction provided in an embodiment of the present application;
[0036] Fig.17 It is a flowchart of a method for locating key points of a surgical path provided by the present application;
[0037] Fig.18 The present application provides a schematic diagram of capturing multiple cross-sections of a shape including a pedicle region on a three-dimensional vertebral image;
[0038] Fig.19The present application provides an image schematic diagram that enables the pedicle areas on both sides to be completely included in the divided area;
[0039] Fig. 20 It is an image schematic diagram of key points of a surgical path provided in an embodiment of the present application;
[0040] Fig.21 is a path planning result graph provided in an embodiment of the present application;
[0041] Fig. 22 It is a structural schematic diagram of a pedicle screw placement surgical path planning device provided in an embodiment of the present application;
[0042] Fig.23 It is a structural schematic diagram of a pedicle screw placement surgical path planning device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In the following description, specific details such as specific system structures, technologies, etc. are provided 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 may 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 obstructing the description of the present application.
[0044] It should be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. In addition, in the description of the specification of this application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0045] It should also be understood that references to "one embodiment" or "some embodiments" etc. described in the specification of the present application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in the specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0046] This application proposes a pedicle screw placement surgery path planning method, first obtain the patient's preoperative CT image, that is, the scanned image below, use the deep learning neural network model to complete the segmentation of the spinal segment, obtain multiple different vertebral segments, and then perform feature recognition and extraction based on the image data of different vertebral segments, establish a local coordinate system for each vertebral segment, and automatically plan the surgical path of each vertebral segment in the pedicle screw placement surgery on the local coordinate system. By introducing a deep learning neural network model, it is possible to quickly and conveniently segment various complex scanned images, which greatly simplifies the process compared to traditional manual selection, reduces the time during the operation and improves versatility, not only reduces the human dependence on surgeons, but also improves the accuracy and efficiency of pedicle screw placement surgery path planning. By evaluating the path planning results, a 93% excellent rate was obtained, verifying the effectiveness of the extracted pedicle screw placement surgery path planning method.
[0047] See also Figure 1 , Figure 1 This is a flow chart of a pedicle screw placement surgical path planning method provided in an embodiment of the present application, which is described in detail as follows:
[0048] Step S101 : performing vertebral instance segmentation processing on the scanned image of the target spine to obtain image data of a plurality of different vertebral segments in the target spine.
[0049] In the embodiment of the present application, the scanned image is a two-dimensional plane scanned image obtained by plane scanning the target spine, including but not limited to a scanned image taken by means of a CT imaging device. Before the operation, the patient is scanned by a CT imaging device to obtain a scanned image of the target spine.
[0050] After acquiring the scanned image of the target spine, the scanned image is processed for vertebral instance segmentation through the trained neural network model to segment each vertebral segment, that is, the segmentation and extraction of different instances of each vertebral segment are completed from the scanned image of the entire target spine.
[0051] See also Figure 2 , Figure 2 It is a schematic diagram of the network architecture of a neural network model provided in an embodiment of the present application.
[0052] like Figure 2As shown in the figure, the network architecture of the neural network model is a fully convolutional iterative neural network architecture, which is mainly composed of three parts, wherein the main part, i.e., the first part, is a segmentation network, which is used to segment different vertebral segments from the scanned image of the target spine; the second part is an instance storage memory module, which is used to mark the segmented vertebral segments, and input the marked vertebral segments with different labels and the data set into the segmentation network at the same time, so that the process of segmenting the vertebral segments is from top to bottom, triggering the segmentation network to focus on the next vertebral segment in the next iteration; the third part is a classification network, which is used to distinguish different vertebral regions.
[0053] It should be noted that the dataset mentioned above is the spinal image data used to train the neural network model to obtain good parameters to achieve the segmentation goal. For example, the dataset can be Computational Spine Imaging (CSI) from MICCAI 2014, which mainly consists of CT scan images of the human spine, including image data of all thoracic and lumbar segments and different vertebral segments marked with different labels, and the scanned subjects are healthy young people aged 20-34.
[0054] When training the neural network model, the data set is divided into two groups, a training set and a test set. The image data in the training set is used to train the neural network model, and the image data in the test set is used to verify the training effect of the neural network model. The error of the trained neural network model on the test set is calculated, and the neural network model with the smallest error on the test set is used as the final trained neural network model.
[0055] like Figure 2 As shown in the figure, the number above the block indicates the number of channels of the feature image, and the value on the left side of the block indicates the size of the feature image. The input data of the input layer in the neural network model is a 128×128×128 voxel block containing two data channels, which is composed of an input data block and an instance storage data block. The input data block is image data containing the spine, such as the original spine scan image data used for training, the scan image data of the target spine, etc. The instance storage data block is the image data of the vertebral segment with labels stored in the instance storage memory module. The input data is convolved to form a 128×128×128 voxel block containing 84 data channels. The voxel block is a three-dimensional volume data formed by splicing multiple groups of scanned images together, and the size of the three-dimensional volume data is 128×128×128.
[0056] In the above neural network model, the data input into the neural network model are multiple or all scanned images with labels in the data set, the scanned image of the target spine, and the vertebral instance segmentation data obtained through the previous training.
[0057] like Figure 2 As shown in the figure, after the input image data is operated by the neural network model, a one-dimensional feature vector is obtained through dense operation in the last layer. The one-dimensional feature vector refers to the probability prediction of the complete visibility of the vertebra during the vertebral instance segmentation process, which is mainly used to judge the integrity of the vertebra. The one-dimensional feature vector is used to complete the complete visibility evaluation of the vertebra, and the instance storage memory module and classification network are used to complete the final vertebral instance segmentation task, and different labels of different vertebrae are extracted.
[0058] The hidden layer in the above neural network model includes convolution operation, normalization operation, excitation operation and up sampling. In each hidden layer, convolution is completed twice using 3×3×3 image blocks and then added with pooling operation to ensure the invariance of the data, reduce parameters and calculation amount while retaining features, achieve dimensionality reduction to prevent overfitting and improve generalization ability. At the same time, the ReLu activation function is used in each hidden layer to add nonlinear units, which not only reduces fitting, but also produces more efficient gradient descent and back propagation, avoiding the problems of gradient explosion and gradient disappearance. Multi-level convolution and pooling operations continuously increase the depth of the network and mine deeper scale information contained in the image. The weights and biases in the convolution process are continuously iteratively adjusted by the entire neural network model during back propagation to achieve a smaller loss function and optimize the classification effect.
[0059] During the convolution operation, an up-sampling branch is added. Through the up-sampling process, an intermediate instance segmentation storage module with a size similar to the input data set is obtained in the intermediate link such as the instance storage memory module. The currently completed instance segmentation is marked in the instance storage memory module, so that it can be used as input for the next iterative segmentation process. Provide guidance. Another branch that continuously convolves downward, as the output layer of the neural network model, outputs a one-dimensional vector, uses the Sigmoid excitation function to complete the instance classification division, and outputs the vertebral integrity score. The one-dimensional vector is used to evaluate the integrity of the vertebral segment, that is, the probability prediction of the vertebra being completely visible during the instance segmentation process. In the classification network, different labels are used to mark the segmented vertebral segments according to the vertebral features. In the process of training the neural network model, the neural network model is iteratively optimized through the loss function, so that the error of the trained neural network model on the test set is minimized to improve the instance segmentation accuracy.
[0060] In the embodiment of the present application, the calculation of the loss function includes segmentation error and classification error, wherein the loss function is specifically as follows:
[0061]
[0062] esegment =λ·FP soft +FN soft ;
[0063] e classify = -tlogp-(1-t)log(1-p);
[0064]
[0065]
[0066]
[0067] in, is the loss function, e segment is the segmentation error; e classify is the classification error; FP soft is the false positive rate; FN soft is the false negative rate; λ is the set weight; t is the true value label (0 or 1), p is the predicted probability value; t i is the binary truth label, p i t i The corresponding probability prediction value; ω i is the weight coefficient, γ and σ are adjustable parameters; d i represents the distance between the current voxel point in the three-dimensional volume data and the vertebra.
[0068] In the embodiment of the present application, when training the neural network model, λ=0.1, γ=8, σ=6 are set. When the neural network model is implemented using the PyTorch framework, the learning rate is set to 0.001, the dynamic increment is set to 0.99, and the number of iterations is set to 40,000. During the iteration process, the training parameters of the model are recorded when the loss function undergoes a reduction transformation, and the loss function is finally minimized. For example, At this time, the neural network model has a good segmentation effect on the spine, laying a good foundation for the surgical path planning of pedicle screw placement.
[0069] See also Figure 3 , Figure 3 This is a flow chart of a vertebral segment marking method provided in an embodiment of the present application, which is described in detail as follows:
[0070] Step S301, performing vertebral instance segmentation processing on the above scanned image through the trained neural network model.
[0071] In an embodiment of the present application, the scanned image and the data set are input into a trained neural network model. After the segmentation network, the instance storage memory module and the classification network of the neural network model perform convolution operations, normalization operations, excitation operations and up-sampling operations on the scanned image and the data set, a certain instance, i.e., a certain vertebral segment in the target spine, is segmented.
[0072] Step S302: searching for labels corresponding to the vertebral segments currently segmented according to the vertebral features.
[0073] In an embodiment of the present application, the label corresponding to the vertebral segment currently segmented is searched based on the vertebral features in the data set, and different vertebral features are marked with different labels, such as different colors, texts, color and text combinations, etc.
[0074] Step S303: Use the above-mentioned label to mark the above-mentioned vertebral segment currently segmented.
[0075] In an embodiment of the present application, after finding the label corresponding to the currently segmented vertebral segment, the label is used to mark the currently segmented vertebral segment and used as a parameter for iterative optimization of the neural network model.
[0076] Step S304, using the marked vertebral segments as inputs of the neural network model to perform iterative optimization processing, and outputting the next vertebral segment, until image data of multiple different vertebral segments in the target spine are obtained.
[0077] In an embodiment of the present application, after finding the corresponding label of the vertebral segment obtained by the current segmentation, the label is used to mark the vertebral segment, and the marked vertebral segment is input into the neural network model again for iterative optimization processing to guide the output of the next vertebral segment until image data of multiple different vertebral segments in the above-mentioned target spine are obtained.
[0078] It should be noted that the dataset contains spinal image data of different degrees of completeness, such as whole-segment spinal images, partial-segment spinal images, and other different types of image data, so that even scanned images with high complexity and high uncertainty can still have a good segmentation effect. Based on the results of label marking, the division of different vertebral segments can be completed, so that each vertebral data can be extracted accurately and quickly.
[0079] In some embodiments of the present application, a set of scanned images taken at different angles or orientations are segmented by a neural network to obtain the following: Figure 4 The set shown uses different labels to mark different vertebral segments. Figure 4As shown, each vertebral segment is marked with a different color. For example, from top to bottom, the first vertebral segment is marked with red, the second vertebral segment is marked with orange, etc.
[0080] See also Figure 5 , Figure 5 : is a flowchart of a method for extracting image data of vertebral segments provided in an embodiment of the present application, which is described in detail as follows:
[0081] Step S501, removing noise from the scanned image to obtain a first spinal image, wherein the noise is image data other than the vertebral segment in the scanned image.
[0082] In the embodiment of the present application, due to the existence of various complex structures in the human body and the problem of image shooting quality, the obtained scanned image includes a lot of image noise and the existence of bones in other areas in the same cross-section, such as ribs. In order to provide accuracy and efficiency of vertebral segmentation, it is necessary to clear these image data to obtain image data of the vertebral area of the target spine, and then perform instance segmentation processing on the image data of the vertebral area through a neural network.
[0083] See also Figure 6 , Figure 6 : is a flowchart of a method for acquiring a first spine image provided in an embodiment of the present application, which is described in detail as follows:
[0084] Step S601, performing image preprocessing on the scanned image to obtain a third spine image, wherein the image preprocessing includes grayscale transformation, window adjustment and threshold division processing.
[0085] In the embodiment of the present application, the third spine image is obtained by grayscale conversion, window adjustment, and threshold division processing on the scanned image. The third spine image is image data after the soft tissue part in the scanned image is removed, that is, the third spine image is image data containing bone parts, including but not limited to image data of bone parts such as the spine, ribs, and sternum.
[0086] Step S602: Calculate the area of the connected regions in the third spine image to obtain at least one connected region area.
[0087] Since the third vertebral image also includes image data of bones other than vertebrae, in order to improve the instance segmentation effect of vertebral segments, it is necessary to filter out the vertebral area from the third vertebral image to reduce the image data of other bones used in the neural network model to perform vertebral instance segmentation, thereby improving the accuracy of vertebral instance segmentation.
[0088] In an embodiment of the present application, an integral calculation is performed on the connected area existing in the third spinal image, and an area with a similar size to the spinal region, i.e., the spinal region, is screened out. The area of the connected area existing in the third spinal image is calculated to obtain at least one connected area area, which can effectively retain the vertebral parts required for path planning, thereby improving the accuracy of path planning.
[0089] In some embodiments of the present application, the area of the connected area is calculated by traversing the third vertebral image through a connected area area extraction calculation formula, and the connected area area extraction calculation formula is:
[0090] Do B i+1 =(B i ⊕S)∩A
[0091] Until B i+1 = = B i
[0092] Among them, A is the connected area, B i represents a pixel point in the connected area A, i is an integer, and i≥0; represents the value and the operator used for the operation, in the form of a 3*3 nine-square grid matrix, which is filled with the number 1.
[0093] It should be noted that when calculating the area of the connected region, the connected region area extraction calculation formula is used to iterate until B i Fill the entire connected area A and complete the extraction of connected area A.
[0094] Step S603: determining a vertebral region in the third spine image according to the area of at least one of the connected regions.
[0095] In the embodiment of the present application, when there are multiple connected regions in the third spine image, multiple connected region areas will be obtained, and the sizes of the obtained multiple connected regions will be compared to determine the vertebral region in the third spine image. For example, the vertebral region in the third spine image is determined based on the first largest connected region, and the first largest connected region is the connected region corresponding to the largest area among the connected region areas.
[0096] Step S604: extracting image data corresponding to the vertebral region from the third spine image to obtain the first spine image.
[0097] In the embodiment of the present application, after following up the first large connected area to determine the vertebral region in the third spinal image, the image data in the first large connected area is extracted to obtain the first spinal image, that is, an image containing only vertebral segments.
[0098] like Figure 7 As shown, Figure 7is a set of image data in the vertebral instance segmentation process provided by the embodiment of the present application, wherein Figure 7 (a) is the scanned image of the target spine. Figure 7 (b) is for Figure 7 The image data obtained after grayscale transformation and window adjustment of the image (a) in the figure is Figure 7 (c) is for Figure 7 The image data obtained after thresholding the image (b) in the figure is Figure 7 (d) is for Figure 7 Image data obtained after filtering the vertebral area in (c).
[0099] Step S502: resample the image data in the first spine image in a predetermined resolution direction to obtain a second spine image.
[0100] In an embodiment of the present application, due to the reasons of the CT equipment, in most cases the pixel spacing in the scanned image does not match the layer spacing. Therefore, after extracting the first spinal image, when reconstructing the three-dimensional volume data from the scanned image, such as performing three-dimensional reconstruction based on the image data of the vertebral segment to obtain the three-dimensional volume data corresponding to the vertebral segment, a large deviation will occur, resulting in a large error in the final planned surgical path. In order to avoid this situation, the first spinal image obtained needs to be resampled to complete the interpolation and completion process.
[0101] Since the pixel spacing and layer spacing of CT scan images are different during tomographic scanning, when converting them into three-dimensional volume data, it is necessary to resample the image data in the first spinal image in a predetermined resolution direction, such as a low-resolution direction, using a resampling calculation formula to obtain a second spinal image.
[0102] In the embodiment of the present application, the resampling calculation formula is as follows:
[0103]
[0104] A p =1-p-(1-2p)·D a
[0105] A q =1-q-(1-2q)·D b
[0106] A r =1-r-(1-2r)·D c
[0107] Among them, model(i,j,k) is the interpolated point, (i,j,k) is the coordinate information of the interpolated point; dcm(x+p,y+q,z+r) is the 8 vertices of the adjacent cube centered on the interpolation point, (x,y,z) is the coordinate information of a certain pixel point, p,q,r are auxiliary parameters, which take values of 0 and 1 respectively, indicating the sequence numbers of the 8 fixed points in the adjacent cube (such as Figure 8 As shown, Figure 8 is a resampling schematic diagram provided in an embodiment of the present application); A p ,A q ,A r is the auxiliary multiplier in the resampling calculation process, D a ,D b It is the pixel spacing on the cross section during CT scanning. c is the inter-slice distance during CT scanning.
[0108] Step S503: extracting image data of corresponding vertebral segments from the second spinal image according to the labels corresponding to the marked vertebral instances.
[0109] In an embodiment of the present application, the missing points, that is, the interpolated points, when converting the first spinal image into a three-dimensional second spinal image can be calculated through a resampling calculation formula, and then according to the labels corresponding to each marked vertebral instance, the image data of the vertebral segments corresponding to each vertebral instance can be extracted from the second spinal image to obtain image data of multiple different vertebral segments, thereby performing three-dimensional reconstruction based on the image data extracted from the multiple vertebral segments to obtain more accurate and practical three-dimensional volume data.
[0110] It should be noted that the obtained image data of multiple different vertebral segments include interpolated points calculated by the resampling calculation formula, so as to ensure that a more accurate three-dimensional vertebral image can be obtained when three-dimensional reconstruction is performed based on these image data.
[0111] Step S102, performing three-dimensional reconstruction on the image data of the plurality of vertebral segments to obtain three-dimensional vertebral images corresponding to the plurality of vertebral segments.
[0112] like Fig. 9 As shown, Fig. 9 (a) is a first spine image provided in an embodiment of the present application. Fig. 9 (b) is a three-dimensional vertebral image of a target spine provided in an embodiment of the present application. It can be seen from the figure that after the first spine image is resampled by the resampling calculation formula, three-dimensional volume data with more image data and more realistic is obtained.
[0113] Step S103, identifying and recording the position information of the key feature points corresponding to each vertebral segment in the scanned image according to the vertebral features.
[0114] In the embodiment of the present application, there are key feature points on each vertebral segment. By determining the position information of the key feature points, a local coordinate system of the corresponding vertebral segment can be established. Specific analysis can be performed through the local coordinate systems corresponding to different vertebral segments, and the relevant screw channel information for pedicle placement can be determined, thereby constructing a more accurate surgical path.
[0115] Vertebral features, also known as anatomical shape features, can be used to identify key feature points from the three-dimensional vertebral image of the target spine, thereby obtaining the position information of the identified key feature points, and then completing the local coordinate system of the corresponding vertebral segment based on the position information.
[0116] Step S104: establishing a local coordinate system corresponding to the plurality of vertebral segments according to the position information.
[0117] In the embodiment of the present application, the local coordinate system corresponding to each vertebral segment is established according to the position information of the key feature points of each vertebral segment. The position information includes the position information of the center point of the spinal canal and the position information of the center point of the vertebral body, that is, the position information includes the position information of the center point of the spinal canal and the position information of the center point of the vertebral body.
[0118] See also Fig.10 , Fig.10 : is a flow chart of a method for obtaining location information of a key feature point provided in an embodiment of the present application, which is described in detail as follows:
[0119] Step S1001, obtaining a vertebral cross-sectional image from the above scanned image by presetting a cross section.
[0120] In an embodiment of the present application, the preset cross-sections are planes of different shapes, including but not limited to square, rectangular, diamond and other shapes. The scanned image is sliced by the preset cross-sections, thereby obtaining multiple vertebral cross-sectional images from the scanned image. In each vertebral cross-sectional image, the main image information that needs to be identified includes the spinal canal area and the vertebral body area.
[0121] Step S1002, searching for the spinal canal region to be identified in the vertebral cross-sectional image according to the second largest connected region, wherein the second largest connected region is a connected region corresponding to the second largest area among the connected regions.
[0122] In the embodiment of the present application, since the shapes of the spinal canals in the multiple consecutive vertebral cross-sectional images are different, there may be unclosed spinal canal areas, which may lead to the problem of misjudging the center of the spinal canal. In order to avoid this situation and enhance the robustness of the algorithm for solving the spinal canal center so that it can accurately find the center of the spinal canal, it is necessary to statistically analyze the area data of the spinal canal area after determining the spinal canal area based on the second largest connected area, and ensure that the identified spinal canal center is in an accurate position through calculation and screening.
[0123] The data with too large area (spinal canal not closed) and too small area (spinal canal judgment error) in the statistical results are eliminated, and then a frequency distribution diagram is drawn based on the results. The interval with the highest frequency is selected as the vertebral segment interval with closed spinal canal and the clearest shape. The spinal canal center can be identified on vertebral bodies of different shapes and sizes in each vertebral segment, making the algorithm stable.
[0124] like Fig.11 As shown, Fig.11 (a) is the image of the closed spinal canal area. Fig.11 (b) shows the image of the unclosed spinal canal area. Fig.11 (c) in the figure shows an image in which a spinal canal region is misjudged. This is because there is an unclosed vertebral foramen and another closed non-vertebral foramen in the spinal canal region, resulting in misjudgment.
[0125] Step S1003, performing area integration and center calculation on the spinal canal region to obtain the spinal canal center point P in the vertebral cross-sectional image. i .
[0126] In the embodiment of the present application, by integrating the coordinates x and y of each pixel point in the spinal canal region and finding the average, the centroid of the spinal canal region is solved, that is, the spinal canal center point P in the vertebral cross-sectional image can be obtained. i .
[0127] Step S1004: Obtain the vertebral center point Q of the vertebral area in the above vertebral cross-sectional image by using the maximum inscribed circle geometric calculation method. i .
[0128] In the embodiment of the present application, for each vertebral cross-sectional image, the vertebral center point Q of the vertebral area in the vertebral cross-sectional image is obtained by using the Voronoi diagram to calculate the maximum inscribed circle geometric calculation method. i .
[0129] Before establishing the local coordinate system of each vertebral segment, it is necessary to determine the origin of the local coordinate system and three reference planes. The three reference planes are named the first reference plane, the second reference plane and the third reference plane, corresponding to the three planes between the x-axis and y-axis, the x-axis and z-axis, and the y-axis and z-axis of the coordinate system.
[0130] By obtaining a series of vertebral cross-sectional images corresponding to the same vertebral segment, that is, by obtaining a plurality of vertebral cross-sectional images from the scanned image through the first preset section, a plurality of vertebral canal center points and a plurality of vertebral body center points, as well as the position information of each vertebral canal center point and vertebral body center point can be obtained. After determining the position information of the vertebral canal center point as the origin of the local coordinate system, the reference plane of the above-mentioned local coordinate system is determined according to the position information of the vertebral canal center point and the position information of the vertebral body center point; and then the local coordinate system corresponding to the above-mentioned vertebral segment is established according to the above-mentioned origin and the above-mentioned reference plane.
[0131] See also Fig.12 , Fig.12 : is a flow chart of a method for determining a reference plane of a local coordinate system provided in an embodiment of the present application, which is described in detail as follows:
[0132] Step S1201, using the least squares fitting straight line formula of the coordinate points in space, the vertebral axis is determined according to the above-mentioned spinal canal center point position information.
[0133] In the embodiment of the present application, a plurality of vertebral cross-sectional images are obtained from the scanned image through the first preset cross-sectional image, and then based on the obtained plurality of vertebral cross-sectional images, the position information of the plurality of spinal canal center points and the plurality of vertebral body center points is obtained, and the least squares fitting straight line formula of the spatial coordinate point can be used to calculate the following: Fig.13 The vertebral axis is shown in , where the least squares fitting straight line formula of the spatial coordinate points is as follows:
[0134] x=a·z+b
[0135] y=c·z+d
[0136]
[0137] Among them, a, b, c, d are the parameters of the straight line equation in space, x, y, z are the points on the straight line equation in space, which are used to represent the straight line in space; P ix ,P iy ,P iz P is the center point of the spinal canal i The coordinate information of n is the center point of the spinal canal P i The number of
[0138] Step S1202: taking a plane perpendicular to the vertebral axis as a first reference plane of the local coordinate system.
[0139] In the embodiment of the present application, after the vertebral axis is determined, a plane perpendicular to the vertebral axis is drawn, and the plane perpendicular to the vertebral axis is the first reference plane of the local coordinate system.
[0140] Step S1203, fitting a second reference plane that meets a preset condition based on the first parameter of the plane system equation that meets the optimization condition, wherein the preset condition is a distance condition between the vertebral axis and the vertebral body center point position information.
[0141] In the embodiment of the present application, before determining the second reference plane, it is necessary to calculate so that the second reference plane is as close to all vertebral center points Q as possible. i , that is, it is necessary to calculate the shortest distance between the vertebral center point and the plane in the plane system passing through the vertebral axis in space, and use the sum of these distances as the optimization target to make the second reference plane as close to all vertebral center points Q as possible i .
[0142] Here, the first parameter is calculated by the first parameter calculation formula, wherein the first parameter calculation formula is as follows:
[0143] xa·z-b+k·(yc·zd)=0
[0144]
[0145] Among them, a, b, c, d are the parameters of the straight line equation in space, k is the parameter of the plane system equation, Q ix ,Q iy ,Q iz Q is the center point of the vertebra i The coordinate information of .
[0146] The first parameter k of the plane system equation that meets the optimization conditions is obtained by calculation, and then the following is fitted: Fig.14 The point Q shown passes through the vertebral axis and is closest to the center of all vertebrae i The plane S is used as the symmetry plane of the current vertebral segment, that is, the second reference plane S.
[0147] Step S1204: determining a third reference plane of the local coordinate system according to the first reference plane and the second reference plane.
[0148] In the embodiment of the present application, after obtaining the first reference plane and the second reference plane, the third reference plane in the spatial coordinate system can be directly calculated based on the first reference plane and the second reference plane. After determining the origin of the spatial coordinate system, a standardized local coordinate system can be obtained. Here, the center of the vertebral foramen closest to the center of the entire vertebral segment is selected as the origin of the spatial coordinate system, and the local coordinate system corresponding to the vertebral segment can be obtained.
[0149] Step S105: positioning key points of the surgical path in the local coordinate systems corresponding to the plurality of vertebral segments based on the plurality of three-dimensional vertebral images.
[0150] In the embodiment of the present application, the key points of the surgical path are the points of the screw path for pedicle screw placement. Fig.15 As shown, each three-dimensional vertebral image is placed in its corresponding local coordinate system for description, which is conducive to the subsequent accurate surgical path planning based on the identification of vertebral features and vertebral regions.
[0151] When the scanned image of the target spine is subjected to vertebral instance segmentation processing, the multiple vertebral segments obtained retain their original postures, and the vertebral postures in the final three-dimensional vertebral image also retain their original postures, which does not conform to conventional observation habits and is not convenient for the calculation and planning of the surgical path. Therefore, before locating the key points of the surgical path, it is also necessary to adjust the vertebral postures in the three-dimensional vertebral image so that the direction of the vertebral posture is the standard direction.
[0152] In some embodiments of the present application, the rotation matrix Rver can be used to transform Fig.16 The vertebral posture of the three-dimensional vertebral image before the uncorrected direction shown in (a) is corrected, and the following is obtained: Fig.16 (b) shows the three-dimensional vertebral image after the correct orientation.
[0153] See also Fig.17 , Fig.17 This is a flow chart of a method for locating key points of a surgical path provided by the present application, which is described in detail as follows:
[0154] Step S1701, intercepting a first section of the three-dimensional vertebral image through a vertebral auxiliary section, wherein the first section is a plurality of sections intercepted from a corresponding vertebral segment along a predetermined direction by the vertebral auxiliary section.
[0155] In the embodiment of the present application, the auxiliary vertebral section is a plane perpendicular to the second reference plane. i and the vertebral center point Q i The axial direction of the straight line, that is, the auxiliary section of the vertebra on the straight line P i Q i Move up. Fig.18 As shown, through the auxiliary section on the straight line P i Q i By moving upward, multiple cross-sections of the shape of the pedicle area can be intuitively obtained.
[0156] Step S1702: using a region segmentation method, segment the first section according to the first region and the second region to obtain a group of sections, wherein the group of sections includes a second section and a third section.
[0157] In the embodiment of the present application, the first cross section is divided into two parts according to the left and right regions by a region segmentation algorithm to obtain two cross sections.
[0158] like Fig.19 As shown, for the stability of the region segmentation algorithm, when dividing the region, both sides of the region need to retain a certain threshold margin so that the pedicle regions on both sides can be completely included in the divided area, and the information point data of the two sides of the region are further calculated in the first area and the second area respectively.
[0159] Step S1703: Determine a set of center position points corresponding to the set of cross sections by drawing the maximum inscribed circle.
[0160] In an embodiment of the present application, the method of continuously drawing the maximum inscribed circle on the cross section is used to find the position point closest to the center in the pedicle area of the two side areas, namely the first area and the second area. The center position point includes the center position point of the pedicle area of the first cross section and the center position point of the pedicle area of the second cross section.
[0161] Step S1704: determining a group of pedicle center position points based on the plurality of groups of center position points, wherein the group of pedicle center position points includes a first pedicle center position point and a second pedicle center position point.
[0162] In the embodiment of the present application, the center position points of multiple groups of cross sections can be obtained by using the method of drawing the maximum inscribed circle. Then, the center position points of the pedicle regions of the multiple groups of cross sections are divided into two groups according to the region division, for example, the center position points of the pedicle regions in the cross sections divided by the first region (for example, the left region of the first cross section) in the multiple groups of cross sections are divided into one group, and the center position points of the pedicle regions in the cross sections divided by the second region (for example, the right region of the first cross section) in the multiple groups of cross sections are divided into another group, so as to obtain two updated groups of center position points.
[0163] Here, the first pedicle center point is the average value of the sum of center points determined by the cross sections located in the first region, and the second pedicle center point is the average value of the sum of center points determined by the cross sections located in the second region.
[0164] In some embodiments of the present application, the two sets of center position points are obtained, and the center position points of the pedicle regions of two regions, such as the first region on the left and the second region on the right, are obtained by using the pedicle center position point solution formula. The pedicle center position point solution formula is as follows:
[0165]
[0166] Wherein, C is the center point of the pedicle region in the first region or the second region, C i is the center point of the maximum circumscribed circle obtained on the second section or the third section, and m is the number of the first sections.
[0167] Step S1705, calculating the path intersection of the pedicle screw placement surgery using the pedicle intersection calculation formula.
[0168] In the embodiment of the present application, according to the anatomy of the human spine, due to the symmetry of the human body, the intersection of the two pedicle path channel straight lines on the left and right is usually located on the symmetry axis of the vertebral end, and the intersection point M of the pedicle path can be determined by the different sizes of the vertebral segments, and the intersection point of the pedicle paths on both sides is calculated by the pedicle path intersection formula, wherein the pedicle path intersection formula is as follows:
[0169] QM=t·PQ
[0170] Where M is the intersection point of the pedicle path; P is the center point of the spinal canal i The center point of the vertebral canal closest to the origin in the local coordinate system, Q is the center point of the vertebral body Q i The vertebral center point closest to the origin in the local coordinate system; t is the proportional coefficient. Different vertebral segments correspond to different proportional coefficients t. The proportional coefficient t is a value selected based on experience after multiple tests and can be adjusted based on experimental conditions. For example, the proportional coefficient t in the L1-L4 segment lumbar vertebrae is 1, and the proportional coefficient t in the L5 segment is 0.7.
[0171] Step S1706, determining the key points of the surgical path according to a set of the above pedicle center position points and the above path intersection points.
[0172] In the present application example, C left Indicates the center point of the first pedicle, with C right Indicates the center point of the first pedicle.
[0173] Please refer to Fig. 20 , Fig. 20 is an image schematic diagram of key points of a surgical path provided in an embodiment of the present application; Fig. 20 As shown, the center point of the first pedicle is C leftConnect with the path intersection point M to get the first path planning straight line MC left , the center point of the second pedicle C right Connect with the path intersection point M to get the second path planning straight line MC right , where the first path planning straight line MC left and the second path planning straight line MC right Intersect at the path intersection point M.
[0174] Obtain the first path planning line MC from the 3D vertebral image left and the second path planning straight line MC right The coordinate point information is obtained and recorded, and the obtained coordinate point information is the key point of the surgical path.
[0175] Step S106, planning a surgical path corresponding to the vertebral segment according to the surgical path key points corresponding to the plurality of vertebral segments.
[0176] In an embodiment of the present application, after determining the key points of the surgical path, the corresponding spatial straight line equation can be obtained based on the coordinate information of the key points of the surgical path. The spatial straight line equation is the screw track planning path of the current vertebral segment, that is, the surgical path for pedicle screw placement.
[0177] Here, the planned surgical path is displayed on a three-dimensional vertebral image, as shown below: Fig.21 The path planning result diagram is shown. It can be seen intuitively from the path planning result diagram that the planned surgical path is in the center of the pedicle area. By using CT images as input data for pedicle screw placement surgical path planning, a good surgical approach channel is drawn, and the automatic planning of the screw path for a single vertebra is completed.
[0178] In an embodiment of the present application, image data of multiple different vertebral segments are obtained by performing vertebral instance segmentation on the scanned image, and a local coordinate system is established based on the position information of the key feature points of each vertebral segment obtained based on the vertebral features. The three-dimensional vertebral image reconstructed based on the image data of multiple vertebral segments is placed in the established local coordinate system to locate the key points of the surgical path, so that the surgical path of the corresponding vertebral segment is planned according to the obtained key points of the surgical path, which not only reduces the human dependence on the surgeon, but also improves the accuracy and efficiency of the surgical path planning for pedicle screw placement.
[0179] It should be understood 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.
[0180] Based on the pedicle screw placement surgical path planning method provided in the above embodiment, the present application further provides a device embodiment for implementing the above method embodiment.
[0181] See also Fig. 22 , Fig. 22 Schematic diagram of the pedicle screw placement surgery path planning device provided in the embodiment of the present application. The units included are used to execute Figure 1 For details, please refer to the steps in the corresponding embodiment. Figure 1 Related description in the corresponding embodiment: For ease of explanation, only the parts related to this embodiment are shown.
[0182] See also Fig. 22 The pedicle screw placement surgery path planning device 22 comprises:
[0183] An instance segmentation unit 221 is used to perform vertebral instance segmentation processing on the scanned image of the target spine to obtain image data of multiple different vertebral segments in the target spine;
[0184] A three-dimensional reconstruction unit 222, configured to perform three-dimensional reconstruction on the image data of the plurality of vertebral segments to obtain three-dimensional vertebral images corresponding to the plurality of vertebral segments;
[0185] A position information recording unit 223, used to identify and record the position information of the key feature points corresponding to each vertebral segment in the scanned image according to the vertebral features;
[0186] A local coordinate system establishing unit 224, used to establish a local coordinate system corresponding to a plurality of vertebral segments according to the position information;
[0187] A surgical path key point positioning unit 225, configured to position surgical path key points in a local coordinate system corresponding to a plurality of vertebral segments based on the plurality of three-dimensional vertebral images;
[0188] The path planning unit 226 is used to plan the surgical path of the corresponding vertebral segment according to the surgical path key points corresponding to the plurality of vertebral segments.
[0189] In one embodiment of the present application, the instance segmentation unit 221 includes:
[0190] An instance segmentation subunit, used for performing vertebra instance segmentation processing on the scanned image by using a trained neural network model;
[0191] The label search subunit is used to search for the label corresponding to the vertebral segment currently segmented according to the vertebral features;
[0192] A label marking subunit, used for marking the vertebral segment currently segmented using the label;
[0193] The iterative processing subunit is used to use the marked vertebral segment as the input of the neural network model for iterative optimization processing, and output the next vertebral segment until the image data of multiple different vertebral segments in the target spine are obtained.
[0194] In another embodiment of the present application, the instance segmentation unit 221 further includes:
[0195] The first image data extraction subunit is used to extract image data of a corresponding vertebral segment from the scanned image according to a label corresponding to the marked vertebral instance.
[0196] In another embodiment of the present application, the image data extraction subunit includes:
[0197] An image noise removal subunit, configured to remove noise from the scanned image to obtain a first spinal image, wherein the noise is image data other than the vertebral segment in the scanned image;
[0198] An image resampling subunit, configured to resample the image data in the first spine image in a predetermined resolution direction to obtain a second spine image;
[0199] The second image data extraction subunit is used to extract image data of corresponding vertebral segments from the second spine image according to the label corresponding to the marked vertebral instance.
[0200] In another embodiment of the present application, the image noise removal subunit includes:
[0201] An image preprocessing subunit, used for performing image preprocessing on the scanned image to obtain a third spine image, wherein the image preprocessing includes grayscale transformation, window adjustment and threshold division processing;
[0202] A connected region area calculation subunit, used to calculate the area of the connected region existing in the third spine image to obtain at least one connected region area;
[0203] A vertebral region determining subunit, configured to determine a vertebral region in the third spine image according to an area of at least one of the connected regions;
[0204] The third image data extraction subunit is used to extract the image data corresponding to the vertebral area from the third spine image to obtain the first spine image.
[0205] In a specific embodiment of the present application, the connected region area calculation subunit is specifically used for:
[0206] The area of the connected area is calculated by traversing the third vertebral image through the connected area area extraction calculation formula, and the connected area area extraction calculation formula is:
[0207]
[0208] Until B i+1 = = B i
[0209] Among them, A is the connected area, B i represents a pixel point in the connected area A, i is an integer, and i≥0; represents the value and the operator used for the operation, in the form of a 3*3 nine-square grid matrix, which is filled with the number 1.
[0210] In another specific embodiment of the present application, the connected region area calculation subunit is further used for:
[0211] A vertebral region in the third spine image is determined according to a first large connected region, wherein the first large connected region is a connected region corresponding to a maximum area among the areas of the connected regions.
[0212] The key feature points include the center point of the vertebral canal and the center point of the vertebral body.
[0213] In one embodiment of the present application, the location information recording unit 223 includes:
[0214] A vertebral cross-sectional image interception subunit, used for intercepting a vertebral cross-sectional image from the scanned image through a first preset section;
[0215] A spinal canal region search subunit, used to search for a spinal canal region to be identified from the vertebral cross-sectional image according to a second largest connected region, wherein the second largest connected region is a connected region corresponding to a second largest area among the connected regions;
[0216] A spinal canal center point calculation subunit, used for performing area integration and center calculation on the spinal canal region to obtain the spinal canal center point in the vertebral cross-sectional image;
[0217] The vertebral center point calculation subunit is used to obtain the vertebral center point of the vertebral area in the vertebral cross-sectional image by using the maximum inscribed circle geometric calculation method.
[0218] In one embodiment of the present application, the local coordinate system establishing unit 224 includes:
[0219] An origin position determination subunit, used to determine the position information of the center point of the vertebral canal as the origin of the local coordinate system;
[0220] A reference plane determination subunit, used to determine the reference plane of the local coordinate system according to the position information of the center point of the vertebral canal and the position information of the center point of the vertebral body;
[0221] The local coordinate system establishing subunit is used to establish the local coordinate system corresponding to the vertebral segment according to the origin and the reference plane.
[0222] The reference plane includes a first reference plane, a second reference plane and a third reference plane, and the reference plane determination subunit includes: a vertebral axis determination subunit, which is used to determine the vertebral axis according to the spinal canal center point position information and the vertebral body center point position information by using the least squares fitting straight line formula of the coordinate points in space;
[0223] A first plane determining subunit, configured to use a plane perpendicular to the vertebral axis as a first reference plane of the local coordinate system;
[0224] A second plane fitting subunit is used to fit a second reference plane that meets a preset condition according to a first parameter of the plane system equation that meets the optimization condition, wherein the preset condition is a distance condition between the vertebral axis and the vertebral body center point position information;
[0225] The third plane determining subunit is used to determine a third reference plane of the local coordinate system according to the first reference plane and the second reference plane.
[0226] In the embodiment of the present application, the surgical path key point positioning unit 225 includes:
[0227] A first section intercepting subunit, configured to intercept a first section of the three-dimensional vertebral image through a vertebral auxiliary section, wherein the first section is a plurality of sections intercepted from a corresponding vertebral segment along a predetermined direction by the vertebral auxiliary section;
[0228] A region segmentation section subunit, used for segmenting the first section according to the first region and the second region by a region segmentation method to obtain a group of sections, wherein the group of sections includes the second section and the third section;
[0229] A center position point determination subunit, used to determine a group of center position points corresponding to the group of cross sections by drawing a maximum inscribed circle;
[0230] A pedicle center position point determination subunit is used to determine a group of pedicle center position points according to the plurality of groups of center position points, wherein the group of pedicle center position points includes a first pedicle center position point and a second pedicle center position point;
[0231] A path intersection calculation subunit is used to calculate the path intersection of the pedicle screw placement surgery through the pedicle intersection calculation formula;
[0232] The surgical path key point determination subunit is used to determine the surgical path key points according to a group of pedicle center position points and the path intersection points.
[0233] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0234] Fig.23 Schematic diagram of a pedicle screw placement surgical path planning device provided in an embodiment of the present application. Fig.23 As shown, the pedicle screw placement surgery path planning device 23 of this embodiment includes: a processor 230, a memory 231, and a computer program 232 stored in the memory 231 and executable on the processor 230, such as a speech recognition program. When the processor 230 executes the computer program 232, the steps in the above-mentioned pedicle screw placement surgery path planning method embodiments are implemented, such as Figure 1 Alternatively, when the processor 230 executes the computer program 232, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Fig. 22 The functions of units 221-224 are shown.
[0235] Exemplarily, the computer program 232 can be divided into one or more modules / units, one or more modules / units are stored in the memory 231 and executed by the processor 230 to complete the present application. One or more modules / units can be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 232 in the pedicle screw placement surgical path planning device 23. For example, the computer program 232 can be divided into an instance segmentation unit 221, a three-dimensional reconstruction unit 222, a position information recording unit 223, a local coordinate system establishment unit 224, a surgical path key point positioning unit 225, and a path planning unit 226. For the specific functions of each unit, please refer to Figure 1 The relevant descriptions in the corresponding embodiments are not repeated here.
[0236] The pedicle screw placement surgery path planning device may include, but is not limited to, a processor 230 and a memory 231. Those skilled in the art will appreciate that Fig.23 It is only an example of the pedicle screw insertion surgery path planning device 23 and does not constitute a limitation of the pedicle screw insertion surgery path planning device 23. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the pedicle screw insertion surgery path planning device may also include input and output devices, network access devices, buses, etc.
[0237] The processor 230 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.
[0238] The memory 231 may be an internal storage unit of the pedicle screw placement surgery path planning device 23, such as a hard disk or memory of the pedicle screw placement surgery path planning device 23. The memory 231 may also be an external storage device of the pedicle screw placement surgery path planning device 23, 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 pedicle screw placement surgery path planning device 23. Further, the memory 231 may also include both an internal storage unit and an external storage device of the pedicle screw placement surgery path planning device 23. The memory 231 is used to store computer programs and other programs and data required by the pedicle screw placement surgery path planning device. The memory 231 may also be used to temporarily store data that has been output or is to be output.
[0239] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned pedicle screw placement surgical path planning method can be implemented.
[0240] An embodiment of the present application provides a computer program product. When the computer program product runs on a pedicle screw placement surgery path planning device, the pedicle screw placement surgery path planning device can implement the above-mentioned pedicle screw placement surgery path planning method when executed.
[0241] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0242] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0243] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0244] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A pedicle screw placement surgical path planning method, It is characterized in that The method comprises: Performing vertebral instance segmentation processing on the scanned image of the target spine to obtain image data of multiple different vertebral segments in the target spine; Performing three-dimensional reconstruction on the image data of the plurality of vertebral segments to obtain three-dimensional vertebral images corresponding to the plurality of vertebral segments; According to the vertebral features, identifying and recording the position information of the key feature points corresponding to each vertebral segment in the scanned image; According to the position information, establishing a local coordinate system corresponding to a plurality of the vertebral segments; Based on the plurality of three-dimensional vertebral images, locating key points of the surgical path in local coordinate systems corresponding to the plurality of vertebral segments; Planning a surgical path for the corresponding vertebral segment according to the key points of the surgical path corresponding to the plurality of vertebral segments; The step of performing vertebral instance segmentation processing on the scanned image of the target spine to obtain image data of a plurality of different vertebral segments in the target spine includes: Performing vertebral instance segmentation processing on the scanned image by using the trained neural network model; According to the vertebral features, find the label corresponding to the vertebral segment currently segmented; Using the label to mark the vertebral segment currently segmented; The marked vertebral segment is used as the input of the neural network model, the neural network model is iteratively optimized through a loss function, and the next vertebral segment is outputted until image data of multiple different vertebral segments in the target spine are obtained; The step of performing vertebral instance segmentation processing on the scanned image of the target spine to obtain image data of a plurality of different vertebral segments in the target spine includes: extracting image data of a corresponding vertebral segment from the scanned image according to a label corresponding to the marked vertebral instance; The step of extracting image data of a corresponding vertebral segment from the scanned image according to the label corresponding to the marked vertebral instance comprises: removing noise from the scanned image to obtain a first spinal image, wherein the noise is image data other than the vertebral segment in the scanned image; Resampling the image data in the first spine image in a direction of a predetermined resolution to obtain a second spine image; extracting image data of a corresponding vertebral segment from the second spinal image according to a label corresponding to the marked vertebral instance; The step of removing noise from the scanned image to obtain a first spine image comprises: Performing image preprocessing on the scanned image to obtain a third spine image, wherein the image preprocessing includes grayscale transformation, window adjustment and threshold division processing; Calculating the area of the connected regions existing in the third spine image to obtain at least one connected region area; Determine a vertebral region in the third spine image according to at least one of the connected region areas; Extracting image data corresponding to the vertebral region from the third spine image to obtain the first spine image; The key feature points include the center point of the spinal canal and the center point of the vertebral body; the identifying and recording the position information of the key feature points corresponding to each vertebral segment in the scanned image according to the vertebral features includes: By presetting the cross section, a vertebral cross-sectional image is obtained from the scanned image; searching for a spinal canal region to be identified from the vertebral cross-sectional image according to a second largest connected region, wherein the second largest connected region is a connected region corresponding to a second largest area among the connected regions; Performing area integration and center calculation on the spinal canal region to obtain the spinal canal center point in the vertebral cross-sectional image; Obtaining the vertebral body center point of the vertebral body region in the vertebral cross-sectional image by a maximum inscribed circle geometric calculation method; The position information includes the position information of the center point of the spinal canal and the position information of the center point of the vertebral body. The local coordinate systems corresponding to the multiple vertebral segments are established according to the position information, including: Determine the position information of the center point of the vertebral canal as the origin of the local coordinate system; Determining a reference plane of the local coordinate system according to the position information of the center point of the vertebral canal and the position information of the center point of the vertebral body; Establishing a local coordinate system corresponding to the vertebral segment according to the origin and the reference plane; Determining the reference plane of the local coordinate system according to the position information of the center point of the vertebral canal and the position information of the center point of the vertebral body includes: Using the least squares fitting straight line formula of the coordinate points in space, the vertebral axis is determined according to the position information of the center point of the spinal canal; The resampling calculation formula is as follows: in, is the interpolated point, is the coordinate information of the interpolated point; are the eight vertices of the adjacent cube centered at the interpolation point, is the coordinate information of a certain pixel point, are auxiliary parameters, with values of 0 and 1, respectively, representing the serial numbers of the eight fixed points in the adjacent cube. is the auxiliary multiplier in the resampling calculation process, is the pixel spacing on the cross section during CT scanning, is the inter-slice spacing during CT scanning.
2. The pedicle screw placement surgical path planning method as claimed in claim 1, It is characterized in that The calculating of the area of the connected region existing in the third spine image to obtain the area of at least one connected region includes: The area of the connected area is calculated by traversing the third spine image through the connected area area extraction calculation formula, and the connected area area extraction calculation formula is: Among them, A is the connected area, represents a pixel point in the connected area A, is an integer, and ; Represents the value and the operator used for the operation, in the form of a 3*3 nine-square grid, filled with the number 1.
3. The pedicle screw placement surgical path planning method as claimed in claim 1, It is characterized in that Determining the vertebral region in the third spine image according to the area of at least one of the connected regions comprises: A vertebral region in the third spine image is determined according to a first large connected region, wherein the first large connected region is a connected region corresponding to a maximum area among the areas of the connected regions.
4. The pedicle screw placement surgical path planning method according to claim 1, It is characterized in that The reference planes include a first reference plane, a second reference plane and a third reference plane, and the reference planes of the local coordinate system are determined according to the position information of the center point of the vertebral canal and the position information of the center point of the vertebral body, and further include: Taking a plane perpendicular to the vertebral axis as a first reference plane of the local coordinate system; According to the first parameter of the plane system equation that meets the optimization condition, fitting a second reference plane that meets the preset condition, wherein the preset condition is the distance condition between the vertebral axis and the position information of the vertebral body center point; A third reference plane of the local coordinate system is determined according to the first reference plane and the second reference plane.
5. The pedicle screw placement surgical path planning method according to claim 1, It is characterized in that The method of locating key points of the surgical path in a local coordinate system corresponding to the plurality of vertebral segments based on the plurality of three-dimensional vertebral images comprises: Cutting a first section of the three-dimensional vertebral image through a vertebral auxiliary section, wherein the first section is a plurality of sections obtained by cutting the vertebral auxiliary section from a corresponding vertebral segment along a predetermined direction; By using a region segmentation method, the first cross section is segmented according to the first region and the second region to obtain a group of cross sections, wherein the group of cross sections includes the second cross section and the third cross section; Determine a set of center position points corresponding to the set of cross sections by drawing a maximum inscribed circle; Determine a group of pedicle center position points according to the plurality of groups of center position points, wherein the group of pedicle center position points includes a first pedicle center position point and a second pedicle center position point; The intersection point of the pedicle screw insertion path is calculated using the pedicle intersection calculation formula; The key points of the surgical path are determined based on a group of pedicle center position points and the path intersection points.
6. A pedicle screw placement surgical path planning device, It is characterized in that include: An instance segmentation unit, used for performing vertebral instance segmentation processing on the scanned image of the target spine to obtain image data of multiple different vertebral segments in the target spine; A three-dimensional reconstruction unit, used for performing three-dimensional reconstruction on the image data of the plurality of vertebral segments to obtain three-dimensional vertebral images corresponding to the plurality of vertebral segments; A position information recording unit, used to identify and record the position information of key feature points corresponding to each vertebral segment in the scanned image according to vertebral features; A local coordinate system establishing unit, used for establishing local coordinate systems corresponding to a plurality of vertebral segments according to the position information; A surgical path key point positioning unit, used for positioning the surgical path key points in the local coordinate system corresponding to the plurality of vertebral segments based on the plurality of three-dimensional vertebral images; A path planning unit, used for planning a surgical path corresponding to the vertebral segment according to the key points of the surgical path corresponding to the plurality of vertebral segments; The instance segmentation unit comprises: An instance segmentation subunit, used for performing vertebra instance segmentation processing on the scanned image by using a trained neural network model; The label search subunit is used to search for the label corresponding to the vertebral segment currently segmented according to the vertebral features; A label marking subunit, used for marking the vertebral segment currently segmented using the label; an iterative processing subunit, configured to use the marked vertebral segment as an input of the neural network model, perform iterative optimization processing on the neural network model through a loss function, and output the next vertebral segment until image data of a plurality of different vertebral segments in the target spine are obtained; A first image data extraction subunit, configured to extract image data of a corresponding vertebral segment from the scanned image according to a label corresponding to the marked vertebral instance; The image data extraction subunit comprises: An image noise removal subunit, configured to remove noise from the scanned image to obtain a first spinal image, wherein the noise is image data other than the vertebral segment in the scanned image; An image resampling subunit, configured to resample the image data in the first spine image in a predetermined resolution direction to obtain a second spine image; A second image data extraction subunit is used to extract image data of a corresponding vertebral segment from the second spine image according to a label corresponding to the marked vertebral instance; The image noise removal subunit comprises: An image preprocessing subunit, used for performing image preprocessing on the scanned image to obtain a third spine image, wherein the image preprocessing includes grayscale transformation, window adjustment and threshold division processing; A connected region area calculation subunit, used to calculate the area of the connected region existing in the third spine image to obtain at least one connected region area; A vertebral region determining subunit, configured to determine a vertebral region in the third spine image according to an area of at least one of the connected regions; A third image data extraction subunit is used to extract image data corresponding to the vertebral region from the third spine image to obtain the first spine image; The location information recording unit includes: A vertebral cross-sectional image interception subunit, used for intercepting a vertebral cross-sectional image from the scanned image through a preset section; A spinal canal region search subunit, used to search for a spinal canal region to be identified from the vertebral cross-sectional image according to a second largest connected region, wherein the second largest connected region is a connected region corresponding to a second largest area among the connected regions; A spinal canal center point calculation subunit, used for performing area integration and center calculation on the spinal canal region to obtain the spinal canal center point in the vertebral cross-sectional image; A vertebral body center point calculation subunit, used to obtain the vertebral body center point of the vertebral body region in the vertebral cross-sectional image by a maximum inscribed circle geometric calculation method; The local coordinate system establishing unit comprises: An origin position determination subunit, used to determine the position information of the center point of the vertebral canal as the origin of the local coordinate system; A reference plane determination subunit is used to determine the reference plane of the local coordinate system according to the spinal canal center point position information and the vertebral body center point position information; wherein, the determination of the reference plane of the local coordinate system according to the spinal canal center point position information and the vertebral body center point position information includes: using the least squares fitting straight line formula of the coordinate points in space to determine the vertebral axis according to the spinal canal center point position information; A local coordinate system establishing subunit, used for establishing a local coordinate system corresponding to the vertebral segment according to the origin and the reference plane; The resampling calculation formula is as follows: in, is the interpolated point, is the coordinate information of the interpolated point; are the eight vertices of the adjacent cube centered at the interpolation point, is the coordinate information of a certain pixel point, are auxiliary parameters, with values of 0 and 1, respectively, representing the serial numbers of the eight fixed points in the adjacent cube. is the auxiliary multiplier in the resampling calculation process, is the pixel spacing on the cross section during CT scanning, is the inter-slice spacing during CT scanning.
7. A pedicle screw placement surgical path planning device, It is characterized in that The method comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the pedicle screw placement surgical path planning method as described in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the pedicle screw placement surgical path planning method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Spine detecting, positioning and marking method and system and electronic equipment
CN109919903A
Pedicle screw operation path automatic planning method based on deep learning network
CN110738681A
Intervertebral disc section image construction method and device, computer equipment and storage medium
CN110992243A
CT image pedicle screw channel planning method and system based on deep learning
CN111598948A
CT image vertebra positioning method and device, equipment and medium
CN111932533A
