A Lightweight Cherry Tomato Maturity Real-Time Detection Algorithm Based on Improved YOLOV5n

被引:19
作者
Wang, Congyue [1 ,2 ]
Wang, Chaofeng [1 ,2 ]
Wang, Lele [2 ]
Wang, Jing [1 ,2 ]
Liao, Jiapeng [1 ,2 ]
Li, Yuanhong [1 ,2 ]
Lan, Yubin [1 ,2 ,3 ,4 ]
机构
[1] South China Agr Univ, Coll Elect Engn, Coll Artificial Intelligence, Guangzhou 510642, Peoples R China
[2] South China Agr Univ, Natl Ctr Int Collaborat Res Precis Agr Aviat Pesti, Guangzhou 510642, Peoples R China
[3] South China Agr Univ, Guangdong Lab Lingnan Modern Agr, Guangzhou 510642, Peoples R China
[4] Texas A&M Univ, Dept Biol & Agr Engn, College Stn, TX 77843 USA
来源
AGRONOMY-BASEL | 2023年 / 13卷 / 08期
关键词
precision agriculture; YOLOv5; cherry tomato; maturity detection; CA; WIoU; COLOR;
D O I
10.3390/agronomy13082106
中图分类号
S3 [农学(农艺学)];
学科分类号
0901 ;
摘要
To enhance the efficiency of mechanical automatic picking of cherry tomatoes in a precision agriculture environment, this study proposes an improved target detection algorithm based on YOLOv5n. The improvement steps are as follows: First, the K-means++ clustering algorithm is utilized to update the scale and aspect ratio of the anchor box, adapting it to the shape characteristics of cherry tomatoes. Secondly, the coordinate attention (CA) mechanism is introduced to expand the receptive field range and reduce interference from branches, dead leaves, and other backgrounds in the recognition of cherry tomato maturity. Next, the traditional loss function is replaced by the bounding box regression loss with dynamic focusing mechanism (WIoU) loss function. The outlier degree and dynamic nonmonotonic focusing mechanism are introduced to address the boundary box regression balance problem between high-quality and low-quality data. This research employs a self-built cherry tomato dataset to train the target detection algorithms before and after the improvements. Comparative experiments are conducted with YOLO series algorithms. The experimental results indicate that the improved model has achieved a 1.4% increase in both precision and recall compared to the previous model. It achieves an average accuracy mAP of 95.2%, an average detection time of 5.3 ms, and a weight file size of only 4.4 MB. These results demonstrate that the model fulfills the requirements for real-time detection and lightweight applications. It is highly suitable for deployment in embedded systems and mobile devices. The improved model presented in this paper enables real-time target recognition and maturity detection for cherry tomatoes. It provides rapid and accurate target recognition guidance for achieving mechanical automatic picking of cherry tomatoes.
引用
收藏
页数:24
相关论文
共 48 条
[1]  
Arthur D, 2007, PROCEEDINGS OF THE EIGHTEENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P1027
[2]   Clustered tomato detection and picking point location using machine learning-aided image analysis for automatic robotic harvesting [J].
Bai, Yuhao ;
Mao, Shihan ;
Zhou, Jun ;
Zhang, Baohua .
PRECISION AGRICULTURE, 2023, 24 (02) :727-743
[3]  
Bochkovskiy A, 2020, Arxiv, DOI [arXiv:2004.10934, 10.48550/arXiv.2004.10934, DOI 10.48550/ARXIV.2004.10934]
[4]   Chlorophyll fluorescence as a tool to evaluate the ripening of 'Golden' papaya fruit [J].
Bron, IU ;
Ribeiro, RV ;
Azzolini, M ;
Jacomino, AP ;
Machado, EC .
POSTHARVEST BIOLOGY AND TECHNOLOGY, 2004, 33 (02) :163-173
[5]   Citrus fruits maturity detection in natural environments based on convolutional neural networks and visual saliency map [J].
Chen, Shumian ;
Xiong, Juntao ;
Jiao, Jingmian ;
Xie, Zhiming ;
Huo, Zhaowei ;
Hu, Wenxin .
PRECISION AGRICULTURE, 2022, 23 (05) :1515-1531
[6]   A survey on deep learning and its applications [J].
Dong, Shi ;
Wang, Ping ;
Abbas, Khushnood .
COMPUTER SCIENCE REVIEW, 2021, 40
[7]   A detection algorithm for cherry fruits based on the improved YOLO-v4 model [J].
Gai, Rongli ;
Chen, Na ;
Yuan, Hai .
NEURAL COMPUTING & APPLICATIONS, 2023, 35 (19) :13895-13906
[8]   Fast R-CNN [J].
Girshick, Ross .
2015 IEEE INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV), 2015, :1440-1448
[9]   Evaluation of tomato maturity by electronic nose [J].
Gomez, Antihus Hernandez ;
Hu, Guixian ;
Wang, Jun ;
Pereira, Annia Garcia .
COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2006, 54 (01) :44-52
[10]  
Hartigan J. A., 1979, Applied Statistics, V28, P100, DOI 10.2307/2346830