Pedicle image segmentation method and device, computer equipment and storage medium
Through the combination of deep learning and computer graphics technology, automatic identification and three-dimensional measurement of vertebral pedicles are achieved, which solves the problem of inaccurate vertebral pedicle segmentation in traditional methods and improves the accuracy and efficiency of spinal surgery planning.
Patent Information
- Application Number
- CN202411268702.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional methods cannot accurately segment and identify vertebral pedicles in spinal surgery planning, leading to inaccuracy and safety issues in surgical planning, and low manual measurement efficiency.
A pedicle segmentation model based on deep learning is used, combined with CT scan image data and computer graphics technology, to automatically identify and segment the cortical bone and cancellous bone areas of the pedicle. Data quality is ensured through resampling and standardization, and U -Net architecture neural network model for segmentation and three-dimensional size measurement.
It achieves precise segmentation and identification of vertebral pedicles, improves the accuracy and efficiency of surgical planning, reduces doctor preparation time, and enhances the efficiency and quality of the surgical process.
Smart Images

Figure CN118799341A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of data processing, and in particular to a pedicle image segmentation method, device, computer equipment and storage medium. Background Art
[0002] Determining the size of the pedicle is a key step in the planning of spinal surgery. However, traditional methods have many shortcomings in these aspects. The surgeon usually measures the narrowest part of the pedicle by viewing the preoperative CT images to determine its diameter. However, this process relies on manual measurement and is easily affected by CT equipment parameters, scanning technology, and measurement selection bias, resulting in poor accuracy and repeatability of the measurement results. In addition, manual measurement is inefficient and cannot meet the efficient needs of surgical planning.
[0003] In recent years, some researchers have tried to combine traditional image processing and deep learning strategies to improve the accuracy and efficiency of spinal image segmentation. For example, CN114998301B proposed a method that uses vertebral sub-region data manually annotated by experts to train a deep learning model to achieve automatic segmentation of vertebral sub-regions in CT images. Based on data preprocessing and enhancement, this method quickly and accurately completes vertebral sub-region segmentation through model training, thereby improving the efficiency of clinical diagnosis and surgical planning. However, the limitation of this method is that it can only segment the end plates, lateral plates, and cancellous bones of the vertebral body, and fails to segment the pedicles, which limits the accuracy of surgical planning.
[0004] In spinal surgery, the segmentation and identification of pedicles are crucial, especially in standard surgical procedures such as internal fixation surgery and vertebroplasty. The implantation of pedicle screws and the injection of bone cement usually need to be performed through the pedicle channel. If the pedicle cannot be accurately identified and evaluated, the surgical risk may increase. Therefore, although the CN114998301B method has been improved in some aspects, the shortcomings in pedicle segmentation and identification are still a problem that needs to be solved in spinal surgery planning. This deficiency not only affects the accuracy and safety of the operation, but also limits the improvement of the overall surgical effect. Summary of the invention
[0005] The main purpose of the present invention is to provide a pedicle image segmentation method, device, computer equipment and storage medium to solve the problem that the existing technology cannot achieve pedicle segmentation, which limits the accuracy of surgical planning.
[0006] To achieve the above-mentioned purpose, the present invention provides a pedicle image segmentation method, characterized in that it includes the following steps: acquiring CT scan image data of a cone, and inputting the CT scan image data into a preset pedicle segmentation model; using the pedicle segmentation model to identify and segment multiple target areas in the CT scan image data to obtain a segmentation mask, wherein the target area at least includes: a cortical bone area of the pedicle and a cancellous bone area of the pedicle; according to the principle of computer graphics, performing anatomical morphological recognition on the segmentation mask to obtain the three-dimensional size corresponding to each of the target areas.
[0007] Furthermore, CT scan image data of the cone is obtained, and the CT scan image data is input into a preset pedicle segmentation model, including: obtaining the CT scan image data of the cone, and determining the spatial resolution of the CT scan image data; calculating the resampling ratio of the CT scan image data in multiple dimensions based on the spatial resolution of the CT scan image data and a preset target spatial resolution; using a linear interpolation method, resampling the CT scan image data based on the resampling ratio to obtain the resampled CT scan image data; calculating a target parameter value of the full pixel value in the resampled CT scan image data; mapping the range of the original pixel value in the resampled CT scan image data to a standardized distribution according to the target parameter value to obtain the CT scan image data after the pixel value is standardized; and inputting the CT scan image data after the pixel value is standardized into the preset pedicle segmentation model.
[0008] Further, calculating the target parameter value of the full pixel value in the resampled CT scan image data includes: calculating the average value and standard deviation of the full pixel value in the resampled CT scan image data; mapping the range of original pixel values in the resampled CT scan image data to a standardized distribution according to the target parameter value to obtain the CT scan image data after pixel value standardization, including: using a first formula to calculate the average value and standard deviation of the full pixel value, mapping the range of original pixel values in the resampled CT scan image data to a standard normal distribution, and obtaining the CT scan image data after pixel value standardization; wherein the first formula is: , and is the mean and standard deviation of all pixel values, and are the pixel values before and after normalization.
[0009] Furthermore, the pedicle segmentation model is a neural network model based on the U-Net architecture of CNN. The pedicle segmentation model is used to identify and segment multiple target areas in the CT scan image data to obtain a segmentation mask, including: using the backbone network of the pedicle segmentation model, performing a convolution operation on the CT scan image data through a 3×3 convolution kernel to extract high-dimensional features; performing a transposed convolution operation on the CT scan image data to restore the CT scan image data to the original size of the CT scan image data; using the multi-task mask classification processor of the pedicle segmentation model, segmenting the restored CT scan image data based on the high-dimensional features to obtain the segmentation mask, wherein the segmentation mask includes: a pedicle cortical bone mask and a cancellous bone mask.
[0010] Furthermore, after the high-dimensional features and the restored CT scan image data are segmented by the multi-task mask classification processor of the pedicle segmentation model to obtain the segmentation mask, the segmentation method further includes: performing recognition processing on the output segmentation mask by a loss function in the pedicle segmentation model, wherein the loss function includes: , X is the predicted mask, and Y is the correct mask; obtaining a recognition processing result, and performing back propagation correction on the parameters of the pedicle segmentation model according to the recognition processing result.
[0011] Furthermore, after the pedicle segmentation model is used to identify and segment multiple target areas in the CT scan image data to obtain a segmentation mask, the segmentation method also includes: performing reverse resampling processing on the segmentation mask to restore the segmentation mask to the original size of the CT scan image data and keep it consistent with the resolution of the CT scan image data to obtain a first segmentation mask; performing a connectivity test on the first segmentation mask to determine the holes and fragments in the segmentation mask, and filling the holes and removing the fragments through morphological operations to obtain a second segmentation mask; smoothing the second segmentation mask to obtain a final segmentation mask, and using the final segmentation mask to execute the step of "performing anatomical morphological recognition on the segmentation mask according to computer graphics principles to obtain the three-dimensional dimensions corresponding to each of the target areas."
[0012] Furthermore, according to the principles of computer graphics, the segmentation mask is subjected to anatomical morphological recognition to obtain the three-dimensional size corresponding to each of the target areas, including: using principal component analysis to calculate the covariance between each two dimensions X and Y of each segmentation mask to obtain a 3×3 covariance matrix A; solving the 3×3 covariance matrix A to obtain a feature matrix and eigenvalues; performing a dot multiplication process on the segmentation mask and the inverse matrix of the feature matrix corresponding to the segmentation mask to obtain an initial bounding box corresponding to the segmentation mask; performing a dot multiplication process on the initial bounding box corresponding to the segmentation mask and the inverse matrix of the feature matrix corresponding to the segmentation mask to obtain a directed bounding box corresponding to the segmentation mask; and measuring the size of the directed bounding box in each direction to obtain the three-dimensional size of the target area.
[0013] The present invention provides a pedicle image segmentation device, comprising: an acquisition unit, used for acquiring CT scan image data of a cone, and inputting the CT scan image data into a preset pedicle segmentation model; a segmentation unit, used for performing identification and segmentation processing on multiple target areas in the CT scan image data through the pedicle segmentation model to obtain a segmentation mask, wherein the target area at least includes: a cortical bone area of the pedicle and a cancellous bone area of the pedicle; and an identification unit, used for performing anatomical morphological identification on the segmentation mask according to computer graphics principles to obtain the three-dimensional size corresponding to each of the target areas.
[0014] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0015] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.
[0016] The pedicle image segmentation method, device, computer equipment and storage medium provided by the present invention are intended to solve the shortcomings of traditional methods in measuring pedicle size in spinal surgery planning. By combining deep learning and computer graphics technology, the method can achieve accurate segmentation and identification of pedicles and provide more accurate and efficient surgical planning support. The following is a detailed explanation of the technical solution: First, high-resolution scanned image data of the vertebral body is obtained through CT equipment. These image data contain detailed structural information of different parts of the spine. These data are input into a pre-trained pedicle segmentation model, which is trained based on a large amount of manually annotated pedicle data and can identify different regions of the pedicle. The segmentation model processes the input CT image data and automatically identifies and segments multiple target regions of the pedicle, including cortical bone regions and cancellous bone regions. Through deep learning algorithms, the model can accurately locate and segment these regions and generate corresponding segmentation masks. The segmentation mask is a binary image in which the value of each pixel indicates whether the point belongs to a specific anatomical region. Finally, using the principles of computer graphics, the segmentation mask is further processed to identify the three-dimensional dimensions of each target region. By measuring these dimensions, the specific anatomical data of the pedicle can be obtained, including the thickness and volume of cortical bone and cancellous bone. These data provide an important reference for surgical planning and execution.
[0017] Traditional methods rely on manual measurement, and there is a problem that the measurement results are easily affected by equipment parameters, scanning technology, and measurement bias. The method of the present invention realizes automatic recognition and segmentation of different areas of the pedicle through an automated deep learning model, avoiding the subjectivity of manual measurement and improving the accuracy and repeatability of the measurement. Existing methods can only segment partial areas of the vertebral body (such as end plates, lateral plates, and cancellous bones), while the method of the present invention is extended to the recognition and segmentation of the cortical bone and cancellous bone of the pedicle, providing more comprehensive and detailed anatomical information. This is crucial for spinal surgery planning, especially for operations such as pedicle screw implantation and bone cement injection.
[0018] By performing anatomical morphological recognition on the segmentation mask, this method can accurately calculate the three-dimensional size of each target area. This three-dimensional measurement can not only provide accurate anatomical data for surgery, but also help doctors better understand the structure of the surgical area through three-dimensional visualization, thereby improving the accuracy and operability of surgical planning. The combination of automated segmentation and three-dimensional measurement enables this method to greatly improve measurement efficiency while ensuring measurement accuracy. This advancement can significantly reduce the preparation time of doctors in surgical planning and improve the efficiency and quality of the overall surgical process.
[0019] In summary, the method of the present invention realizes the automatic recognition, segmentation and three-dimensional measurement of pedicles through the combination of deep learning models and computer graphics, overcomes the shortcomings of traditional methods, provides more accurate and efficient surgical planning support, and has significant technological progress. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 1 is a schematic diagram of the steps of a method for segmenting a pedicle image in one embodiment of the present invention; Figure 2 is a schematic diagram of the structure of a segmentation model in one embodiment of the present invention Figure 1 ; Figure 3 is a schematic diagram of the structure of a segmentation model in one embodiment of the present invention Figure 2 ; Figure 4 is a schematic structural diagram of a pedicle region segmentation result in one embodiment of the present invention; Figure 5 is a structural block diagram of a pedicle image segmentation device in one embodiment of the present invention; Figure 6 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.
[0021] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0023] Reference Figure 1 , an embodiment of the present invention provides a pedicle image segmentation method, comprising: S1: Acquire CT scan image data of the cone, and input the CT scan image data into a preset pedicle segmentation model.
[0024] S2: using the pedicle segmentation model to identify and segment multiple target areas in the CT scan image data to obtain a segmentation mask, wherein the target area at least includes: a cortical bone area of the pedicle and a cancellous bone area of the pedicle.
[0025] S3: According to the principles of computer graphics, the segmentation mask is subjected to anatomical morphological recognition to obtain the three-dimensional size corresponding to each of the target regions.
[0026] The pedicle image segmentation method provided in the embodiment of the present invention aims to solve the shortcomings of the traditional method in measuring the pedicle size in spinal surgery planning. By combining deep learning and computer graphics technology, this method can achieve accurate segmentation and identification of pedicles and provide more accurate and efficient surgical planning support. The following is a detailed explanation of the technical solution: First, high-resolution scanned image data of the vertebral body is obtained through CT equipment. These image data contain detailed structural information of different parts of the spine. These data are input into a pre-trained pedicle segmentation model, which is trained based on a large amount of manually annotated pedicle data and can identify different regions of the pedicle. The segmentation model processes the input CT image data and automatically identifies and segments multiple target regions of the pedicle, including cortical bone regions and cancellous bone regions. Through deep learning algorithms, the model can accurately locate and segment these regions and generate corresponding segmentation masks. The segmentation mask is a binary image in which the value of each pixel indicates whether the point belongs to a specific anatomical region. Finally, using the principles of computer graphics, the segmentation mask is further processed to identify the three-dimensional dimensions of each target region. By measuring these dimensions, the specific anatomical data of the pedicle can be obtained, including the thickness and volume of cortical bone and cancellous bone. These data provide an important reference for surgical planning and execution.
[0027] Traditional methods rely on manual measurement, and there is a problem that the measurement results are easily affected by equipment parameters, scanning technology, and measurement bias. The method of the present invention realizes automatic recognition and segmentation of different areas of the pedicle through an automated deep learning model, avoiding the subjectivity of manual measurement and improving the accuracy and repeatability of the measurement. Existing methods can only segment partial areas of the vertebral body (such as end plates, lateral plates, and cancellous bones), while the method of the present invention is extended to the recognition and segmentation of the cortical bone and cancellous bone of the pedicle, providing more comprehensive and detailed anatomical information. This is crucial for spinal surgery planning, especially for operations such as pedicle screw implantation and bone cement injection.
[0028] By performing anatomical morphological recognition on the segmentation mask, this method can accurately calculate the three-dimensional size of each target area. This three-dimensional measurement can not only provide accurate anatomical data for surgery, but also help doctors better understand the structure of the surgical area through three-dimensional visualization, thereby improving the accuracy and operability of surgical planning. The combination of automated segmentation and three-dimensional measurement enables this method to greatly improve measurement efficiency while ensuring measurement accuracy. This advancement can significantly reduce the preparation time of doctors in surgical planning and improve the efficiency and quality of the overall surgical process.
[0029] In summary, the method of the present invention realizes the automatic recognition, segmentation and three-dimensional measurement of pedicles through the combination of deep learning models and computer graphics, overcomes the shortcomings of traditional methods, provides more accurate and efficient surgical planning support, and has significant technological progress.
[0030] Furthermore, CT scan image data of the cone is obtained, and the CT scan image data is input into a preset pedicle segmentation model, including: obtaining the CT scan image data of the cone, and determining the spatial resolution of the CT scan image data; calculating the resampling ratio of the CT scan image data in multiple dimensions based on the spatial resolution of the CT scan image data and a preset target spatial resolution; using a linear interpolation method, resampling the CT scan image data based on the resampling ratio to obtain the resampled CT scan image data; calculating a target parameter value of the full pixel value in the resampled CT scan image data; mapping the range of the original pixel value in the resampled CT scan image data to a standardized distribution according to the target parameter value to obtain the CT scan image data after the pixel value is standardized; and inputting the CT scan image data after the pixel value is standardized into the preset pedicle segmentation model.
[0031] The pedicle image segmentation method provided by the present invention further optimizes the processing of CT scan image data to ensure the quality and consistency of the segmentation model input data. The following is a detailed explanation of each step in the technical solution.
[0032] First, high-resolution scanned image data of the vertebrae are obtained through CT equipment. These image data record the detailed structural information of various parts of the spine. In order to ensure that these data have consistent spatial resolution when the model is processed, the system first determines the spatial resolution of the acquired CT scan image data. Next, based on the actual spatial resolution of the CT scan image data and the preset target spatial resolution, the system calculates the resampling ratio of the CT scan image data in multiple dimensions. This step is to ensure that the image data has a consistent resolution before being input into the segmentation model, thereby improving the processing effect and accuracy of the segmentation model.
[0033] Using the linear interpolation method, the system resamples the CT scan image data according to the calculated resampling ratio. The purpose of resampling is to adjust the resolution of the image data to meet the preset standards. The resampled CT scan image data can better meet the needs of the segmentation model and improve the recognition accuracy of the model. Subsequently, the system calculates the target parameter value of the full pixel value in the resampled CT scan image data. This target parameter value is determined based on the grayscale distribution and other characteristics of the image data in order to standardize the image data so that it has a uniform distribution characteristic.
[0034] According to the calculated target parameter values, the system maps the original pixel value range in the resampled CT scan image data to the standardized distribution. Through this standardization process, the pixel values in the image data are adjusted to a predetermined range, thereby reducing the impact caused by equipment differences and different scanning conditions, and ensuring the consistency and reliability of the segmentation model input data. Finally, the system inputs the CT scan image data after pixel value standardization into the preset pedicle segmentation model. This model is trained based on a large amount of annotated data and can automatically identify and segment the pedicle area in the CT image data, including the cortical bone and cancellous bone areas. Through this automated processing, the system can accurately and efficiently complete the identification and segmentation of the pedicle, providing accurate data support for spinal surgery planning.
[0035] This method is a significant improvement over traditional methods. Through automated resampling and standardization, the quality and consistency of image data are guaranteed.
[0036] Furthermore, calculating the target parameter value of the full pixel value in the resampled CT scan image data includes: calculating the average value and standard deviation of the full pixel value in the resampled CT scan image data.
[0037] And, mapping the range of original pixel values in the resampled CT scan image data to a standardized distribution according to the target parameter value to obtain the CT scan image data after pixel value standardization, including: using a first formula to calculate the average value and standard deviation of the full pixel value, mapping the range of original pixel values in the resampled CT scan image data to a standard normal distribution, and obtaining the CT scan image data after pixel value standardization; wherein the first formula is: , and is the mean and standard deviation of all pixel values, and are the pixel values before and after normalization.
[0038] The pedicle image segmentation method provided by the present invention further explains in detail the steps of standardizing the resampled CT scan image data. Through these processes, the consistency and reliability of the image data before inputting into the segmentation model are ensured.
[0039] When standardizing the resampled CT scan image data, it is first necessary to calculate the target parameter values of the full pixel values in these data. Specifically, these target parameter values include the mean and standard deviation of the full pixel values of the resampled CT scan image data. By calculating the mean of the full pixel values, the central trend of the image data can be determined; by calculating the standard deviation of the full pixel values, the dispersion of the image data can be understood. After the calculation is completed, according to these target parameter values, the range of the original pixel values in the resampled CT scan image data is mapped to the standardized distribution. To this end, a standardized formula is used to adjust the original pixel values to the standard normal distribution. The specific calculation method for standardization is as follows: First, the average value of all pixel values of the resampled CT scan image data is calculated ( ) and standard deviation ( ). Next, the first formula is used to map the original pixel value range to the standard normal distribution. Through the above standardization process, each original pixel value will be adjusted to a new value, and the new value follows the standard normal distribution, that is, the mean value is 0 and the standard deviation is 1. This process ensures that the pixel values of the image data have a uniform scale, reduces the differences under different CT scanning conditions, and improves the accuracy of the segmentation model processing. Finally, the standardized CT scan image data is input into the preset pedicle segmentation model.
[0040] In general, the consistency of the input data is ensured by calculating the mean and standard deviation of the full pixel values of the resampled CT scan image data and mapping them to the standard normal distribution. This standardization process reduces the differences caused by different CT scanning equipment, scanning parameters, and scanning conditions, thereby improving the accuracy and stability of the segmentation model processing. After the image data is standardized, the distribution of the model input data is more stable, avoiding the interference of extreme values and outliers, which enhances the robustness of the segmentation model and enables it to have better generalization ability when processing different data sets.
[0041] The resampling and standardization processing steps ensure that the image data reaches the optimal state before entering the segmentation model through automated calculation and processing, reducing the need for subsequent manual adjustment and processing. This not only improves the overall processing efficiency, but also reduces potential errors caused by human intervention. Through linear interpolation resampling and standardized distribution mapping, the resolution and grayscale distribution of CT image data are more uniform and standardized. High-quality data input helps to improve the accuracy of the segmentation model and ensure that the segmentation results are more reliable.
[0042] The standardized image data has uniform scale and distribution characteristics, which is convenient for model training and application. Standardized data input not only improves the efficiency of model training, but also ensures the consistency and reliability of the model in practical applications. Through these further processing steps, this technical solution significantly improves the quality and consistency of CT image data, provides more reliable input data for subsequent pedicle segmentation models, and ultimately improves the accuracy and efficiency of the segmentation model.
[0043] Furthermore, the pedicle segmentation model is a neural network model based on the U-Net architecture of CNN. The pedicle segmentation model is used to identify and segment multiple target areas in the CT scan image data to obtain a segmentation mask, including: using the backbone network of the pedicle segmentation model, performing a convolution operation on the CT scan image data through a 3×3 convolution kernel to extract high-dimensional features; performing a transposed convolution operation on the CT scan image data to restore the CT scan image data to the original size of the CT scan image data; using the multi-task mask classification processor of the pedicle segmentation model, segmenting the restored CT scan image data based on the high-dimensional features to obtain the segmentation mask, wherein the segmentation mask includes: a pedicle cortical bone mask and a cancellous bone mask.
[0044] The pedicle segmentation model in the present invention adopts a U-Net architecture based on CNN (convolutional neural network). This architecture has the characteristics of high efficiency and accuracy. Through this segmentation model, multiple target areas in CT scan image data can be identified and segmented to obtain segmentation masks. The following is a detailed explanation of each step in the technical solution.
[0045] First, the backbone network of the pedicle segmentation model uses a 3×3 convolution kernel to perform convolution operations with the CT scan image data. The purpose of the convolution operation is to extract high-dimensional features of the image data. These high-dimensional features contain important information in the CT image and are helpful for subsequent segmentation processing. During the convolution operation, through the stacking of multiple convolution layers, the model gradually extracts deep features of the image data, which are crucial for accurately segmenting different areas of the pedicle.
[0046] Next, the CT scan image data is transposed and convolved. The purpose of this step is to restore the image data to its original size. Transposed convolution (sometimes called deconvolution) is an upsampling technique that allows the model to remap the extracted high-dimensional features back to the original space, thereby maintaining the spatial structure information of the image. The restored image data retains the high-dimensional feature information and has the same size as the original image, which is convenient for subsequent segmentation operations.
[0047] Finally, the restored CT scan image data is segmented based on high-dimensional features by the multi-task mask classification processor of the pedicle segmentation model. The multi-task mask classification processor can process multiple segmentation tasks at the same time. In the present invention, the segmentation is mainly performed on the cortical bone and cancellous bone of the pedicle. Through this processing step, the model generates a segmentation mask, such as Figure 2 As shown in Figure 1, the segmentation mask includes the pedicle cortical bone mask and the cancellous bone mask. These masks accurately identify the different parts of the pedicle in the CT image, provide detailed anatomical information, and provide important reference for the planning and execution of spinal surgery.
[0048] In general, the present invention realizes efficient and accurate segmentation of pedicles in CT scan image data by adopting a pedicle segmentation model based on the U-Net architecture of CNN, combining convolution operation, transposed convolution operation and multi-task mask classification processing. This process greatly improves the processing efficiency of image data and the accuracy of segmentation results, overcomes the shortcomings of traditional methods, and significantly improves the quality and effect of spinal surgery planning.
[0049] Furthermore, after the high-dimensional features and the restored CT scan image data are segmented by the multi-task mask classification processor of the pedicle segmentation model to obtain the segmentation mask, the segmentation method further includes: performing recognition processing on the output segmentation mask by a loss function in the pedicle segmentation model, wherein the loss function includes: , X is the predicted mask, and Y is the correct mask; obtaining a recognition processing result, and performing back propagation correction on the parameters of the pedicle segmentation model according to the recognition processing result.
[0050] In a further technical solution, the pedicle segmentation method not only includes segmentation processing of high-dimensional features and restored CT scan image data through a multi-task mask classification processor, but also involves recognition processing of the output segmentation mask and optimization of model parameters. This step adjusts and improves the segmentation model by using a loss function to improve the accuracy of the segmentation result. The following is a detailed explanation of this process.
[0051] After the segmentation masks are generated by the multi-task mask classification processor, they need to be evaluated and optimized. The evaluation process is implemented through the loss function in the pedicle segmentation model. The loss function is a function used to measure the difference between the predicted result and the actual result. In this technical solution, the error between the model's predicted result and the actual result can be calculated through this loss function. This error reflects the segmentation accuracy of the model.
[0052] After obtaining the calculation result of the loss function, the parameters of the pedicle segmentation model are back-propagated and corrected according to the result. Back-propagation is an optimization algorithm that calculates the gradient of the loss function and adjusts the parameters of the model in the opposite direction of the gradient to reduce the error. The specific process is as follows: Calculate the gradient of the loss function: Calculate the influence of each parameter on the error according to the loss function, that is, the gradient. Parameter update: According to the calculated gradient, adjust the model parameters in the opposite direction of the gradient. This process is continuously iterated to gradually reduce the value of the loss function, thereby optimizing the segmentation performance of the model.
[0053] In this way, the model automatically adjusts its parameters in each training iteration based on the error between the predicted and actual results to improve segmentation accuracy. As training progresses, the model's predictive ability gradually increases, and it is eventually able to generate more accurate pedicle segmentation masks.
[0054] This process not only ensures the accuracy and robustness of the segmentation model, but also improves the generalization ability of the model on different CT scan image data. Through the loss function and back propagation optimization technology, the model can continuously adjust and improve itself, and ultimately provide high-quality segmentation results, providing reliable support for spinal surgery planning. This automated optimization process significantly improves the efficiency and effectiveness of the segmentation method, making it more practical in practical applications.
[0055] Furthermore, after the pedicle segmentation model is used to identify and segment multiple target areas in the CT scan image data to obtain a segmentation mask, the segmentation method also includes: performing reverse resampling processing on the segmentation mask to restore the segmentation mask to the original size of the CT scan image data and keep it consistent with the resolution of the CT scan image data to obtain a first segmentation mask; performing a connectivity test on the first segmentation mask to determine the holes and fragments in the segmentation mask, and filling the holes and removing the fragments through morphological operations to obtain a second segmentation mask; smoothing the second segmentation mask to obtain a final segmentation mask, and using the final segmentation mask to execute the step of "performing anatomical morphological recognition on the segmentation mask according to computer graphics principles to obtain the three-dimensional dimensions corresponding to each of the target areas."
[0056] In a further technical solution, the segmentation mask generated by the pedicle segmentation model is post-processed to ensure the accuracy and practicality of the segmentation result. The following is a detailed explanation of this process.
[0057] First, the pedicle segmentation model is used to identify and segment multiple target areas in the CT scan image data to generate a preliminary segmentation mask. This segmentation mask preliminarily identifies different areas of the pedicle, but there may be some differences in size and resolution. Next, the preliminarily generated segmentation mask is reversely resampled. The purpose of reverse resampling is to restore the segmentation mask to the original size of the CT scan image data and ensure that the resolution is consistent with the original image data. In this way, the segmentation mask is completely aligned with the CT image data in space, and the first segmentation mask is obtained.
[0058] Then, the first segmentation mask is tested for connectivity. The connectivity test is used to determine the holes and fragments in the segmentation mask. Holes refer to unlabeled areas that should not exist in the mask, while fragments refer to isolated small patches that are misjudged. This step handles these problems through morphological operations. Morphological operations include filling holes and removing fragments to make the segmentation mask more continuous and complete, and obtain the second segmentation mask.
[0059] Next, the second segmentation mask is smoothed. The purpose of smoothing is to reduce the jagged edges and noise of the segmentation edges and make the segmentation result smoother and more natural. Through smoothing, an accurate and smooth segmentation mask is finally obtained.
[0060] Finally, the final segmentation mask is used to perform the step of "performing anatomical morphological recognition on the segmentation mask according to the principle of computer graphics to obtain the three-dimensional dimensions corresponding to each target area". This step is to use computer graphics methods to perform anatomical morphological recognition on the smoothed segmentation mask. Through this recognition, the three-dimensional dimensions of the pedicle can be accurately calculated, including the thickness and volume of its cortical bone and cancellous bone. These three-dimensional dimensions provide detailed anatomical data support for the planning and execution of spinal surgery.
[0061] In summary, this series of post-processing steps ensures the high quality and accuracy of the segmentation mask. Reverse resampling ensures the consistency of resolution, connectivity test and morphological operations fill holes and remove debris, smoothing reduces edge noise, and the final generated segmentation mask is highly accurate and practical, laying a solid foundation for subsequent anatomical morphology recognition and three-dimensional size calculation.
[0062] Furthermore, according to the principles of computer graphics, the segmentation mask is subjected to anatomical morphological recognition to obtain the three-dimensional size corresponding to each of the target areas, including: using principal component analysis to calculate the covariance between each two dimensions X and Y of each segmentation mask to obtain a 3×3 covariance matrix A; solving the 3×3 covariance matrix A to obtain a feature matrix and eigenvalues; performing a dot multiplication process on the segmentation mask and the inverse matrix of the feature matrix corresponding to the segmentation mask to obtain an initial bounding box corresponding to the segmentation mask; performing a dot multiplication process on the initial bounding box corresponding to the segmentation mask and the inverse matrix of the feature matrix corresponding to the segmentation mask to obtain a directed bounding box corresponding to the segmentation mask; and measuring the size of the directed bounding box in each direction to obtain the three-dimensional size of the target area.
[0063] In a further technical solution, Figure 3 and Figure 4 As shown, the segmentation mask is subjected to anatomical morphological recognition using computer graphics principles to obtain the three-dimensional size of each target area. The following is a detailed explanation of this process.
[0064] First, the principal component analysis (PCA) method is used. PCA is a commonly used dimensionality reduction and feature extraction method. By calculating the covariance of data in different dimensions, the main direction of data change can be found. In this technical solution, we need to calculate the covariance between each segmentation mask in each two dimensions X and Y to obtain a 3×3 covariance matrix A.
[0065] After calculating the covariance matrix A, the matrix is solved to obtain the feature matrix and eigenvalues. The feature matrix contains the principal component directions of the data, while the eigenvalues represent the variance in these directions. By solving the covariance matrix, the main change directions of the segmentation mask in three-dimensional space can be determined. Next, the segmentation mask is dot-multiplied with the inverse matrix of its corresponding feature matrix to obtain the initial bounding box of the segmentation mask. The initial bounding box represents the range of the segmentation mask in its main change direction. Through this dot multiplication, we can determine the boundaries of the segmentation mask in each main direction.
[0066] Then, the initial bounding box of the segmentation mask is multiplied again with the inverse matrix of the feature matrix to obtain a directed bounding box. The directed bounding box represents the exact position and direction of the segmentation mask in three-dimensional space. Through this step, the spatial position and direction of the segmentation mask can be further determined. Finally, the size of the directed bounding box in each direction is measured to obtain the three-dimensional size of the target area. This measurement process includes calculating the length, width, and height of the bounding box in each direction to obtain the exact size of the segmentation mask in three-dimensional space.
[0067] Through the above steps, combined with principal component analysis and feature matrix processing methods, the three-dimensional dimensions of the segmentation mask can be accurately calculated. These three-dimensional dimensions provide detailed anatomical data support for spinal surgery planning, making the surgical plan more accurate and effective. In summary, this series of processing steps ensures the high quality and accuracy of the segmentation results, providing a solid foundation for the successful implementation of spinal surgery.
[0068] It should be noted that in terms of bone density assessment, traditional overall bone density testing cannot provide specific bone density information in a small local area, especially when the local bone density of the spine may not be completely consistent with the overall bone density, making it difficult to accurately judge the specific situation of the surgical area.
[0069] In one example, after identifying and segmenting multiple target areas in the CT scan image data using the pedicle segmentation model to obtain a segmentation mask, the segmentation method further includes: measuring the segmentation mask to obtain a volume average CT value corresponding to each of the target areas.
[0070] Specifically, the segmentation mask is measured and processed to obtain the volume average CT value corresponding to each of the target areas, including: performing a voxel-to-voxel multiplication operation on the segmentation mask and the corresponding CT scan image data, retaining the CT value of the area whose voxel value meets the preset conditions; and calculating the average value of the CT value of the retained area to obtain the volume average CT value corresponding to each of the target areas.
[0071] In this technical solution, in addition to identifying and segmenting the segmentation masks generated by the pedicle segmentation model, the segmentation masks are also measured to obtain the volume average CT value corresponding to each target area. The following is a detailed explanation of this process.
[0072] Firstly, the pedicle segmentation model is used to identify and segment multiple target regions in the CT scan image data to obtain a preliminary segmentation mask. The segmentation mask identifies different regions of the pedicle in the CT image data.
[0073] Next, the segmentation mask is measured and processed to obtain the volume average CT value corresponding to each target area. The specific steps are as follows: The segmentation mask is multiplied with the corresponding CT scan image data by voxel. Voxel is a basic unit in a three-dimensional image, similar to a pixel in a two-dimensional image. Through this voxel-by-voxel multiplication operation, the CT values of those areas that meet the preset conditions can be retained. This means that only the CT values in the target area marked in the segmentation mask will be retained, and the CT values of other areas will be ignored or set to zero. Through the above operation, data containing only the CT values of the target area are obtained. These CT values reflect the tissue density in the target area and are the basis for subsequent calculations. The CT values of the retained area are averaged. The specific method is to add all the retained CT values and then divide them by the total number of retained voxels to obtain the volume average CT value of the target area. This average CT value provides overall density information of the target area, which helps to evaluate the bone quality of the pedicle.
[0074] Through this process, the volume average CT value of each target area can be accurately obtained. These values are of great significance for the planning and evaluation of spinal surgery, and can help doctors better understand the bone conditions in the surgical area and develop more accurate and effective surgical plans. In general, this technical solution achieves accurate measurement of the segmentation mask through voxel-to-voxel multiplication operations and average value calculations, provides detailed anatomical and density information, and significantly improves the accuracy and effectiveness of surgical planning.
[0075] Reference Figure 5 The embodiment of the present invention provides a pedicle image segmentation device, comprising: An acquisition unit 1 is used to acquire CT scan image data of the cone and input the CT scan image data into a preset pedicle segmentation model; A segmentation unit 2 is used to identify and segment multiple target areas in the CT scan image data through the pedicle segmentation model to obtain a segmentation mask, wherein the target area at least includes: a cortical bone area of the pedicle and a cancellous bone area of the pedicle; The recognition unit 3 is used to perform anatomical morphological recognition on the segmentation mask according to the principle of computer graphics to obtain the three-dimensional size corresponding to each of the target areas.
[0076] In this embodiment, for the specific implementation of each unit in the above device embodiment, please refer to the above method embodiment, which will not be repeated here.
[0077] Reference Figure 6 In an embodiment of the present invention, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 6As shown. The computer device includes a processor, a memory, a display screen, an input device, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.
[0078] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.
[0079] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0080] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.
[0081] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0082] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A pedicle image segmentation method, characterized in that: The following steps are involved: Acquire CT scan image data of the cone, and input the CT scan image data into a preset pedicle segmentation model; Using the pedicle segmentation model, multiple target areas in the CT scan image data are identified and segmented to obtain a segmentation mask, wherein the target area at least includes: a cortical bone area of the pedicle and a cancellous bone area of the pedicle; According to the principle of computer graphics, the segmentation mask is subjected to anatomical morphological recognition to obtain the three-dimensional size corresponding to each target area; The pedicle segmentation model is a neural network model based on the U-Net architecture of CNN. The pedicle segmentation model is used to identify and segment multiple target areas in the CT scan image data to obtain a segmentation mask, including: using the backbone network of the pedicle segmentation model, performing a convolution operation with the CT scan image data through a 3×3 convolution kernel to extract high-dimensional features; performing a transposed convolution operation on the CT scan image data to restore the CT scan image data to the original size of the CT scan image data; and using a multi-task mask classification processor of the pedicle segmentation model to segment the restored CT scan image data based on the high-dimensional features to obtain the segmentation mask, wherein the segmentation mask includes: a pedicle cortical bone mask and a cancellous bone mask.
2. The segmentation method according to claim 1, characterized in that: Acquiring CT scan image data of the cone and inputting the CT scan image data into a preset pedicle segmentation model includes: Acquire CT scan image data of the cone, and determine the spatial resolution of the CT scan image data; Calculating resampling ratios of the CT scan image data in multiple dimensions based on the spatial resolution of the CT scan image data and a preset target spatial resolution; Using a linear interpolation method, resampling the CT scan image data based on the resampling ratio to obtain resampled CT scan image data; Calculating target parameter values of full pixel values in the resampled CT scan image data; Mapping the range of original pixel values in the resampled CT scan image data to a standardized distribution according to the target parameter value to obtain CT scan image data after pixel value standardization; The CT scan image data after the pixel value is standardized is input into a preset pedicle segmentation model.
3. The segmentation method according to claim 2, characterized in that: Calculating the target parameter value of the full pixel value in the resampled CT scan image data, including: calculating the average value and standard deviation of the full pixel value in the resampled CT scan image data; Mapping the range of original pixel values in the resampled CT scan image data to a standardized distribution according to the target parameter value to obtain CT scan image data after pixel value standardization, including: The first formula is used to calculate the average value and standard deviation of the full pixel value, and the range of the original pixel value in the resampled CT scan image data is mapped to the standard normal distribution to obtain the CT scan image data after the pixel value is standardized; Among them, the first formula is: , and is the mean and standard deviation of all pixel values, and are the pixel values before and after normalization.
4. The segmentation method according to claim 1, characterized in that: After the high-dimensional features and the restored CT scan image data are segmented by the multi-task mask classification processor of the pedicle segmentation model to obtain the segmentation mask, the segmentation method further includes: The output segmentation mask is identified by using a loss function in the pedicle segmentation model, wherein the loss function includes: , X is the predicted mask, Y is the correct mask; A recognition processing result is obtained, and back-propagation correction is performed on the parameters of the pedicle segmentation model according to the recognition processing result.
5. The segmentation method according to claim 1, characterized in that: After the pedicle segmentation model is used to identify and segment multiple target areas in the CT scan image data to obtain a segmentation mask, the segmentation method further includes: Performing reverse resampling processing on the segmentation mask to restore the segmentation mask to the original size of the CT scan image data and keep it consistent with the resolution of the CT scan image data, thereby obtaining a first segmentation mask; Performing a connectivity test on the first segmentation mask to determine holes and fragments in the segmentation mask, and filling the holes and removing the fragments through morphological operations to obtain a second segmentation mask; The second segmentation mask is smoothed to obtain a final segmentation mask, and the final segmentation mask is used to execute the step of "performing anatomical morphological recognition on the segmentation mask according to computer graphics principles to obtain the three-dimensional size corresponding to each of the target areas".
6. The segmentation method according to claim 1, characterized in that: According to the principles of computer graphics, the segmentation mask is subjected to anatomical morphological recognition to obtain the three-dimensional size corresponding to each target area, including: Using principal component analysis, the covariance between each two dimensions X and Y of each segmentation mask is calculated to obtain a 3×3 covariance matrix A; Solving the 3×3 covariance matrix A to obtain a characteristic matrix and eigenvalues; After performing a dot multiplication process on the segmentation mask and the inverse matrix of the feature matrix corresponding to the segmentation mask, an initial bounding box corresponding to the segmentation mask is obtained; After performing a dot multiplication process on the initial bounding box corresponding to the segmentation mask and the inverse matrix of the feature matrix corresponding to the segmentation mask, a directed bounding box corresponding to the segmentation mask is obtained; The size of the directional bounding box in each direction is measured to obtain the three-dimensional size of the target area.
7. A pedicle image segmentation device, characterized in that: include: An acquisition unit, used for acquiring CT scan image data of the cone, and inputting the CT scan image data into a preset pedicle segmentation model; A segmentation unit, used for identifying and segmenting a plurality of target regions in the CT scan image data by using the pedicle segmentation model to obtain a segmentation mask, wherein the target region at least includes: a cortical bone region of the pedicle and a cancellous bone region of the pedicle; An identification unit, used for performing anatomical morphological identification on the segmentation mask according to the principle of computer graphics to obtain the three-dimensional size corresponding to each of the target areas; The pedicle segmentation model is a neural network model based on the U-Net architecture of CNN. The pedicle segmentation model is used to identify and segment multiple target areas in the CT scan image data to obtain a segmentation mask, including: using the backbone network of the pedicle segmentation model, performing a convolution operation with the CT scan image data through a 3×3 convolution kernel to extract high-dimensional features; performing a transposed convolution operation on the CT scan image data to restore the CT scan image data to the original size of the CT scan image data; and using a multi-task mask classification processor of the pedicle segmentation model to segment the restored CT scan image data based on the high-dimensional features to obtain the segmentation mask, wherein the segmentation mask includes: a pedicle cortical bone mask and a cancellous bone mask.
8. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Image segmentation method, surgical navigation device, electronic device, and storage medium
CN108961256A
Brain tumor segmentation method based on multi-parameter magnetic resonance imaging
CN110415234A
Vertebral body subregion segmentation method and device and storage medium
CN114998301A
Method and device for automatically segmenting centrum end plate and adjacent cancellous bone
CN115880319A
CT image vertebral pedicle segmentation method and device and storage medium
CN116228796A
Cited By
Industrial CT scanning data standardization method and device
CN120451319A
Vertebral body rotation angle calculation method, device and system, storage medium and product
CN121482125A
