The invention provides a semi-supervised MRI (
Magnetic Resonance Imaging)
brain tumor segmentation method based on a contrast-guided
diffusion model, and belongs to the field of
image segmentation. In the step S1, T1 sequence data of a BraST2018
data set is subjected to
slicing processing, and
slicing data without tumor is partially shielded; in the step S2, a focus and health image data pair is generated, a
brain tumor sample
mask is used for constructing a minimum enclosing rectangular shield, and a
focus area is restored to a health tissue; in the step S3, through the data pair obtained in the step S2, a contrast information guide
diffusion model is used for denoising, and a focus
label is generated. Then, carrying out pre-training by using the
labeled data, generating a pseudo-
label for the unlabeled data through a pre-training model, and then substituting the pseudo-
label and the
labeled data into the model for a retraining process; in the step S4, the structural contrast loss is used, and the
information mining capability of the model under the condition that the false label confidence coefficient is insufficient is improved; in the step S5, training and
verification are carried out by only using a small amount of marked data. By constructing the semi-supervised segmentation method based on the contrast-guided
diffusion model, the focus segmentation of the
MRI brain tumor is realized on the premise of only needing a small amount of marked data. The method solves the problem that a traditional
deep learning segmentation method excessively depends on a large amount of marked data, and improves the segmentation performance of the model under the condition of a small amount of marked data.