The invention relates to a
heart motion estimation method and device based on motion smoothness retention loss and a medium. The method comprises the following steps: inputting a moving image and a fixed image into a key point detection network to extract key point pairs; constructing a sparse basic
motion vector according to the
relative motion between each pair of key points to obtain a sparse
motion vector expressed by
heart motion, carrying out three-dimensional repeated
broadcasting to generate a dense basic
motion field, carrying out
spatial distortion transformation on a moving image, generating a coarse registration image set, and carrying out coarse registration; inputting into a dense
motion estimation network to predict to obtain a weight
mask corresponding to each dense basic
motion field, and weighting and combining to obtain a dense
motion field; wherein the motion smoothness retention loss based on a key point sparse motion
mask is introduced to carry out network training, and the smoothness of the dense motion field is adaptively adjusted according to a weight
mask representing the
motion intensity difference of different regions. Compared with the prior art, the method has the advantages of being high in structure retentivity, high in individual generalization and high in
heart motion detail modeling capacity.