The efficacy of Semen Ziziphi Spinosae, a valued medicinal material, can be compromised by the presence of foreign materials, which may also worsen patient conditions and lead to complications. Traditional machine vision techniques often struggle to identify foreign entities that closely resemble Semen Ziziphi Spinosae in color and shape. This study investigates the application of hyperspectral imaging technology for the detection and differentiation of four types of foreign materials (moldy Semen Ziziphi Spinosae shell, wood, and stone) in processing industries. High-resolution hyperspectral imagery was subjected to image segmentation and background noise reduction to separate the contours of the samples within the images. The average spectral signatures of the regions of interest were extracted to construct models such as Convolutional Neural Networks (CNN), Support Vector Machines (SVMs), Mahalanobis distance, Deep Belief Networks, and Generative Adversarial Networks. These models were employed to extract spectral information indicative of foreign matter within the hyperspectral data to identify foreign materialss in Semen Ziziphi Spinosae. Subsequently, the classification outcomes were mapped onto the original hyperspectral images, enabling a visual representation of foreign matter within the seeds. The classification performance of alternative models was compared with that of the CNN model. The results demonstrate that a CNN trained with spectral information from hyperspectral data can accurately identify foreign materialss in Semen Ziziphi Spinosae. The model underwent 30 iterations, achieving an accuracy rate of 99% with a root mean square error (RMSE) of 0.62 for the validation detection, and an accuracy rate of 98% with an RMSE of 0.62 for the validation set.
Read full abstract