Ye Rong, Shao Guoqi, Gao Quan, Zhang Hongrui, Li Tong
College of Food Science and Technology, Yunnan Agricultural University, Kunming 650201, China.
The Key Laboratory for Crop Production and Smart Agriculture of Yunnan Province, Yunnan Agricultural University, Kunming 650201, China.
Foods. 2024 Aug 17;13(16):2571. doi: 10.3390/foods13162571.
Strawberries are a commonly used agricultural product in the food industry. In the traditional production model, labor costs are high, and extensive picking techniques can result in food safety issues, like poor taste and fruit rot. In response to the existing challenges of low detection accuracy and slow detection speed in the assessment of strawberry fruit maturity in orchards, a CR-YOLOv9 multi-stage method for strawberry fruit maturity detection was introduced. The composite thinning network, CRNet, is utilized for target fusion, employing multi-branch blocks to enhance images by restoring high-frequency details. To address the issue of low computational efficiency in the multi-head self-attention (MHSA) model due to redundant attention heads, the design concept of CGA is introduced. This concept aligns input feature grouping with the number of attention heads, offering the distinct segmentation of complete features for each attention head, thereby reducing computational redundancy. A hybrid operator, ACmix, is proposed to enhance the efficiency of image classification and target detection. Additionally, the Inner-IoU concept, in conjunction with Shape-IoU, is introduced to replace the original loss function, thereby enhancing the accuracy of detecting small targets in complex scenes. The experimental results demonstrate that CR-YOLOv9 achieves a precision rate of 97.52%, a recall rate of 95.34%, and an mAP@50 of 97.95%. These values are notably higher than those of YOLOv9 by 4.2%, 5.07%, and 3.34%. Furthermore, the detection speed of CR-YOLOv9 is 84, making it suitable for the real-time detection of strawberry ripeness in orchards. The results demonstrate that the CR-YOLOv9 algorithm discussed in this study exhibits high detection accuracy and rapid detection speed. This enables more efficient and automated strawberry picking, meeting the public's requirements for food safety.
草莓是食品工业中常用的农产品。在传统生产模式下,劳动力成本高昂,粗放的采摘技术可能导致食品安全问题,如口感不佳和果实腐烂。针对果园草莓果实成熟度评估中存在的检测准确率低和检测速度慢的挑战,引入了一种用于草莓果实成熟度检测的CR-YOLOv9多阶段方法。复合稀疏网络CRNet用于目标融合,采用多分支块通过恢复高频细节来增强图像。为了解决多头自注意力(MHSA)模型中由于注意力头冗余导致的计算效率低的问题,引入了CGA的设计概念。该概念将输入特征分组与注意力头的数量对齐,为每个注意力头提供完整特征的独特分割,从而减少计算冗余。提出了一种混合算子ACmix来提高图像分类和目标检测的效率。此外,引入了Inner-IoU概念并结合Shape-IoU来取代原始损失函数,从而提高在复杂场景中检测小目标的准确率。实验结果表明,CR-YOLOv9的精确率为97.52%,召回率为95.34%,mAP@50为97.95%。这些值明显高于YOLOv9,分别高出4.2%、5.07%和3.34%。此外,CR-YOLOv9的检测速度为84,适用于果园草莓成熟度的实时检测。结果表明,本研究中讨论的CR-YOLOv9算法具有高检测准确率和快速检测速度。这使得草莓采摘更加高效和自动化,满足了公众对食品安全的要求。