The invention provides an automatic chromosome karyotype analysis and anomaly detection method. According to the method, an attention mechanism and a convolutional neural network are combined, the target is positioned in two stages, and the area of the target is roughly positioned in the first stage; in the second stage, an attention mechanism is added to the target area in the first stage, deepersemantic features are extracted to predict a mask of the target, meanwhile, the position of the target is roughly positioned by means of category prediction and a detection box regression task, and segmentation is conducted; finally, the trained model is used for segmenting and detecting the chromosome image, chromosome segmentation and anomaly detection can be accurately achieved, and thereforechromosome karyotype analysis automation is achieved. The method provided by the invention can overcome the defects that a traditional chromosome karyotype analysis method mainly depends on genetics to carry out artificial interaction analysis, time is consumed, overlapped chromosomes are not easy to separate, abnormal chromosomes cannot be automatically detected and the like.