Han Bo, Zhang Jingjing, Almodfer Rolla, Wang Yingchao, Sun Wei, Bai Tao, Dong Luan, Hou Wenjing
College of Computer and Information Engineering, Xinjiang Agricultural University, Urumqi 830052, China.
Engineering Research Center of Intelligent Agriculture Ministry of Education, Urumqi 830052, China.
Foods. 2025 Jan 15;14(2):258. doi: 10.3390/foods14020258.
In the domain of food science, apple grading holds significant research value and application potential. Currently, apple grading predominantly relies on manual methods, which present challenges such as low production efficiency and high subjectivity. This study marks the first integration of advanced computer vision, image processing, and machine learning technologies to design an innovative automated apple grading system. The system aims to reduce human interference and enhance grading efficiency and accuracy. A lightweight detection algorithm, FDNet-p, was developed to capture stem features, and a strategy for auxiliary positioning was designed for image acquisition. An improved DPC-AWKNN segmentation algorithm is proposed for segmenting the apple body. Image processing techniques are employed to extract apple features, such as color, shape, and diameter, culminating in the development of an intelligent apple grading model using the GBDT algorithm. Experimental results demonstrate that, in stem detection tasks, the lightweight FDNet-p model exhibits superior performance compared to various detection models, achieving an mAP@0.5 of 96.6%, with a GFLOPs of 3.4 and a model size of just 2.5 MB. In apple grading experiments, the GBDT grading model achieved the best comprehensive performance among classification models, with weighted Jacard Score, Precision, Recall, and F1 Score values of 0.9506, 0.9196, 0.9683, and 0.9513, respectively. The proposed stem detection and apple body classification models provide innovative solutions for detection and classification tasks in automated fruit grading, offering a comprehensive and replicable research framework for standardizing image processing and feature extraction for apples and similar spherical fruit bodies.
在食品科学领域,苹果分级具有重要的研究价值和应用潜力。目前,苹果分级主要依靠人工方法,存在生产效率低和主观性强等问题。本研究首次将先进的计算机视觉、图像处理和机器学习技术相结合,设计了一种创新的苹果自动分级系统。该系统旨在减少人为干扰,提高分级效率和准确性。开发了一种轻量级检测算法FDNet-p来捕捉果梗特征,并设计了一种辅助定位策略用于图像采集。提出了一种改进的DPC-AWKNN分割算法用于分割苹果主体。采用图像处理技术提取苹果的颜色、形状和直径等特征,最终利用GBDT算法开发了智能苹果分级模型。实验结果表明,在果梗检测任务中,轻量级FDNet-p模型与各种检测模型相比表现优异,mAP@0.5达到96.6%,GFLOPs为3.4,模型大小仅为2.5MB。在苹果分级实验中,GBDT分级模型在分类模型中综合性能最佳,加权杰卡德分数、精确率、召回率和F1分数分别为0.9506、0.9196、0.9683和0.9513。所提出的果梗检测和苹果主体分类模型为水果自动分级中的检测和分类任务提供了创新解决方案,为苹果及类似球形果实的图像处理和特征提取标准化提供了全面且可复制的研究框架。