Clinical spine image segmentation method and device for assisting spine screw setting operation

Through the VerseDiff-UNet framework and shape prior module in spine image segmentation, the problems of poor segmentation effect and large amount of calculation in the existing technology are solved, achieving more accurate and robust spine image segmentation, and improving the diagnosis of spinal diseases. and treatment accuracy.

CN118570467AInactive Publication Date: 2024-08-30SHENZHEN INST OF ADVANCED TECH CHINESE ACAD OF SCI

Patent Information

Application Number
CN202410615421.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology has the problems of poor segmentation effect, low robustness and large amount of calculation in spinal image segmentation. Especially in spinal nail surgery, it is difficult to accurately identify and segment spinal structures, and traditional methods rely on artificial feature modeling and High complexity operations.

Method used

Using the VerseDiff-UNet framework, combined with the denoising diffusion probability model (DDPM) and the shape prior module, by adding a combination of noise and label masks, the diffusion direction is guided to the target area, thereby extracting structural semantic information in the spine image and achieving better results. Precise anatomical structure segmentation.

Benefits of technology

It significantly improves the accuracy and robustness of spine image segmentation, can effectively extract spine features under high noise and complex conditions, and improves the accuracy of diagnosis and treatment of spinal diseases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570467A
    Figure CN118570467A
Patent Text Reader

Abstract

The invention relates to the technical field of medical image processing, in particular to a clinical spine image segmentation method and device for assisting spine screw placement surgery, and the method comprises the steps: constructing an end-to-end frame of a VerseDiff-UNet, and enabling the frame to be integrated with a de-noising diffusion probability model DDPM; using a VerseDiff-UNet framework to combine the image added with the noise with the marked mask, and guiding the diffusion direction to a target area; a shape prior module is introduced based on a de-noising diffusion probability model DDPM, and structural semantic information is extracted from an input spine image. In order to capture specific anatomical prior information in a medical image, a shape prior module is combined. The module effectively extracts structural semantic information from an input spine image, realizes more accurate anatomical structure segmentation, and promotes accurate diagnosis and treatment of spine diseases.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical image processing, and in particular to a clinical spinal image segmentation method and device for assisting spinal nail placement surgery. Background Art

[0002] The spine is the second lifeline of the human body, supporting the normal functioning of various organs of the body. However, spinal diseases are common and have a high disability rate, which seriously affects the quality of life of patients. If they are not effectively treated, they will bring a heavy burden to the patient's family and society. Therefore, the treatment of spinal diseases has become an urgent problem to be solved. When treating spinal diseases, doctors usually use CT (computed tomography) images or X-rays to observe the patient's spine. However, the display of these images is limited and it is difficult to provide sufficiently intuitive and clear information. Therefore, if algorithms can be used to directly segment tissues and organs that are beneficial to doctors' diagnosis in the image and extract effective information from them, it will help doctors to observe more clearly and diagnose more quickly, further improving the diagnosis rate and cure rate of the disease.

[0003] Segmentation of vertebrae and intervertebral discs (IVDs) in spinal images is widely used in the evaluation, diagnosis, surgical planning, and image-guided interventional procedures of spinal diseases. The widely used clinical spinal screw placement surgery uses intraoperative X-ray fluoroscopy to display the position of the screws in two-dimensional images to assist surgeons in determining the screw placement point. However, due to the lack of three-dimensional images and the presence of ghosting and noise in X-ray images, this technology has limitations and is quite challenging to determine the screw position.

[0004] At present, the common research on spinal images can be roughly divided into image preprocessing, intervertebral disc positioning and segmentation, and vertebral block positioning and segmentation. The core of the spinal segmentation workflow is image segmentation. However, spinal medical images have the characteristics of image blur, uneven grayscale distribution, multiple noises, and low image contrast. In addition, the structure of the spine is complex. When designing spinal medical image processing methods, it is often necessary to design specific processing methods for different types of images or different types of parts to improve and optimize traditional image processing methods. When the commonly used algorithms for general image processing are applied to spinal medical images, the results are not ideal, and it is difficult to form a unified and effective processing algorithm. In addition, when there are corresponding external implanted surgical instruments on the spine, the use of classic artificial intelligence-assisted segmentation algorithms often has the problem of low segmentation accuracy or inability to complete the identification and segmentation of the spine.

[0005] In recent years, the cutting-edge spine segmentation can be divided into three categories according to the structural method of the segmentation object: vertebrae and intervertebral disc distribution segmentation, vertebrae and intervertebral disc simultaneous segmentation, and segmentation based on semantic image representation. Among them, the segmentation methods include three categories: model-driven, machine learning, and deep learning.

[0006] 1. Model-driven segmentation

[0007] The work of vertebral localization and detection in this method relies on mathematical models and traditional hand-crafted features, such as active contour models and customized filters. For example, the active contour model and morphological operators are used to list all vertebral horizontal inclinations; label fusion is used to combine the labels of the deformation atlas to obtain the final segmentation of the target dataset; and customized filters are used to extract the required anatomical features.

[0008] 2. Segmentation based on machine learning

[0009] In terms of machine learning, regression forests and probabilistic graphical models are used to detect vertebrae in CT scans with arbitrary fields of view, and a vertebrae localization and identification method based on supervised classification forests is used; image displacement is estimated by jointly optimizing training and testing displacement values ​​in a data-driven manner and the visual features of small three-dimensional image patches are utilized to classify image voxels around the center of the intervertebral disc.

[0010] 3. Segmentation based on deep learning

[0011] The deep learning method is used to classify the spinal images at the pixel level. It can accept input images of any size. The deconvolution layer is used to upsample the feature map of the last convolution layer to restore it to the same size as the input image, so that a prediction can be generated for each pixel, while retaining the spatial information in the original input image. Finally, pixel-by-pixel classification is performed on the upsampled feature map to achieve accurate segmentation of vertebrae and intervertebral discs. With the introduction of the UNet network, medical segmentation algorithms usually adopt an encoder-decoder structure combined with jump connections, so that the decoder can reuse the features extracted by the encoder. However, since its structure is based on a convolutional neural network, it cannot effectively extract global features. On the contrary, the Transformer structure has significantly improved the performance of global feature modeling, but the corresponding dynamic extraction of global features not only leads to an increase in its corresponding computational workload, but also causes its compatibility to decline, and it is difficult to converge in iteration. Recently, the Diffusion Probabilistic Model (DPM) has gained popularity as a powerful generative model that can generate high-quality and diverse images. Inspired by its success, some researchers have initially applied DPM to the field of medical image segmentation.

[0012] In summary, the shortcomings of the prior art are as follows:

[0013] In order to distinguish the spine from the background in X-ray images during spinal screw placement surgery, many different spinal medical image segmentation methods have been proposed. Previous methods based on graphics and statistics mainly modeled the pixel information of the original image. This method divided the image into several regions, such as the foreground and background of the binary classification, by setting a specific image intensity value. It involves threshold adjustment and fitting functions, but it has gradually been eliminated due to its high difficulty, high complexity and asymmetric low precision and efficiency due to its high human involvement. In addition, the modeling ability of manually constructed features is limited, and the segmentation method based on traditional machine learning is less robust. Spinal image segmentation requires manual feature extraction, which lacks task specificity and limits the performance of segmentation.

[0014] With the advancement of deep learning technology, some studies have successfully applied neural network-based models. Classic convolutional neural networks (CNNs) usually use an encoder-decoder structure combined with jump connections in medical segmentation algorithms, so that the decoder can reuse the features extracted by the encoder. However, since its structure is based on convolutional neural networks, it cannot effectively extract global features. On the contrary, the Transformer structure has significantly improved the performance of global feature modeling, but the corresponding dynamic extraction of global features not only leads to an increase in the corresponding amount of calculation, but also causes its compatibility to decline, and it is difficult to converge with iterations.

[0015] Recently, the Diffusion Probabilistic Model (DPM) has gained popularity as a powerful generative model that can generate high-quality and diverse images. Inspired by its success, some researchers have initially applied DPM to the field of medical image segmentation. Most of these methods are based on the classic UNet decoding and encoding structure. Some researchers have introduced the transformer architecture on this basis in order to extract deeper semantic segmentation features from the original image, but they often ignore the difficulty of designing a transformer segmentation architecture to meet compatibility and the geometric increase in computational complexity. Summary of the invention

[0016] The embodiment of the present invention provides a clinical spinal image segmentation method and device for assisting spinal nail placement surgery, so as to at least solve the technical problem of poor image segmentation effect in the prior art.

[0017] According to an embodiment of the present invention, a clinical spinal image segmentation method for assisting spinal nail placement surgery is provided, comprising the following steps:

[0018] S101: Build an end-to-end framework of VerseDiff-UNet, which integrates the denoising diffusion probability model DDPM;

[0019] S102: Use the VerseDiff-UNet framework to combine the noisy image with the marked mask to guide the diffusion direction to the target area;

[0020] S103: Based on the denoising diffusion probability model DDPM, a shape prior module is introduced to extract structural semantic information from the input spine image.

[0021] According to another embodiment of the present invention, a clinical spinal image segmentation device for assisting spinal nail placement surgery is provided, comprising:

[0022] A framework building unit, which is used to build an end-to-end framework of VerseDiff-UNet, which integrates the denoising diffusion probability model DDPM;

[0023] A mask combination unit is used to combine the noisy image with the labeled mask using the VerseDiff-UNet framework to guide the diffusion direction to the target area;

[0024] The semantic extraction unit is used to introduce a shape prior module based on the denoising diffusion probability model DDPM to extract structural semantic information from the input spine image.

[0025] Furthermore, the semantic extraction unit includes:

[0026] A feature acquisition unit, used to obtain multi-scale features through an encoder given the original image data;

[0027] Feature fusion unit, which is used to extract the information input to the network through the traditional downsampling and upsampling structure, and then extract the information through each layer of shape prior module and sum it with the decoder features corresponding to the same level to obtain multi-scale fusion features;

[0028] The result prediction unit is used to enhance the skipped original features by interacting with the global shape prior, generate discriminative shape representation and global context, use the shape prior model to extract the vertebral anatomical prior features of the original medical image, and finally obtain the prediction result.

[0029] The clinical spinal image segmentation method and device for assisting spinal screw placement surgery in the embodiment of the present invention combines a shape prior module in order to capture specific anatomical prior information in medical images. This module effectively extracts structural semantic information from the input spinal image, achieves more accurate anatomical structure segmentation, and promotes accurate diagnosis and treatment of spinal diseases. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0031] Figure 1 A flowchart of a clinical spinal image segmentation method for assisting spinal nail placement surgery according to the present invention;

[0032] Figure 2 is a network architecture diagram of the present invention;

[0033] Figure 3 Schematic diagram of the training and sampling process in the present invention;

[0034] Figure 4 It is a segmentation result diagram of different medical image segmentation methods in the present invention;

[0035] Figure 5 This is a module diagram of a clinical spinal image segmentation device for assisting spinal nail placement surgery according to the present invention;

[0036] Figure 6 This is a module diagram of the clinical spinal image segmentation device for assisting spinal nail placement surgery of the present invention. DETAILED DESCRIPTION

[0037] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0039] Example 1

[0040] According to an embodiment of the present invention, a clinical spinal image segmentation method for assisting spinal nail placement surgery is provided. Figure 1 , including the following steps:

[0041] S101: Build an end-to-end framework of VerseDiff-UNet, which integrates the denoising diffusion probability model DDPM;

[0042] S102: Use the VerseDiff-UNet framework to combine the noisy image with the marked mask to guide the diffusion direction to the target area;

[0043] S103: Based on the denoising diffusion probability model DDPM, a shape prior module is introduced to extract structural semantic information from the input spine image.

[0044] The clinical spinal image segmentation method for assisting spinal screw placement surgery in the embodiment of the present invention combines a shape prior module in order to capture specific anatomical prior information in medical images. This module effectively extracts structural semantic information from the input spinal image, achieves more accurate anatomical structure segmentation, and promotes accurate diagnosis and treatment of spinal diseases.

[0045] Specifically, in response to the technical problems existing in the prior art, the present invention proposes an end-to-end framework named VerseDiff-UNet, which utilizes a denoising diffusion probability model (DDPM) and integrates the model into a standard U-shaped architecture. In each step, the present invention combines the image with the labeled mask to accurately guide the diffusion direction to the target area. In addition, in order to capture specific anatomical prior information in medical images, the present invention combines a morphology prior module. The module effectively extracts structural semantic information from the input spinal image, achieves more accurate anatomical structure segmentation, and promotes accurate diagnosis and treatment of spinal diseases. In the context of general medical image segmentation, the present invention first introduces a shape prior module on a DDPM-based model to significantly improve the segmentation performance of the denoising diffusion probability model. In order to improve the performance parameters of the model for spinal segmentation under X-ray imaging conditions in clinical nail placement surgery and thus help directly assist doctors in locating the spine, the present invention introduces a morphology prior module to enhance the feature capture capability of the spine and significantly improve the spinal segmentation performance of the diffusion model.

[0046] The basic contents of the technical solution of the present invention are as follows:

[0047] like Figure 2As shown, the UNet in the VerseDiff-UNet proposed in the present invention includes two parts, an encoder and a decoder. First, given the original image data, multi-scale features are obtained through the encoder. The information input to the network is not only extracted through the traditional downsampling and upsampling structures, but also scientifically extracts information through each layer of shape prior and sums it with the corresponding decoder features at the same level to obtain multi-scale fusion features. Since the encoder features and decoder features at the same level contain the same number and size of features, the skipped original features can be further enhanced by interacting with the global shape prior, which helps to generate discriminative shape representations and global contexts, thereby helping the model to better extract the vertebral anatomical prior features of the original medical image and finally obtain the prediction results. For the task of medical image segmentation, the network of the present invention directly generates a prediction mask as output.

[0048] like Figure 3 As shown, the main architecture of VerseDiff-UNet is an encoder-decoder based on UNet. The encoder-decoder consists of three corresponding downsampling and upsampling modules, respectively. The diffusion model performs variational inference on the Markov process using time steps to learn the training data distribution. In the training phase, for each step, the anatomical structure is induced by adding the input image to the noise segmentation mask. Specifically, the training phase inputs the model pair of the original spine image with a manually labeled mask, and the mask is gradually added with noise. The framework consists of a forward and a backward process, also known as the training and sampling process. In the forward process of each time step, Gaussian noise is added to the image until the image becomes an isotropic Gaussian. In the inverse process, the Markov chain of the UNet network structure is used to construct an incremental denoising sequence to obtain a clean image. Sample n times with different Gaussian noise to generate n different reasonable masks.

[0049] The technical solution of the present invention is described in detail as follows:

[0050] 1. Data Augmentation

[0051] Before training, the present invention uses dynamic data augmentation to avoid network overfitting and improve the robustness of the model. It includes three types of data augmentation: randomly rotating the image from -30° to 30° to simulate rotation variance; randomly translating the image by 1-5% to simulate translation variance; random elastic deformation, random contrast adjustment to improve the generalization ability of the model. In order to ensure that all methods use the same enhanced training data, the present invention uses the same random state for all methods when performing data augmentation.

[0052] 2. Training Phase 1

[0053] Different from the traditional medical image segmentation method that directly inputs the original image data to predict the corresponding segmentation label map, the diffusion model uses the original image and the noisy segmentation label map as input to learn the denoising process. In the diffusion forward process, the present invention adds continuous t-step noise ∈ to the converted multi-channel labels.

[0054] According to the formula: Get a label graph x with t-step noise t After that, the present invention will use the denoising module according to x t And the original image data predicts a clear label map x0.

[0055] 3. Training Phase 2

[0056] The UNet in the VerseDiff-UNet proposed in this invention also consists of two parts, an encoder and a decoder. First, given the original image data I∈R N×D×W×H , where N is the number of modality images, I and the noisy single hot label x t The channel is cascaded to the encoder of VerseDiff-UNet to obtain multi-scale features I E The information input to the network is not only extracted through the traditional downsampling and upsampling structure, but also through the S-shaped prior learning module at each layer for information extraction. f and the decoder feature I corresponding to the same layer D Add together to get the multi-scale fusion feature I f Because the same level encoder features I E With decoder feature I D The number and size of the inclusions are the same. Through interaction with the global shape prior, the skipped original features can be further enhanced, thereby promoting the generation of features with discriminative shape representation and global context, which helps the model to better extract the spinal anatomical prior features of the original medical image and finally obtain the prediction results. In the design of the present invention, for the task of medical image segmentation, the network of the present invention directly generates a predicted mask as output.

[0057] Here, the step index t is integrated with the added embedding and decoder functions. In each, it is embedded using a shared learned lookup table. Specifically:

[0058]

[0059] 4. Training Phase 3

[0060] The training and sampling architecture is as follows Figure 3As shown in Figure 1, the main architecture of VerseDiff-UNet is an encoder-decoder based on UNet. The encoder-decoder consists of three corresponding downsampling and upsampling modules. The diffusion model performs variational inference on the Markov process and uses T time steps to learn the training data distribution p(x0). During the training phase, the input image is added to the noise segmentation mask x every t steps. t , thereby inducing the anatomical structure. Specifically, the training phase inputs the model with pairs of original spinal images and manually labeled masks, and gradually adds noise to the masks. In the forward process, each time step in T adds Gaussian noise to the image x0~p(x0) until the image becomes an isotropic Gaussian image. This forward noise process is expressed as:

[0061]

[0062] where (x0,x1,x2…x T ) represents the T step size in the Markov chain, and α is the noise scheduler that controls the noise variance.

[0063] In the inverse process, the Markov chain and UNet network structure are used to establish an incremental denoising sequence to obtain a clean image. The parameters are as follows:

[0064]

[0065] These are obtained by minimizing the KL-divergence between the forward and backward distributions over all time steps.

[0066] The present invention defines the loss function as:

[0067]

[0068] The iteration number is sampled from a uniform distribution, and ∈ is sampled from a Gaussian distribution.

[0069] In summary, with respect to the segmentation of human spine clinical medical images, the present invention mainly solves the following problems:

[0070] 1. Clinically, medical images of the spine have the characteristics of blurred images, uneven grayscale distribution, high noise, and low image contrast. In addition, since the spinal structure is composed of a series of vertebrae with similar structures but different types, the current segmentation methods for these images still face problems such as similarity between categories, intra-group variation, and spatial deviation. The accuracy of segmentation using traditional machine learning methods is low;

[0071] 2. Due to the complexity of the automatic segmentation of the spine, it is often difficult to obtain annotated datasets with sufficient quantity and quality, and it is time-consuming and laborious to manually segment these datasets. In addition, there may be class imbalance problems in the dataset. For example, due to the shape of the spine, the corresponding medical images with excessively large aspect ratios further increase the difficulty in spinal imaging analysis;

[0072] 3. In clinical spinal screw placement surgery, accurate identification and segmentation of spinal structures are crucial for spinal surgeons. When there are corresponding external surgical instruments implanted on the spine, some classic artificial intelligence-assisted segmentation algorithms often have low segmentation accuracy or even fail to complete the identification and segmentation of the spine.

[0073] The key points and intended protection points of the present invention are:

[0074] 1) The DPM model in spine image segmentation first introduced a shape prior module, which effectively extracted structural semantic information from the input spine image for training the diffusion model;

[0075] 2) Combining the diffusion model and shape prior module for segmentation network training is a new medical image segmentation architecture;

[0076] 3) In the preprocessing stage of the model, eight types of data augmentation methods are used. By introducing changes such as rotation, translation, elastic deformation, etc. in the same random state for training data augmentation, the diversity, robustness and generalization ability of the model can be enhanced, overfitting can be reduced, and the model can be more adaptable to various situations in practical applications, thereby improving the learnability of images.

[0077] Compared with the prior art, the advantages of the present invention are:

[0078] 1. This paper proposes a universal end-to-end 2D medical image segmentation framework named VerseDiff-UNet, which uses the denoising diffusion probability model (DDPM) to meet the demand for accurate and diverse spine multi-type medical image segmentation templates, making the model more robust and accurate;

[0079] 2. In order to capture specific anatomical prior information in medical images, the present invention combines a shape prior module in the Unet framework to effectively extract structural semantic information from the input spinal image, resulting in significant segmentation effect;

[0080] 3. It is proved that the effectively trained diffusion model can significantly outperform other deep learning models in extracting effective information features for spinal segmentation under the imaging condition of spinal screw placement surgery with bone screws covering the spine.

[0081] The invention has been proven to be feasible through experiments, simulations, and use. The invention has a high degree of automation and has been effectively verified by a large number of experiments. The quantitative calculation results are stable and accurate. The spine segmentation method proposed in the invention is different from the traditional medical image segmentation method that directly inputs the original image data to predict the corresponding segmentation label map. The diffusion model uses the original image and the noisy segmentation label map as input to learn the denoising process.

[0082] In order to demonstrate the superiority of the proposed model, the present invention conducted comparative experiments with other state-of-the-art methods on a public CT spine dataset. The dataset consists of 609 anterior-posterior X-ray images of the spine, in which the spine markings were provided by two professional doctors at the London Health Sciences Center. Each vertebra is positioned by four landmarks relative to the four corners. All images are 250x750 in size. In addition, since the noise artifacts in this dataset are extremely serious and some data are even mixed with medical devices on the spine, in order to further test the proposed model in this special case, the present invention only targets the spine area and performs a 0 / 1 binary transformation on the area for original labeling. Although this operation method may result in the loss of labeled areas in certain specific parts of the spine, the final experimental results effectively test the model's ability to segment occluded spine images under such medical imaging conditions.

[0083] When evaluating the results, the present invention uses the Dice similarity coefficient (DSC) and the overlap (IoU) as quantitative indicators for evaluating the segmentation performance. Both indicators are calculated for a single object in the original image space and then averaged over all objects.

[0084] Judging from the evaluation results, different models have different performances in terms of the Dice coefficient and IoU. In terms of the Dice coefficient, the Verse-diffu model achieved the highest score of 0.7865, demonstrating its excellent performance in the X-ray image segmentation task. On the other hand, the UNet model performed relatively weakly in this regard. For the IOU indicator, the Verse-diffu model (0.6765) performed best, while the UNet model (0.4375) performed relatively poorly. The Deeplabv3-resnet50 model achieved satisfactory performance in both indicators, especially in terms of IoU (0.5791). The SAM model performed relatively consistently, slightly better than the Swin-transformer model.

[0085] Table 1: Comparative experimental indicators of segmentation methods on X-ray dataset

[0086]

[0087] In addition to using quantitative indicators, the present invention randomly selected three samples for visual analysis and subjective evaluation, such as Figure 4 As shown in the figure. Due to the high noise and artifact characteristics of this dataset, some images in the background pixels show very high similarity between them. The Swin-transformer model is very sensitive to relative position information and fails to effectively extract the key feature information of the spine area during the actual training process, resulting in slow convergence and difficulty in effectively learning the information of the semantic target area.

[0088] In this case, the SAM model considers the target region and the background region as a whole, such as Figure 4 As shown in the upper circle, the semantic segmentation is lost, thus reducing the segmentation accuracy of the entire dataset. It is difficult for the UNet model to accurately segment the spine blocks, which causes them to be connected. Both the FCN and Deeplabv3 models suffer from the loss of spine blocks to varying degrees. In contrast, the Verse-diffu model proposed in the present invention can effectively extract spine features in this case, but there is also a certain degree of loss of detail features.

[0089] In addition, if Figure 4 As shown in the lower middle circle, FCN and Deeplabv3 lose the ability to capture the characteristics of the spine region under the imaging condition where the spine is covered by bone screws. Compared with the original image, the only part of the spine inferred is the edge of the area not covered by the bone screws.

[0090] In contrast, the model proposed in the present invention is still able to directly infer the spinal region in a given image. This is because when the model learns spinal features during the noise addition process, it only learns specific features in the spinal region, and regards the rest of the region as noise. Therefore, in the reverse denoising stage, all pixels above are removed as noise, so only the feature region containing the spinal target is smoothly segmented under this condition through the feature information obtained in the training stage. Therefore, the effectively trained diffusion model can significantly surpass other deep learning models in spinal screw placement surgery under imaging conditions where the spine is covered by bone screws, thereby extracting effective information features and performing spinal segmentation.

[0091] Example 2

[0092] According to another embodiment of the present invention, a clinical spinal image segmentation device for assisting spinal nail placement surgery is provided. Figure 5 ,include:

[0093] A framework construction unit 201 is used to construct an end-to-end framework of VerseDiff-UNet, which integrates a denoising diffusion probability model DDPM;

[0094] A mask combining unit 202 is used to combine the noisy image with the marked mask using the VerseDiff-UNet framework to guide the diffusion direction to the target area;

[0095] The semantic extraction unit 203 is used to introduce a shape priori module based on a denoising diffusion probability model DDPM to extract structural semantic information from the input spinal image.

[0096] The clinical spinal image segmentation device for assisting spinal nail placement surgery in the embodiment of the present invention combines a shape prior module in order to capture specific anatomical prior information in medical images. This module effectively extracts structural semantic information from the input spinal image, achieves more accurate anatomical structure segmentation, and promotes accurate diagnosis and treatment of spinal diseases.

[0097] Among them, see Figure 6 , the semantic extraction unit 203 includes:

[0098] A feature acquisition unit 2031 is used to obtain multi-scale features through an encoder given the original image data;

[0099] The feature fusion unit 2032 is used to extract the information input to the network through the traditional downsampling and upsampling structure, and then extract the information through each layer of the shape prior module and sum the decoder features corresponding to the same level to obtain multi-scale fusion features;

[0100] The result prediction unit 2033 is used to enhance the skipped original features by interacting with the global shape prior, generate a discriminative shape representation and a global context, extract the vertebral anatomical prior features of the original medical image using the shape prior model, and finally obtain the prediction result.

[0101] Specifically, in response to the technical problems existing in the prior art, the present invention proposes an end-to-end framework named VerseDiff-UNet, which utilizes a denoising diffusion probability model (DDPM) and integrates the model into a standard U-shaped architecture. In each step, the present invention combines the image with the labeled mask to accurately guide the diffusion direction to the target area. In addition, in order to capture specific anatomical prior information in medical images, the present invention combines a morphology prior module. The module effectively extracts structural semantic information from the input spinal image, achieves more accurate anatomical structure segmentation, and promotes accurate diagnosis and treatment of spinal diseases. In the context of general medical image segmentation, the present invention first introduces a shape prior module on a DDPM-based model to significantly improve the segmentation performance of the denoising diffusion probability model. In order to improve the performance parameters of the model for spinal segmentation under X-ray imaging conditions in clinical nail placement surgery and thus help directly assist doctors in locating the spine, the present invention introduces a morphology prior module to enhance the feature capture capability of the spine and significantly improve the spinal segmentation performance of the diffusion model.

[0102] The basic contents of the technical solution of the segmentation device of the present invention are as follows:

[0103] like Figure 2 As shown, the UNet in the VerseDiff-UNet proposed in the present invention includes two parts, an encoder and a decoder. First, given the original image data, multi-scale features are obtained through the encoder. The information input to the network is not only extracted through the traditional downsampling and upsampling structures, but also scientifically extracts information through each layer of shape prior and sums it with the corresponding decoder features at the same level to obtain multi-scale fusion features. Since the encoder features and decoder features at the same level contain the same number and size of features, the skipped original features can be further enhanced by interacting with the global shape prior, which helps to generate discriminative shape representations and global contexts, thereby helping the model to better extract the vertebral anatomical prior features of the original medical image and finally obtain the prediction results. For the task of medical image segmentation, the network of the present invention directly generates a prediction mask as output.

[0104] like Figure 3As shown, the main architecture of VerseDiff-UNet is an encoder-decoder based on UNet. The encoder-decoder consists of three corresponding downsampling and upsampling modules, respectively. The diffusion model performs variational inference on the Markov process using time steps to learn the training data distribution. In the training phase, for each step, the anatomical structure is induced by adding the input image to the noise segmentation mask. Specifically, the training phase inputs the model pair of the original spine image with a manually labeled mask, and the mask is gradually added with noise. The framework consists of a forward and a backward process, also known as the training and sampling process. In the forward process of each time step, Gaussian noise is added to the image until the image becomes an isotropic Gaussian. In the inverse process, the Markov chain of the UNet network structure is used to construct an incremental denoising sequence to obtain a clean image. Sample n times with different Gaussian noise to generate n different reasonable masks.

[0105] The technical solution of the segmentation device of the present invention is described in detail as follows:

[0106] 1. Data Augmentation

[0107] Before training, the present invention uses dynamic data augmentation to avoid network overfitting and improve the robustness of the model. It includes three types of data augmentation: randomly rotating the image from -30° to 30° to simulate rotation variance; randomly translating the image by 1-5% to simulate translation variance; random elastic deformation, random contrast adjustment to improve the generalization ability of the model. In order to ensure that all methods use the same enhanced training data, the present invention uses the same random state for all methods when performing data augmentation.

[0108] 2. Training Phase 1

[0109] Different from the traditional medical image segmentation method that directly inputs the original image data to predict the corresponding segmentation label map, the diffusion model uses the original image and the noisy segmentation label map as input to learn the denoising process. In the diffusion forward process, the present invention adds continuous t-step noise ∈ to the converted multi-channel labels.

[0110] According to the formula: Get a label graph x with t-step noise t After that, the present invention will use the denoising module according to x t And the original image data predicts a clear label map x0.

[0111] 3. Training Phase 2

[0112] The UNet in the VerseDiff-UNet proposed in this invention also consists of two parts, an encoder and a decoder. First, given the original image data I∈R N×D×W×H, where N is the number of modality images, I and the noisy single hot label x t The channel is cascaded to the encoder of VerseDiff-UNet to obtain multi-scale features I E The information input to the network is not only extracted through the traditional downsampling and upsampling structure, but also through the S-shaped prior learning module at each layer for information extraction. f and the decoder feature I corresponding to the same layer D Add together to get the multi-scale fusion feature I f Because the same level encoder features I E With decoder feature I D The number and size of the inclusions are the same. Through interaction with the global shape prior, the skipped original features can be further enhanced, thereby promoting the generation of features with discriminative shape representation and global context, which helps the model to better extract the spinal anatomical prior features of the original medical image and finally obtain the prediction results. In the design of the present invention, for the task of medical image segmentation, the network of the present invention directly generates a predicted mask as output.

[0113] Here, the step index t is integrated with the added embedding and decoder functions. In each, it is embedded using a shared learned lookup table.

[0114] The specific calculation process is:

[0115] 4. Training Phase 3

[0116] The training and sampling architecture is as follows Figure 3 As shown in Figure 1, the main architecture of VerseDiff-UNet is an encoder-decoder based on UNet. The encoder-decoder consists of three corresponding downsampling and upsampling modules. The diffusion model performs variational inference on the Markov process and uses T time steps to learn the training data distribution p(x0). During the training phase, the input image is added to the noise segmentation mask x every t steps. t , thereby inducing the anatomical structure. Specifically, the training phase inputs the model with pairs of original spinal images and manually labeled masks, and gradually adds noise to the masks. In the forward process, each time step in T adds Gaussian noise to the image x0~p(x0) until the image becomes an isotropic Gaussian image. This forward noise process is expressed as:

[0117]

[0118] where (x0,x1,x2…x T ) represents the T step size in the Markov chain, and α is the noise scheduler that controls the noise variance.

[0119] In the inverse process, the Markov chain and UNet network structure are used to establish an incremental denoising sequence to obtain a clean image. The parameters are as follows:

[0120]

[0121] These are obtained by minimizing the KL-divergence between the forward and backward distributions over all time steps.

[0122] The present invention defines the loss function as:

[0123]

[0124] The iteration number is sampled from a uniform distribution, and ∈ is sampled from a Gaussian distribution.

[0125] In summary, with respect to the segmentation of human spine clinical medical images, the present invention mainly solves the following problems:

[0126] 1. Clinically, medical images of the spine have the characteristics of blurred images, uneven grayscale distribution, high noise, and low image contrast. In addition, since the spinal structure is composed of a series of vertebrae with similar structures but different types, the current segmentation methods for these images still face problems such as similarity between categories, intra-group variation, and spatial deviation. The accuracy of segmentation using traditional machine learning methods is low;

[0127] 2. Due to the complexity of the automatic segmentation of the spine, it is often difficult to obtain annotated datasets with sufficient quantity and quality, and it is time-consuming and laborious to manually segment these datasets. In addition, there may be class imbalance problems in the dataset. For example, due to the shape of the spine, the corresponding medical images with excessively large aspect ratios further increase the difficulty in spinal imaging analysis;

[0128] 3. In clinical spinal screw placement surgery, accurate identification and segmentation of spinal structures are crucial for spinal surgeons. When there are corresponding external surgical instruments implanted on the spine, some classic artificial intelligence-assisted segmentation algorithms often have low segmentation accuracy or even fail to complete the identification and segmentation of the spine.

[0129] The key points and intended protection points of the present invention are:

[0130] 1) The DPM model in spine image segmentation first introduced a shape prior module, which effectively extracted structural semantic information from the input spine image for training the diffusion model;

[0131] 2) Combining the diffusion model and shape prior module for segmentation network training is a new medical image segmentation architecture;

[0132] 3) In the preprocessing stage of the model, eight types of data augmentation methods are used. By introducing changes such as rotation, translation, elastic deformation, etc. in the same random state for training data augmentation, the diversity, robustness and generalization ability of the model can be enhanced, overfitting can be reduced, and the model can be more adaptable to various situations in practical applications, thereby improving the learnability of images.

[0133] Compared with the prior art, the advantages of the present invention are:

[0134] 1. This paper proposes a universal end-to-end 2D medical image segmentation framework named VerseDiff-UNet, which uses the denoising diffusion probability model (DDPM) to meet the demand for accurate and diverse spine multi-type medical image segmentation templates, making the model more robust and accurate;

[0135] 2. In order to capture specific anatomical prior information in medical images, the present invention combines a shape prior module in the Unet framework to effectively extract structural semantic information from the input spinal image, resulting in significant segmentation effect;

[0136] 3. It is proved that the effectively trained diffusion model can significantly outperform other deep learning models in extracting effective information features for spinal segmentation under the imaging condition of spinal screw placement surgery with bone screws covering the spine.

[0137] The invention has been proven to be feasible through experiments, simulations, and use. The invention has a high degree of automation and has been effectively verified by a large number of experiments. The quantitative calculation results are stable and accurate. The spine segmentation method proposed in the invention is different from the traditional medical image segmentation method that directly inputs the original image data to predict the corresponding segmentation label map. The diffusion model uses the original image and the noisy segmentation label map as input to learn the denoising process.

[0138] In order to demonstrate the superiority of the proposed model, the present invention conducted comparative experiments with other state-of-the-art methods on a public CT spine dataset. The dataset consists of 609 anterior-posterior X-ray images of the spine, in which the spine markings were provided by two professional doctors at the London Health Sciences Center. Each vertebra is positioned by four landmarks relative to the four corners. All images are 250x750 in size. In addition, since the noise artifacts in this dataset are extremely serious and some data are even mixed with medical devices on the spine, in order to further test the proposed model in this special case, the present invention only targets the spine area and performs a 0 / 1 binary transformation on the area for original labeling. Although this operation method may result in the loss of labeled areas in certain specific parts of the spine, the final experimental results effectively test the model's ability to segment occluded spine images under such medical imaging conditions.

[0139] When evaluating the results, the present invention uses the Dice similarity coefficient (DSC) and the overlap (IoU) as quantitative indicators for evaluating the segmentation performance. Both indicators are calculated for a single object in the original image space and then averaged over all objects.

[0140] Judging from the evaluation results, different models have different performances in terms of the Dice coefficient and IoU. In terms of the Dice coefficient, the Verse-diffu model achieved the highest score of 0.7865, demonstrating its excellent performance in the X-ray image segmentation task. On the other hand, the UNet model performed relatively weakly in this regard. For the IOU indicator, the Verse-diffu model (0.6765) performed best, while the UNet model (0.4375) performed relatively poorly. The Deeplabv3-resnet50 model achieved satisfactory performance in both indicators, especially in terms of IoU (0.5791). The SAM model performed relatively consistently, slightly better than the Swin-transformer model.

[0141] Table 1: Comparative experimental indicators of segmentation methods on X-ray dataset

[0142]

[0143] In addition to using quantitative indicators, the present invention randomly selected three samples for visual analysis and subjective evaluation, such as Figure 4 As shown in the figure. Due to the high noise and artifact characteristics of this dataset, some images in the background pixels show very high similarity between them. The Swin-transformer model is very sensitive to relative position information and fails to effectively extract the key feature information of the spine area during the actual training process, resulting in slow convergence and difficulty in effectively learning the information of the semantic target area.

[0144] In this case, the SAM model considers the target region and the background region as a whole, such as Figure 4 As shown in the upper circle, the semantic segmentation is lost, thus reducing the segmentation accuracy of the entire dataset. It is difficult for the UNet model to accurately segment the spine blocks, which causes them to be connected. Both the FCN and Deeplabv3 models suffer from the loss of spine blocks to varying degrees. In contrast, the Verse-diffu model proposed in the present invention can effectively extract spine features in this case, but there is also a certain degree of loss of detail features.

[0145] In addition, if Figure 4As shown in the lower middle circle, FCN and Deeplabv3 lose the ability to capture the characteristics of the spine region under the imaging condition where the spine is covered by bone screws. Compared with the original image, the only part of the spine inferred is the edge of the area not covered by the bone screws.

[0146] In contrast, the model proposed in the present invention is still able to directly infer the spinal region in a given image. This is because when the model learns spinal features during the noise addition process, it only learns specific features in the spinal region, and regards the rest of the region as noise. Therefore, in the reverse denoising stage, all pixels above are removed as noise, so only the feature region containing the spinal target is smoothly segmented under this condition through the feature information obtained in the training stage. Therefore, the effectively trained diffusion model can significantly surpass other deep learning models in spinal screw placement surgery under imaging conditions where the spine is covered by bone screws, thereby extracting effective information features and performing spinal segmentation.

[0147] Example 3

[0148] A storage medium stores a program file capable of implementing any one of the above-mentioned clinical spinal image segmentation methods for assisting spinal nail placement surgery.

[0149] Example 4

[0150] A processor is used to run a program, wherein when the program is run, any one of the above clinical spinal image segmentation methods for assisting spinal nail placement surgery is executed.

[0151] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0152] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0153] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the system embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0154] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0155] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0156] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0157] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A clinical spinal image segmentation method for assisting spinal nail placement surgery, characterized in that: The following steps are involved: S101: Build an end-to-end framework of VerseDiff-UNet, which integrates the denoising diffusion probability model DDPM; S102: Use the VerseDiff-UNet framework to combine the noisy image with the marked mask to guide the diffusion direction to the target area; S103: Based on the denoising diffusion probability model DDPM, a shape prior module is introduced to extract structural semantic information from the input spine image.

2. The clinical spinal image segmentation method for assisting spinal nail placement surgery according to claim 1, characterized in that: Step S103 specifically includes: Given the original image data, multi-scale features are obtained through the encoder; The information input to the network is first extracted through the traditional downsampling and upsampling structure, and then extracted through each layer of shape prior modules and summed with the corresponding decoder features at the same level to obtain multi-scale fusion features; The skipped original features are enhanced by interacting with the global shape prior to generate discriminative shape representations and global contexts. The vertebral anatomical prior features of the original medical image are extracted using the shape prior model to finally obtain the prediction results.

3. The clinical spinal image segmentation method for assisting spinal nail placement surgery according to claim 2, characterized in that: In step S103, the encoder-decoder consists of three corresponding downsampling and upsampling modules respectively; the denoising diffusion probability model DDPM uses time steps to perform variational inference on the Markov process to learn the training data distribution. During the training phase, for each step, the anatomical structure is induced by adding the input image to the noise segmentation mask.

4. The clinical spinal image segmentation method for assisting spinal nail placement surgery according to claim 3, characterized in that: During the training phase, the model is fed with pairs of raw spine images with manually labeled masks, and the masks are gradually noisy. During the forward pass at each time step, Gaussian noise is added to the image until the image becomes isotropic Gaussian. In the inverse process, the Markov chain of the UNet network structure is used to construct an incremental denoising sequence to obtain a clean image; different Gaussian noise samples are used n times to generate n different reasonable masks.

5. The clinical spinal image segmentation method for assisting spinal nail placement surgery according to claim 3, characterized in that: Before training, dynamic data augmentation is used to avoid network overfitting and improve the robustness of the model, including three types of data augmentation: randomly rotating the image from -30° to 30° to simulate rotation variance; randomly translating the image by 1-5% to simulate translation variance; random elastic deformation and random contrast adjustment to improve the generalization ability of the model.

6. The clinical spinal image segmentation method for assisting spinal nail placement surgery according to claim 3, characterized in that: The denoising diffusion probability model DDPM uses the original image and the noisy segmentation label map as input to learn the denoising process.

7. The clinical spinal image segmentation method for assisting spinal nail placement surgery according to claim 2, characterized in that: Step S103 specifically includes: Given the original image data I∈R N×D×W×H , where N is the number of modality images, I and the noisy single hot label x t The channel is cascaded to the encoder of VerseDiff-UNet to obtain multi-scale features I E ; The information input to the network first passes through the traditional downsampling and upsampling structure, and then passes through the S-shaped prior learning module of each layer to extract information. f and the decoder feature I corresponding to the same layer D Add together to get the multi-scale fusion feature I f ; By interacting with the global shape prior, the skipped original features are enhanced to generate discriminative shape representations and global contexts. The shape prior model is used to extract the vertebral anatomical prior features of the original medical image, and finally the prediction results are obtained. where the step index t is integrated with the added embedding and decoder functions; in each, the embedding is done using a shared learned lookup table:

8. The clinical spinal image segmentation method for assisting spinal nail placement surgery according to claim 7, characterized in that: In the forward process, each time step in T adds Gaussian noise to the image x0~p(x0) until the image becomes an isotropic Gaussian image; the forward noise process is expressed as: where (x0,x1,x2…x T ) represents the T step size in the Markov chain, α is the noise scheduler that controls the noise variance; In the inverse process, the Markov chain and UNet network structure are used to establish an incremental denoising sequence to obtain a clean image; the parameters are as follows: Obtained by minimizing the KL-divergence between the forward and backward distributions at all time steps; The loss function is defined as: The iteration number is sampled from a uniform distribution, and ∈ is sampled from a Gaussian distribution.

9. A clinical spinal image segmentation device for assisting spinal nail placement surgery, characterized in that: include: A framework building unit, which is used to build an end-to-end framework of VerseDiff-UNet, which integrates the denoising diffusion probability model DDPM; A mask combination unit is used to combine the noisy image with the labeled mask using the VerseDiff-UNet framework to guide the diffusion direction to the target area; The semantic extraction unit is used to introduce a shape prior module based on the denoising diffusion probability model DDPM to extract structural semantic information from the input spine image.

10. The clinical spinal image segmentation device for assisting spinal nail placement surgery according to claim 9, characterized in that: The semantic extraction unit comprises: A feature acquisition unit, used to obtain multi-scale features through an encoder given the original image data; Feature fusion unit, which is used to extract the information input to the network through the traditional downsampling and upsampling structure, and then extract the information through each layer of shape prior module and sum it with the decoder features corresponding to the same level to obtain multi-scale fusion features; The result prediction unit is used to enhance the skipped original features by interacting with the global shape prior, generate discriminative shape representation and global context, use the shape prior model to extract the vertebral anatomical prior features of the original medical image, and finally obtain the prediction result.

Citation Information

Patent Citations

  • Three-dimensional segmentation method, system and device based on diffusion model and 3DTransform and medium

    CN116402987A

  • Cervical vertebra MRI image self-supervised segmentation method using diffusion model to generate data

    CN117036386A

Cited By

  • Deep learning-based spinal region ultrasound image semantic segmentation method

    CN119625322A

  • Medical image anomaly detection method and system

    CN119850556A

  • A medical image anomaly detection method and system

    CN119850556B

  • Low-dose CT imaging method and device based on semantic priori knowledge guidance

    CN119919519A

  • Spinal degenerative disease segmentation and reconstruction method based on anatomical cognition

    CN120823222A