Rapid nondestructive detecting of sorghum varieties based on hyperspectral imaging and convolutional neural network.

Bu Y, Jiang X, Tian J, Hu X, Han L, Huang D, Luo H

Published: 19 November 2022 in Journal of the science of food and agriculture
Keywords: AlexNet model, hyperspectral imaging, sorghum, t-SNE visualization, variety detection
Pubmed ID: 36397181
DOI: 10.1002/jsfa.12344

BACKGROUND: The purity of sorghum varieties is an important indicator of the quality of raw materials used in the distillation of liquors. Different varieties of sorghum may be mixed during the acquisition process, which will affect the flavor and quality of liquor. To facilitate the rapid identification of sorghum varieties, this study proposes a sorghum variety identification model using hyperspectral imaging (HSI) technology combined with convolutional neural network (AlexNet).RESULTS: First, the watershed algorithm, which was modified with the extended-maxim transform, was used to segment the hyperspectral images of a single sorghum grain. The isolated forest algorithm was used to eliminate abnormal spectral data from the complete spectral data. Secondly, the AlexNet model of sorghum variety identification was established based on the two-dimensional gray image data of sorghum grain in group 1. The effects of different preprocessing methods and different convolution kernel sizes on the performance of the AlexNet model were discussed. The eigenvalues of the last layer of the AlexNet model were visualized using the t-distributed random neighborhood embedding method, which is used to evaluate the separability of features extracted by the AlexNet model. The performance differences between the optimal AlexNet model and traditional machine learning models for sorghum variety identification were compared. Finally, the varieties of sorghum grains in groups 2 and 3 were identified based on the optimal AlexNet model, and the average accuracy values of the test set reached 95.62% and 95.91% respectively.CONCLUSION: The results in this study demonstrated that HSI combined with the AlexNet model could provide a feasible technical approach for the detection of sorghum varieties. © 2022 Society of Chemical Industry.