Wang Tianshu, He Jiawang, Yan Hui, Hu Kongfa, Yang Xichen, Zhang Xia, Duan Jinao
College of Artificial Intelligence and Information Technology, Nanjing University of Chinese Medicine, Nanjing 210023, China.
Jiangsu Province Engineering Research Center of TCM Intelligence Health Service, Nanjing University of Chinese Medicine, Nanjing 210023, China.
Foods. 2024 Nov 29;13(23):3870. doi: 10.3390/foods13233870.
Since ginger has characteristics of both food and medicine, it has a significant market demand worldwide. To effectively store ginger and achieve the drying and color enhancement effects required for better sales, it is often subjected to sulfur fumigation. Although sulfur fumigation methods can effectively prevent ginger from becoming moldy, they cause residual sulfur dioxide, harming human health. Traditional sulfur detection methods face disadvantages such as complex operation, high time consumption, and easy consumption. This paper presents a sulfur-fumigated ginger detection method based on natural image recognition. By directly using images from mobile phones, the proposed method achieves non-destructive testing and effectively reduces operational complexity. First, four mobile phones of different brands are used to collect images of sulfur- and non-sulfur-fumigated ginger samples. Then, the images are preprocessed to remove the blank background in the image and a deep neural network is designed to extract features from ginger images. Next, the recognition model is generated based on the features. Finally, meta-learning parameters are introduced to enable the model to learn and adapt to new tasks, thereby improving the adaptability of the model. Thus, the proposed method can adapt to different devices in its real application. The experimental results indicate that the recall rate, F1 score, and AUC-ROC of the four different mobile phones are more than 0.9, and the discrimination accuracy of these phones is above 0.95. Therefore, this method has good predictive ability and excellent practical value for identifying sulfur-fumigated ginger.
由于生姜兼具食品和药品的特性,其在全球范围内有着巨大的市场需求。为了有效储存生姜并实现更好销售所需的干燥和增色效果,生姜常被进行硫磺熏蒸处理。尽管硫磺熏蒸方法能有效防止生姜发霉,但会导致二氧化硫残留,危害人体健康。传统的硫磺检测方法存在操作复杂、耗时较长以及易损耗等缺点。本文提出了一种基于自然图像识别的硫磺熏蒸生姜检测方法。通过直接使用手机拍摄的图像,该方法实现了无损检测并有效降低了操作复杂度。首先,使用四部不同品牌的手机采集硫磺熏蒸和未熏蒸生姜样本的图像。然后,对图像进行预处理以去除图像中的空白背景,并设计一个深度神经网络从生姜图像中提取特征。接着,基于这些特征生成识别模型。最后,引入元学习参数以使模型能够学习并适应新任务,从而提高模型的适应性。因此,所提出的方法在实际应用中能够适应不同设备。实验结果表明,四部不同手机的召回率、F1分数和AUC-ROC均大于0.9,且这些手机的判别准确率均高于0.95。所以,该方法在识别硫磺熏蒸生姜方面具有良好的预测能力和出色的实用价值。