The invention relates to the technical field of detection and identification, in particular to a
semen cassiae authenticity identification method based on
hyperspectral imaging, which comprises the following steps: S1, acquiring a hyperspectral image of a
semen cassiae sample by using
hyperspectral imaging equipment; s2, correcting the spectral drift of the hyperspectral image by using a spectral baseline
correction method; s3, segmenting the corrected
spectral image, distinguishing a target region and a background region of the
semen cassiae sample, and extracting an effective spectral region of the semen cassiae sample in combination with a segmentation result; s4, separating the key spectral features related to the chemical components of the semen cassiae from the redundant features influenced by interference; s5, training an authenticity identification model based on an LGBM
algorithm; and S6, inputting the key spectral features of the
cassia seed sample to be detected into the authenticity identification model, and outputting an authenticity identification result. According to the invention, interference factors such as ambient light change, equipment deviation, surface impurities and the like are effectively eliminated, so that high-quality input data are provided for true and false identification.