The invention belongs to the technical field of medical
image processing, and particularly relates to a double-
encoder semi-supervised heart MRI double-
ventricle segmentation method based on improved SAM. A teacher model and a student model which are used both comprise double encoders, prompt encoders and
mask decoders, each double
encoder comprises a ViT
branch and a CNN-Mama
branch which are parallel, parameter
fine tuning of the ViT
branch is realized through a position adapter and a feature adapter, the CNN-Mama branch mainly comprises a
convolution fusion Mama block and a second-order dimension attention block, and the CNN-Mama branch is used for realizing
fine tuning of parameters of the CNN-Mama block. The
convolution fusion Mama block introduces an enhanced
convolution block on the basis of a VSS block, and the second-order dimension attention block uses a
covariance matrix to mine second-order statistical information of data; carrying out weighted summation on the output features of the ViT branch and the CNN-Mama branch to obtain the output features of the double encoders; the output features of the double-
encoder and the prompt encoder are input into a
mask decoder to be decoded, and a segmentation result is obtained; and performing joint training on the teacher model and the student model based on interpolation consistency regularization semi-supervision, and using the trained student model as a segmentation model for double-
ventricle segmentation of heart MRI. The segmentation model has strong
feature extraction capability, can effectively extract the edge information of the ventricles and the boundary information of the double-
ventricle connection region, and improves the segmentation precision.