The invention discloses a grain
crop grain classification detection method and
system based on small samples, and relates to the technical field of
grain quality detection.The method comprises the steps that hyperspectral images of grain
crop grains are obtained, quality categories are marked, and then multi-
modal features are extracted to construct a classification
data set; the
data set is used for training a multi-
modal fusion classification model, a
feature fusion network carries out dynamic weighted fusion on multi-
modal features by means of an attention mechanism, a high-dimensional fusion
feature vector is generated, and a classifier detects a quality category according to the high-dimensional fusion
feature vector. During detection, the multi-modal features of the to-be-detected grains are input into the trained model, and then the quality category can be obtained. The method effectively solves the problems that a single
modal method is difficult to deal with complex differences among grain
crop grain types, high in hyperspectral
data dimension, few in samples, easy to over-fit and the like under the condition of small samples, dynamic focusing of key information is realized by introducing an attention mechanism to optimize modal fusion
weight distribution, and the method is suitable for popularization and application. And the classification accuracy and the model robustness are improved.