Graduate School of Agricultural Science, Hokkaido University, Sapporo, Japan.
PLoS One. 2021 Mar 19;16(3):e0248769. doi: 10.1371/journal.pone.0248769. eCollection 2021.
The visual perception of freshness is an important factor considered by consumers in the purchase of fruits and vegetables. However, panel testing when evaluating food products is time consuming and expensive. Herein, the ability of an image processing-based, nondestructive technique to classify spinach freshness was evaluated. Images of spinach leaves were taken using a smartphone camera after different storage periods. Twelve sensory panels ranked spinach freshness into one of four levels using these images. The rounded value of the average from all twelve panel evaluations was set as the true label. The spinach image was removed from the background, and then converted into a gray scale and CIE-Lab color space (Lab*) and Hue, Saturation and Value (HSV). The mean value, minimum value, and standard deviation of each component of color in spinach leaf were extracted as color features. Local features were extracted using the bag-of-words of key points from Oriented FAST (Features from Accelerated Segment Test) and Rotated BRIEF (Binary Robust Independent Elementary Features). The feature combinations selected from the spinach images were used to train machine learning models to recognize freshness levels. Correlation analysis between the extracted features and the sensory evaluation score showed a positive correlation (0.5 < r < 0.6) for four color features, and a negative correlation (‒0.6 < r < ‒0.5) for six clusters in the local features. The support vector machine classifier and artificial neural network algorithm successfully classified spinach samples with overall accuracy 70% in four-class, 77% in three-class and 84% in two-class, which was similar to that of the individual panel evaluations. Our findings indicate that a model using support vector machine classifiers and artificial neural networks has the potential to replace freshness evaluations currently performed by non-trained panels.
新鲜度的视觉感知是消费者在购买水果和蔬菜时考虑的一个重要因素。然而,在评估食品产品时,小组测试既耗时又昂贵。在此,评估了一种基于图像处理的无损技术对菠菜新鲜度进行分类的能力。在不同的贮藏期后,使用智能手机相机拍摄菠菜叶片的图像。十二位感官小组使用这些图像将菠菜新鲜度分为四个等级之一。所有十二位小组评估的平均值的四舍五入值被设定为真实标签。从背景中移除菠菜图像,然后将其转换为灰度和 CIE-Lab 颜色空间(Lab*)和色调、饱和度和值(HSV)。提取菠菜叶片中每种颜色成分的平均值、最小值和标准偏差作为颜色特征。使用 Oriented FAST(特征加速分段测试)和 Rotated BRIEF(二进制稳健独立基本特征)的关键点的词袋提取局部特征。从菠菜图像中选择的特征组合用于训练机器学习模型以识别新鲜度水平。提取特征与感官评估得分之间的相关性分析表明,四种颜色特征呈正相关(0.5 < r < 0.6),而六个局部特征簇呈负相关(-0.6 < r < -0.5)。支持向量机分类器和人工神经网络算法成功地对四类、三类和两类中的菠菜样本进行了分类,总体准确率为 70%、77%和 84%,与个别小组评估相似。我们的研究结果表明,使用支持向量机分类器和人工神经网络的模型具有替代当前由非训练小组进行的新鲜度评估的潜力。