The invention discloses a cross-domain hyperspectral image
small sample classification method based on a
diffusion model, and the method comprises the steps: 1, obtaining a source domain hyperspectral image
data set and a target domain hyperspectral image
data set, and constructing a source domain training sample set, a target domain training sample set, and a target domain
test sample set; step 2, establishing a source
domain element task based on the source domain training sample set, and performing joint pre-training on a
diffusion-driven domain adapter and an
image classifier by using the source
domain element task to obtain a source domain pre-training model; step 3, establishing a target
domain element task based on the target domain training sample set, and performing
fine tuning on the source domain pre-training model by using a target domain training sample to obtain a fine-tuned model; and 4, inputting a target domain
test sample into the fine-tuned model, obtaining domain correction features through
a domain adapter and a feature extractor, and outputting a classification graph. According to the method, by introducing the
diffusion-driven domain adapter, the distribution difference between the source domain and the target domain is relieved, and the cross-domain classification performance under the
small sample condition is improved.