The invention relates to a
data analysis technology, and discloses a spectral feature and
artificial intelligence fused grain heavy
metal detection method and
system.The method comprises the steps that a near-
infrared diffuse reflection spectrum, a
laser-induced breakdown spectrum and a surface enhanced Raman spectrum of a grain sample are obtained, a matrix accumulation area thermodynamic diagram is constructed according to the near-
infrared diffuse reflection spectrum, and the matrix accumulation area thermodynamic diagram is obtained; the method comprises the following steps: optimizing a
laser-induced breakdown spectrum based on a thermodynamic diagram of a matrix accumulation area, carrying out dual-channel spatial-temporal
feature extraction on a surface enhanced Raman spectrum and the optimized
laser-induced breakdown spectrum to obtain a fusion
feature vector, carrying out weighted fusion optimization on the fusion
feature vector based on a
signal-to-
noise ratio of
multispectral data to obtain an optimized fusion
feature vector, and finally obtaining a fusion feature vector. And carrying out migration
adaptation on a pre-trained grain detection model by using a pre-marked new grain sample, and carrying out heavy
metal content identification on the grain sample by using the adaptive grain detection model according to the optimized fusion feature vector to obtain a heavy
metal detection result. The precision of grain heavy metal detection can be improved.