RF-YOLOv7: A Model for the Detection of Poor-Quality Grapes in Natural Environments
This study addresses the challenges of detecting inferior fruits in table grapes in natural environments, focusing on subtle appearance differences, occlusions, and fruit overlaps. We propose an enhanced green grape fruit disease detection model named RF-YOLOv7. The model is trained on a dataset comprising images of small fruits, sunburn, excess grapes, fruit fractures, and poor-quality grape bunches. RF-YOLOv7 builds upon the YOLOv7 architecture by integrating four Contextual Transformer (CoT) modules to improve target-detection accuracy, employing the Wise-IoU (WIoU) loss function to enhance generalization and overall performance, and introducing the Bi-Former attention mechanism for dynamic query awareness sparsity. The experimental results demonstrate that RF-YOLOv7 achieves a detection accuracy of 83.5%, recall rate of 76.4%, mean average precision (mAP) of 80.1%, and detection speed of 58.8 ms. Compared to the original YOLOv7, RF-YOLOv7 exhibits a 3.5% increase in mAP, with only an 8.3 ms increase in detection time. This study lays a solid foundation for the development of automatic detection equipment for intelligent grape pruning.
Authors
- S. Zhang
- Zhijie Ma (ORCID: https://orcid.org/0000-0001-7063-2474)
- Changyong Li (ORCID: https://orcid.org/0000-0002-1004-917X)
Institutions
- Xi'an Jiaotong University (CN)
- Xinjiang University (CN)
Publication Details
- Journal
- Agriculture
- Published
- 2025-02-12
- DOI
- https://doi.org/10.3390/agriculture15040387
- Primary Topic
- Horticultural and Viticultural Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00