The invention relates to an X-
ray chest
radiography spine offset detection method and
system based on a
prior probability graph, and the method comprises the steps: obtaining a to-be-detected X-
ray chest
radiography image, and carrying out the normalization of the transverse pixels of the image; obtaining a corresponding
prior probability value through linear interpolation in pre-constructed one-dimensional
prior probability distribution based on the normalized position of each column of transverse pixels of the image, constructing a one-dimensional array,
copying the one-dimensional array in the vertical direction, and constructing a two-dimensional prior probability graph; inputting an X-
ray chest radiograph image to be detected into the GPU accelerated segmentation network to obtain a spine binary
mask; and based on the two-dimensional prior probability graph, calculating an average prior probability and an offset probability in the
mask area of the spine binary
mask, comparing the average prior probability and the offset probability with a preset offset threshold value, if the offset probability is greater than the offset threshold value, determining that the spine is offset, otherwise, determining that the spine is basically centered. Compared with the prior art, the method has the advantages that the offset detection result has better
interpretability, stability and quantificaiton.