The invention discloses a grain
hyperspectral image classification method based on
incremental learning, and belongs to the field of image classification, and the method comprises the following steps: S1, the construction of an experimental
data set: selecting a plurality of old-class rice grains and a plurality of new-class rice grains, collecting a fixed number of samples for each class, dividing a historical
training set, a historical
test set, a new category
training set and a new category
test set, converting the hyperspectral
original data into a
Tensor format, and normalizing the hyperspectral
original data to [0, 1]; s2, initial model training; s3, new category incremental training: extracting historical category statistical parameters from a feature
memory module to construct an anchoring
pool, screening Top-3 similar historical categories, embedding a
diffusion model
noise adding process, injecting spectrum and space priori knowledge to generate virtual samples, performing dual dynamic
verification, and combining real and virtual samples to form a new category
training set; and calculating the
distillation weight based on the spectrum similarity, and training the model through the dual-target
distillation loss.