The invention discloses a medical
image generation method based on cyclic
diffusion and target guide sampling. According to the method, existing source
modal medical images are converted into other target
modal medical images through cyclic
diffusion. An additional attention mechanism is introduced into a
noise prediction network of a
diffusion model of the cyclic diffusion model, and anatomical structure information in the source
modal medical image is fused with a
current noise image; meanwhile, the anatomical structure segmentation network introduces anatomical structure shape loss. When the diffusion model is trained, a perceptual priority weighted P2W training strategy is adopted: by adjusting the weight of a
loss function, the diffusion model preferentially learns the
global structure of the image at a high
noise level and optimizes the details of the image at a
low noise level; meanwhile, a target-guided classifier for a sampling stage is trained. In a sampling stage, first, reverse sampling is performed from a source modal image to obtain a potential code; and under the guidance of the classifier, the sampling process is guided by utilizing the probability gradient information of the target modal, and the generation of a target modal image is completed.