EconPapers    
Economics at your fingertips  
 

RF-YOLOv7: A Model for the Detection of Poor-Quality Grapes in Natural Environments

Changyong Li (), Shunchun Zhang and Zhijie Ma
Additional contact information
Changyong Li: College of Mechanical Engineering, Xinjiang University, Urumqi 830047, China
Shunchun Zhang: College of Mechanical Engineering, Xinjiang University, Urumqi 830047, China
Zhijie Ma: College of Mechanical Engineering, Xinjiang University, Urumqi 830047, China

Agriculture, 2025, vol. 15, issue 4, 1-16

Abstract: 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.

Keywords: image processing; YOLOv7; deep learning; attention mechanism; disease detection (search for similar items in EconPapers)
JEL-codes: Q1 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 (search for similar items in EconPapers)
Date: 2025
References: View references in EconPapers View complete reference list from CitEc
Citations:

Downloads: (external link)
https://www.mdpi.com/2077-0472/15/4/387/pdf (application/pdf)
https://www.mdpi.com/2077-0472/15/4/387/ (text/html)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:gam:jagris:v:15:y:2025:i:4:p:387-:d:1589706

Access Statistics for this article

Agriculture is currently edited by Ms. Leda Xuan

More articles in Agriculture from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().

 
Page updated 2025-03-22
Handle: RePEc:gam:jagris:v:15:y:2025:i:4:p:387-:d:1589706