The invention relates to the technical field of
chromosome recognition and segmentation, in particular to a
chromosome recognition and segmentation method based on an attention mechanism and
small target detection, which comprises the following steps: acquiring an image containing a
metaphase of a
chromosome, and preprocessing the image; secondly, on the basis of a YOLOv8-seg framework, an asymptotic feature
pyramid network is introduced, asymptotic fusion is carried out on feature maps of different levels, a
semantic gap caused by fusion between non-adjacent
layers in a traditional network is avoided, and the
small target chromosome detection precision is improved; on the basis of an output layer of the asymptotic feature
pyramid network, a
small target detection layer is introduced, a detection result of a small target is output through
convolution operation, activation and
feature fusion, and the introduction of the small target detection layer enables the number of
convolution times to be small and the size of a feature map of an image to be large, so that small target recognition is more facilitated; and finally, by taking the YOLOv8-seg framework as a baseline, introducing an
extrusion encouraging attention mechanism network behind the final convolutional layer of the neural network.