Medical image segmentation method based on dynamic multi-scale conditional diffusion model

By using a dynamic multi-scale conditional diffusion model, combined with a dynamic multi-scale ensemble network and a hierarchical feature enhancement module, the problem of insufficient recognition accuracy of lesion regions and boundaries in medical image segmentation by existing models is solved, achieving higher segmentation accuracy and robustness.

CN118247509BActive Publication Date: 2026-11-20SHAANXI UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410405468.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-07
Publication Date
2026-11-20
Estimated Expiration
2044-04-07

AI Technical Summary

Technical Problem

Existing diffusion models struggle to adequately account for the complexity of lesions of different sizes in medical image segmentation, neglect feature diversity, and fail to effectively integrate features at different levels, resulting in low segmentation accuracy for hidden lesion regions and boundaries.

Method used

A dynamic multi-scale conditional diffusion model is adopted. Through a dynamic multi-scale ensemble network and a hierarchical feature enhancement module, noise segmentation mask and original image features are fused to dynamically extract multi-scale conditional features. Furthermore, semantic richness is enhanced through hierarchical aggregation and detail extraction modules to capture the spatial relationship between the lesion area and surrounding tissues.

Benefits of technology

It significantly improves the ability to identify hidden lesion areas and the accuracy of lesion boundary delineation, achieving better medical image segmentation results, especially demonstrating superior segmentation performance on challenging datasets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118247509B_ABST
    Figure CN118247509B_ABST
Patent Text Reader

Abstract

The application discloses a medical image segmentation method based on a dynamic multi-scale conditional diffusion model, and comprises the following steps: 1, constructing a network model and initializing hyperparameters; 2, pre-processing an unlabeled medical image X and a labeled medical image x thereof; 3, inputting x into a denoising network, performing forward diffusion to add noise to x, and obtaining a noise mask graph x T ; 4, inputting x T and X into a dynamic multi-scale integrated network for fusion, and extracting multi-scale features F1, F2, F3 and F4; 5, performing feature fusion on F1, F2, F3 and F4 by using a hierarchical feature enhancement module, and outputting fused conditional features; 6, performing a reverse diffusion process of the denoising network guided by the conditional features, and obtaining a denoised noise mask graph; and 7, iterating steps 3-6, and restoring x T to a clear segmentation mask graph, so that the application can accurately identify the contour of a medical image to-be-segmented target and complete a segmentation task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of image processing technology, specifically a medical image segmentation method based on a dynamic multi-scale conditional diffusion model. Background Technology

[0002] Medical image segmentation technology plays an important role in clinical medicine. It can analyze specific regions or tissues in human images and extract their pathological morphology, providing clinicians with professional data on the patient's condition. This helps doctors to analyze and diagnose the condition more accurately, formulate more precise medical plans and diagnostic strategies, and thus select more effective and safer treatment options to promote the patient's health recovery.

[0003] Traditional medical image recognition and analysis mainly rely on the experience of clinicians and manual segmentation, which is not only time-consuming and labor-intensive, but also greatly affected by subjective factors. With the development of medical image segmentation technology, automatic segmentation of medical images has become a research hotspot that has attracted much attention. However, due to the low contrast of some medical images, the different shapes and sizes of target areas, and the very blurry boundaries between target areas and surrounding normal tissues, automatic segmentation of medical images has become an extremely challenging task.

[0004] With the development of deep learning, scholars have proposed many medical image segmentation models, which can be roughly divided into two categories: CNN-based segmentation models and Transformer-based segmentation models. Among them, CNN-based segmentation models perform well in medical image segmentation tasks, but they cannot fully consider the relationships and interdependencies between different regions in the image and lack a comprehensive understanding of the entire image. They face serious challenges when segmenting large-area or unevenly distributed medical images. Transformer-based models are good at extracting effective global information, thereby enhancing the global context representation of the network. However, their overemphasis on global features results in a lack of ability to recognize local details, leading to a decline in the segmentation performance of small lesion areas and blurred boundaries.

[0005] Currently, diffusion models have received widespread attention due to their excellent feature learning capabilities in inverse denoising. Therefore, some scholars have adopted diffusion models in image segmentation tasks and achieved good segmentation results. For example, Baranchuk et al. pointed out that the U-shaped structure in the denoising diffusion model can effectively extract semantic features of the image and were the first to apply the diffusion model to semantic segmentation tasks. Amit et al. proposed SegDiff, which treats the input image as conditional features to guide the iterative inverse process of the diffusion model. Woleb et al. pioneered the application of diffusion models to medical image segmentation, using the model's random noise to generate a set of implicit segmentation masks, effectively improving segmentation performance. To strengthen the constraints of conditional features during the diffusion process, MedSegDiff integrates the noise segmentation mask into the conditional feature encoding process and uses a feature frequency parser (FF Parser) to suppress high-frequency noise during the diffusion process, thereby refining the segmentation results. However, due to the limited global representation capability of conditional features, MedSegDiff... Incorrect masks can easily be generated. To address this issue, Wu et al. improved MedSegDiff by introducing a Transformer to model the interaction between segmentation noise and semantic features, thereby further enhancing segmentation accuracy. In addition, Chen et al. proposed a conditional Bernoulli diffusion model to generate more accurate segmentation masks. Bozorgpour et al. proposed DermoSegDiff with boundary-aware loss, which demonstrated impressive segmentation performance on a skin lesion dataset.

[0006] Although the diffusion model has shown great potential and application value in image segmentation tasks, there are still three main problems when applying the diffusion model to medical image segmentation tasks: (1) The complexity of lesions of different sizes cannot be fully considered when extracting conditional features, resulting in poor segmentation performance for lesion regions of different sizes and relatively hidden lesions; (2) Conditional features are usually extracted only from the original image or noise mask, ignoring the impact of feature diversity on segmentation performance; (3) Features at different levels cannot be integrated according to the diversity of semantic features, resulting in the inability to fully capture the key semantic information of the lesion region boundary and low segmentation accuracy. Summary of the Invention

[0007] To address the shortcomings of existing technologies, the purpose of this invention is to provide a medical image segmentation method based on a dynamic multi-scale conditional diffusion model, which can accurately identify hidden lesion regions and delineate the boundaries of lesion regions of various shapes, thereby improving the segmentation accuracy of medical images.

[0008] To achieve the above objectives, the present invention employs the following technical solution: A medical image segmentation method based on a dynamic multi-scale conditional diffusion model includes the following steps: Step 1: Construct the network model PolypSegDiff and initialize the hyperparameters; The network model PolypSegDiff includes a dynamic multi-scale ensemble network, a hierarchical feature enhancement module, and a denoising network. The dynamic multi-scale ensemble network includes four pyramid Transformer layers, where pyramid Transformer layer 1 consists of a Gaussian smooth attention embedding layer and a Transformer encoder, and pyramid Transformer layers 2, 3, and 4 each consist of an overlapping embedding layer and a Transformer encoder. The hierarchical feature enhancement module includes a hierarchical aggregation module and a detail extraction module. Step 2: Unlabeled medical images to be segmented and the corresponding medical images with labeled truth values. Preprocessing is required; Step 3: Label the medical images with ground truth values. Input the denoising network, and utilize the forward diffusion process of the denoising network to... Noise addition processing, after The process involves iterative steps to obtain the noise mask image after adding noise. ; Step 4: Obtain the noise mask image and unlabeled medical images to be segmented Input the dynamic multi-scale ensemble network together, for and Perform feature fusion and extract multi-scale features from the fused features. , , and ; Step 5: The hierarchical feature enhancement module enhances multi-scale features. , , and Perform hierarchical feature fusion and output the fused conditional features; Step 6: Obtain the noise mask image The noise is then fed into a denoising network with conditional features. These features guide the back-diffusion process of the denoising network, resulting in a denoised noise mask. ; Step 7: Iterate through steps 3 to 6, and after... After the next reverse denoising iteration, Restore to a clear segmentation mask image .

[0009] Furthermore, the initialization of hyperparameters in step 1 includes setting the training batch size to 32, the number of training iterations to 200, and the initial learning rate to 0.001.

[0010] Furthermore, the preprocessing process in step 2 is as follows: first, the unlabeled medical image is processed by random scaling, horizontal and vertical flipping, rotation, filling, and random cropping. Perform data augmentation, then use the unlabeled medical images and medical images labeled with true values The size has been adjusted to 256×256.

[0011] Furthermore, the specific process of step 3 is as follows: During the forward diffusion process of the denoising network, through continuous... Step-by-step iteration, from the original labeled ground truth medical image As Gaussian noise is gradually added, the forward diffusion process is represented as follows: In the formula, Represents the number of diffusion steps. The noise mask representing the diffusion process, with the formula for adding Gaussian noise in each iteration, is expressed as: In the formula, These are the parameters used to control Gaussian noise during the forward diffusion process. It is The identity matrix, at any time The formula for sampling is expressed as: In the formula, Is with The relevant attenuation coefficient, express All during the diffusion process The product of.

[0012] Furthermore, the specific process of step 4 is as follows: Step 4.1: The Gaussian smoothing attention embedding layer in Pyramid Transformer layer 1 uses Gaussian smoothing to reduce the noise mask image. The impact of noise on feature information, and the effect of Gaussian smoothing noise reduction. With original medical images Separate convolutions are performed to obtain their respective feature maps, which are then summed to obtain a fused feature map. Simultaneously, ... The feature map is input into spatial attention, and the output of spatial attention is multiplied with the fused feature map to generate conditional features; Step 4.2: The conditional features are used as input to the Transformer encoder in the first layer of the pyramid Transformer, and the Transformer encoder outputs a feature map. ; Step 4.3, Input to Pyramid Transformer layer 2, output feature map ; Step 4.4, Input to Transformer layer 3, output feature map ; Step 4.5: Transfer the feature map Input to the fourth layer of the pyramid Transformer, output feature map .

[0013] Furthermore, the specific process of step 5 is as follows: Step 5.1: Extract the bottom feature map The input detail extraction module captures data from different dimensions. Hidden polyp details and output , represented as: In the formula, Represents spatial attention operations. Represents channel attention operations. Represents element-wise multiplication; Step 5.2: Transfer the high-level feature map , and Input to the hierarchical aggregation module, first process the high-level features Perform upsampling to match the feature map , With the same size, the high-level feature maps are then subjected to multi-layer upsampling and cascading operations. , and The features are then fused, convolved separately, and finally fused through element-wise multiplication and tensor concatenation to output a feature map containing high-level semantic features. , represented as: In the formula, Represents the convolution operation. Represents tensor splicing operation; Step 5.3: Extract the output from the detail refinement module. and the output of the hierarchical aggregation module Tensor splicing is performed, and the spliced ​​features are used as conditional features to guide the iteration of the denoising network.

[0014] Furthermore, the reverse diffusion process in step 6 is represented as follows: In the formula, For segmentation mask image, This represents the variance of the Gaussian distribution during the backdiffusion process.

[0015] Compared with the prior art, the present invention has the following technical effects: The proposed network model, PolypSegDiff, comprises a dynamic multi-scale ensemble network and a hierarchical feature enhancement module. The dynamic multi-scale ensemble network fuses features from a noisy segmentation mask and the original image, and dynamically extracts multi-scale conditional features. This not only effectively reduces the misleading effect of noise during feature fusion but also significantly enhances the network's ability to identify lesion regions of various shapes and sizes. The hierarchical feature enhancement module selectively processes and fuses multi-scale information at different depths, effectively improving the semantic richness of conditional features. This helps the denoising network better capture the spatial relationships and semantic associations between lesion regions and surrounding tissues, resulting in a clear segmentation mask, i.e., the medical image segmentation result. In short, the medical image segmentation method based on the dynamic multi-scale conditional diffusion model proposed in this invention can effectively identify hidden lesion regions and accurately delineate the boundaries of lesion regions of various shapes, achieving better image segmentation results and possessing broad application prospects. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the network model PolypSegdiff of the present invention; Figure 2 This is a schematic diagram of the structure of the dynamic multi-scale integrated network of the present invention; Figure 3 This is a schematic diagram of the structure of the Gaussian smoothing attention embedding layer of the present invention; Figure 4 This is a schematic diagram of the structure of the hierarchical feature enhancement module of the present invention; Figure 5 This is a visualization of the network model PolypSegdiff of this invention and existing networks on a polyp segmentation dataset. Detailed Implementation

[0017] The specific content of the present invention will be further explained in detail below with reference to the embodiments.

[0018] A medical image segmentation method based on a dynamic multi-scale conditional diffusion model includes the following steps: Step 1: Construct the network model PolypSegDiff and initialize the hyperparameters; The structure of the network model PolypSegDiff is as follows: Figure 1 As shown, it includes a dynamic multi-scale ensemble network, a hierarchical feature enhancement module, and a denoising network, wherein: the structure of the dynamic multi-scale ensemble network is as follows Figure 2 As shown, it includes a pyramid Transformer layer 1, a pyramid Transformer layer 2, a pyramid Transformer layer 3, and a pyramid Transformer layer 4. The pyramid Transformer layer 1 consists of a Gaussian smoothed attention embedding layer and a Transformer encoder. The structure of the Gaussian smoothed attention embedding layer is as follows: Figure 3 As shown, pyramid Transformer layer 2, pyramid Transformer layer 3, and pyramid Transformer layer 4 are all composed of overlapping embedding layers and Transformer encoders; the structure of the hierarchical feature enhancement module is as follows. Figure 4 As shown, it includes a hierarchical aggregation module and a detail extraction module; Before training the network model, the hyperparameters of the network model PolypSegDiff are initialized. The training batch size is set to 32 and the number of training iterations is set to 200. During the training process, a learning rate decay strategy is adopted, and the initial learning rate is set to 0.001. Step 2: Unlabeled medical images to be segmented and the corresponding medical images with labeled truth values. Preprocessing is performed, specifically: for unlabeled medical images Data augmentation operations were performed, including random scaling, horizontal and vertical flipping, rotation, padding, and random cropping, followed by normalization to transform the unlabeled medical images. and medical images labeled with true values The size is adjusted to 256×256; wherein, the rotation is to randomly rotate the image by 90 degrees; Step 3: Utilize the forward diffusion process of the denoising network to process the medical images labeled with ground truth. Noise is added, after The process involves iterative steps to obtain the noise mask image after adding noise. The specific process is as follows: During the forward diffusion process, through continuous... Step-by-step iteration, from the original labeled ground truth medical image As Gaussian noise is gradually added, the forward diffusion process is represented as follows: In the formula, This represents the number of diffusion steps. During training, it is set to 100, while during actual prediction, it is set to 20. The noise mask representing the diffusion process, with the formula for adding Gaussian noise in each iteration, is expressed as: In the formula, These are the parameters used to control Gaussian noise during the forward diffusion process. It is The identity matrix, during the forward diffusion process, at any time The formula for sampling is expressed as: In the formula, Is with The relevant attenuation coefficient, express All during the diffusion process The product of.

[0019] Step 4: Obtain the noise mask image and unlabeled medical images to be segmented Together input dynamic multiscale ensemble network, dynamic multiscale ensemble network for and Perform feature fusion and extract multi-scale features from the fused features. , , and The specific process is as follows: Step 4.1: Obtain the noise mask image. and unlabeled medical images to be segmented Inputting Pyramid Transformer layer 1, firstly, the Gaussian smoothing attention embedding layer in Pyramid Transformer layer 1 uses a Gaussian smoothing operation to reduce the noise mask image. This study examines the impact of noise on feature information, aiming to improve the segmentation performance of the network model. Furthermore, it analyzes the noise reduction process after Gaussian smoothing. With original medical images Separate convolutions are performed to obtain their respective feature maps, which are then summed to obtain a fused feature map. Simultaneously, ... The feature map is input into spatial attention; then, the output of spatial attention is multiplied with the fused feature map to generate more accurate conditional features; Step 4.2: The output of the Gaussian smoothed attention embedding layer is used as the input to the Transformer encoder in the pyramid Transformer layer 1. The Transformer encoder outputs a feature map. ; Step 4.3, Input is a pyramid Transformer layer 2 consisting of overlapping embedding layers and a Transformer encoder, output is a feature map. ; Step 4.4, Input to Transformer layer 3, output feature map ; Step 4.5, Input to the fourth layer of the pyramid Transformer, output feature map ; Step 5: Combine multi-scale features , , and The input is fed into the hierarchical feature enhancement module, which enhances multi-scale features. , , and The hierarchical feature fusion is performed, and the final output is the fused conditional feature. The specific process is as follows: Step 5.1: Extract the bottom feature map The input detail extraction module includes a channel attention module and a spatial attention module, capturing data from different dimensions. Hidden polyp details and features, output of the detail extraction module Represented as: In the formula, Represents spatial attention operations. Represents channel attention operations. Represents element-wise multiplication; Step 5.2: Transfer the high-level feature map , and Input to the hierarchical aggregation module, first process the high-level features Perform upsampling to match the feature map , With the same size, the high-level feature maps are then subjected to multi-layer upsampling and cascading operations. , and The features are then fused, followed by convolutions, and finally fused through element-wise multiplication and tensor concatenation to output a feature map containing rich high-level semantic features. , is represented as: In the formula, Represents the convolution operation. Represents tensor splicing operation; Step 5.3: Extract the output from the detail refinement module. and the output of the hierarchical aggregation module Tensor splicing is performed, and the spliced ​​features are used as conditional features to guide the iteration of the denoising network. Step 6: Obtain the noise mask image The conditional features output from the hierarchical feature enhancement module are input into the denoising network. These conditional features guide the back-diffusion process of the denoising network, resulting in a noise mask. Denoising mask image ; The reverse diffusion process is represented as follows: In the formula, This represents the variance of the Gaussian distribution during the backdiffusion process; Step 7: Iterate through steps 3 through 6, until... After the reverse denoising iteration, Restore to a clear segmentation mask image , This is the final segmentation result image.

[0020] To verify the performance of the proposed PolypSegDiff network model in medical image segmentation, polyp images from existing public datasets such as Kvasir-SEG, CVC-ClinicDB, CVC-300, ColonDB, and ETIS-LaribPolypDB were used for training and testing. The training dataset contains 1450 images, including 900 from Kvasir-SEG and 550 from CVC-ClinicDB. 100 images were randomly selected from the training set as a validation set to verify the performance of the PolypSegDiff network model in medical segmentation. Simultaneously, the AdamW optimizer was used to update the parameters of the PolypSegDiff network model.

[0021] To test the accuracy and superiority of the proposed network model PolypSegDiff for medical image segmentation, the following experiments were conducted: The verification environment was as follows: CPU: Intel(R) Xeon(R) Gold 6226R; RAM: 32GB; GPU: NVIDIA A30 with 24GB of video memory, and it was performed on the Ubuntu 16.04.10 operating system. The deep learning framework used to implement the model proposed in this invention is PyTorch. The segmentation performance is evaluated using the following metrics: In the formula, , F and represent the number of true negatives, true negatives, and false negatives, respectively. The ratio of the predicted target to the actual labeled value indicates the similarity or overlap between the two samples. This refers to a set similarity measurement function, typically used to calculate the similarity between two samples. and The value range is [0, 1]. The closer the value is to 1, the better the segmentation effect.

[0022] First, ablation experiments were conducted to verify the effectiveness of the dynamic multi-scale ensemble network and hierarchical feature enhancement module in PolypSegDiff proposed in this embodiment. Ablation experiments were performed on the CVC-ColonDB dataset, comparing PolypSegDiff with a baseline model using the same architecture based on Pyramid Transformer. Specifically, initially, the Baseline model used Pyramid Transformer instead of the dynamic multi-scale ensemble network, and layer-by-layer upsampling and tensor concatenation operations instead of the hierarchical feature enhancement module. Then, the multi-scale ensemble network and hierarchical feature enhancement module were gradually added to the Baseline model. mDice and mIoU were statistically analyzed to demonstrate the effectiveness of image segmentation. The ablation experiment results are shown in Table 1, indicating that the multi-scale ensemble network and hierarchical feature enhancement module can significantly improve the segmentation performance of the network model in the polyp segmentation task.

[0023] Table 1 Ablation test results of each component of PolypSegDiff Table 2 compares the segmentation results of PolypSegDiff with mainstream segmentation network models in recent years on existing public datasets for polyp images. Bold text represents the best results, and underlined text represents the second-best results. As shown in Table 2, the PolypSegDiff network model achieves the best results on the Kvasir-SEG, CVC-300, CVC-ColonDB, and ETIS-LaribPolypDB polyp datasets, and achieves second-best results on the CVC-ClinicDB dataset. Especially on the challenging CVC-ColonDB and ETIS-LaribPolypDB datasets, PolypSegDiff demonstrates a significant performance advantage, with mDice exceeding that of the second-best network, CaraNet. 6.8% and 3.7%; on the Kvasir-SEG and CVC-300 datasets, it outperforms the second-best network CaraNet by 0.7% and 0.5% in mDice, respectively; on the second-best performing CVC-ClinicDB dataset, it is only comparable to the best network CaraNet. The difference in mDice is 0.2%. This shows that PolypSegDiff has stronger segmentation accuracy and versatility compared to existing networks, and can accurately segment polyp boundaries. Especially for some challenging segmentation targets, PolypSegDiff can achieve more accurate segmentation compared to existing methods.

[0024] Table 2. Comparative experimental results of different network models on five polyp segmentation datasets. Figure 5 This demonstrates the visualization results of the PolypSegDiff network model of this embodiment and existing network models on the polyp segmentation dataset. Figure 5 It is evident that PolypSegDiff consistently demonstrates robust segmentation capabilities across polyps of varying sizes and types, outperforming other models in both adaptability and accuracy. Furthermore, PolypSegDiff exhibits superior perception of blurred edges of polyps, enabling more accurate segmentation of polyp target boundaries.

Claims

1. A medical image segmentation method based on a dynamic multi-scale conditional diffusion model, characterized in that, Includes the following steps: Step 1: Construct the network model PolypSegDiff and initialize the hyperparameters; The network model PolypSegDiff includes a dynamic multi-scale ensemble network, a hierarchical feature enhancement module, and a denoising network. The dynamic multi-scale ensemble network includes four pyramid Transformer layers, where pyramid Transformer layer 1 consists of a Gaussian smooth attention embedding layer and a Transformer encoder, and pyramid Transformer layers 2, 3, and 4 each consist of an overlapping embedding layer and a Transformer encoder. The hierarchical feature enhancement module includes a hierarchical aggregation module and a detail extraction module. Step 2: Unlabeled medical images to be segmented and its corresponding labeled true medical images Preprocessing is required; Step 3: Label the medical images with ground truth values. Input the denoising network, and utilize the forward diffusion process of the denoising network to... Noise addition processing, after The process involves iterative steps to obtain the noise mask image after adding noise. ; Step 4: Obtain the noise mask image and unlabeled medical images to be segmented Input the dynamic multi-scale ensemble network together, for and Perform feature fusion and extract multi-scale features from the fused features. , , and The specific process is as follows: Step 4.1: The Gaussian smoothing attention embedding layer in Pyramid Transformer layer 1 uses Gaussian smoothing to reduce the noise mask image. The impact of noise on feature information, and the effect of Gaussian smoothing noise reduction. With original medical images Separate convolutions are performed to obtain their respective feature maps, which are then summed to obtain a fused feature map. Simultaneously, ... The feature map is input into spatial attention, and the output of spatial attention is multiplied with the fused feature map to generate conditional features; Step 4.2: The conditional features are used as input to the Transformer encoder in the first layer of the pyramid Transformer, and the Transformer encoder outputs a feature map. ; Step 4.3, Input to Pyramid Transformer layer 2, output feature map ; Step 4.4, Input to Transformer layer 3, output feature map ; Step 4.5: Transfer the feature map Input to the fourth layer of the pyramid Transformer, output feature map ; Step 5: The hierarchical feature enhancement module enhances multi-scale features. , , and Perform hierarchical feature fusion and output the fused conditional features. The specific process is as follows: Step 5.1: Extract the bottom feature map The input detail extraction module captures data from different dimensions. Hidden polyp details and output , represented as: In the formula, Represents spatial attention operations. Represents channel attention operations. Represents element-wise multiplication; Step 5.2: Transfer the high-level feature map , and Input to the hierarchical aggregation module, first process the high-level features Perform upsampling to match the feature map , With the same size, the high-level feature maps are then subjected to multi-layer upsampling and cascading operations. , and The features are then fused, convolved separately, and finally fused through element-wise multiplication and tensor concatenation to output a feature map containing high-level semantic features. , represented as: In the formula, Represents the convolution operation. Represents tensor splicing operation; Step 5.3: Extract the output from the detail refinement module. and the output of the hierarchical aggregation module Tensor splicing is performed, and the spliced ​​features are used as conditional features to guide the iteration of the denoising network. Step 6: Obtain the noise mask image The noise is then fed into a denoising network with conditional features. These features guide the back-diffusion process of the denoising network, resulting in a denoised noise mask. ; Step 7: Iterate through steps 3 to 6, and after... After the next reverse denoising iteration, Restore to a clear segmentation mask image .

2. The medical image segmentation method based on a dynamic multi-scale conditional diffusion model according to claim 1, characterized in that, The initialization of hyperparameters in step 1 includes setting the training batch size to 32, the number of training iterations to 200, and the initial learning rate to 0.

001.

3. The medical image segmentation method based on a dynamic multi-scale conditional diffusion model according to claim 1, characterized in that, The preprocessing process in step 2 is as follows: first, the unlabeled medical images are processed by random scaling, horizontal and vertical flipping, rotation, filling, and random cropping. Perform data augmentation, then use the unlabeled medical images and medical images labeled with true values The size has been adjusted to 256×256.

4. The medical image segmentation method based on a dynamic multi-scale conditional diffusion model according to claim 1, characterized in that, The specific process of step 3 is as follows: During the forward diffusion process of the denoising network, through continuous... Step-by-step iteration, from the original labeled ground truth medical image As Gaussian noise is gradually added, the forward diffusion process is represented as follows: In the formula, Represents the number of diffusion steps. The noise mask representing the diffusion process, with the formula for adding Gaussian noise in each iteration, is expressed as: In the formula, These are the parameters used to control Gaussian noise during the forward diffusion process. It is The identity matrix, at any time The formula for sampling is expressed as: In the formula, Is with The relevant attenuation coefficient, express All during the diffusion process The product of.

5. The medical image segmentation method based on a dynamic multi-scale conditional diffusion model according to claim 1, characterized in that, The reverse diffusion process in step 6 is represented as follows: In the formula, For segmentation mask image, This represents the variance of the Gaussian distribution during the backdiffusion process.