The application provides a medical
image segmentation method and
system based on a CNN-
Transformer parallel
encoder, and relates to the technical field of medical
image segmentation, and the specific steps comprise: inputting a standardized medical image into a parallel
encoder, extracting local texture and global
semantic feature maps, and aligning the resolution and spatial position through a
spatial correlation matrix; screening
lesion features based on an anatomical structure prior
feature set, dynamically allocating weights to obtain fusion features; taking a
lesion gold standard mask as a
label, obtaining an initial
lesion probability feature map through a decoder, and calculating a bias value; iteratively optimizing a parameter combination to output an optimal configuration parameter combination, and obtaining a final lesion probability feature map, which is classified and activated, thresholded, and outputted as a segmentation
mask. The application effectively avoids the local optimal solution of parameter optimization, combines a bias value threshold-driven rapid screening mechanism, fine-tunes parameters for different
modal images without full retraining, and effectively breaks through the
bottleneck of poor adaptability of the prior art.