The invention discloses a
small sample HSI classification method based on prototype
mask comparison and cross-stage feature refinement, and the method comprises the steps: carrying out the meta-task training in a source domain and a target domain in a crossing manner, carrying out the
spectral dimension unification of samples of a support set and a query set in each meta-task, carrying out the multi-dimensional
feature fusion resistant to the dependence of adjacent pixels, and carrying out the classification of the multi-dimensional features. Obtaining support features and query features; constructing positive and
negative sample pairs representing a prototype under each meta-task, and performing prototype
mask comparison through graph
convolution; according to the method, feature redundancy
elimination refining is carried out based on emphasis mapping of a cross-domain shared multi-layer
perceptron, cross-stage feature refining is carried out on support features and query features through the multi-layer
perceptron and directional calibration coordination, refined support features and refined query features are obtained, and different losses are optimized in two training stages; in the test stage, small samples of a target domain are used, and a K-
nearest neighbor classifier is trained for classification prediction through features extracted after dimensionality unified mapping, a
feature extraction module and a multi-layer
perceptron in sequence.