The invention discloses a
remote sensing image
urban landscape classification method and
system based on a self-
attention network, and relates to the technical field of
remote sensing image recognition and classification, and the method comprises the steps: obtaining a
remote sensing image and a classification mark, and carrying out the data enhancement; segmenting the remote sensing image in the
data set to obtain an image block sequence; constructing a self-
attention network based on a visual Transform model, wherein the self-
attention network comprises an embedded layer, an
encoder and a task head; inputting an image block sequence and a classification mark to the self-attention network, obtaining an embedded representation in an embedding layer, then connecting the embedded representation with the classification mark, and obtaining a result embedded image block sequence with a mark; embedding the marked result into an image block sequence, inputting the image block sequence into an
encoder, and generating a feature representation and an attention
score; and inputting the feature representation into a task head, generating a classification
label according to the attention
score, and completing remote sensing image
urban landscape classification. The method is high in generalization performance, classification is performed based on the global context dependency relationship of the image, and the accuracy is improved.