Green pepper fruits counting based on improved DeepSort and optimized Yolov5s

Pengcheng Du, Shang Chen, Xu Li, Wenwu Hu, Nan Lan, Xiangming Lei, Yang Xiang
{"title":"Green pepper fruits counting based on improved DeepSort and optimized Yolov5s","authors":"Pengcheng Du, Shang Chen, Xu Li, Wenwu Hu, Nan Lan, Xiangming Lei, Yang Xiang","doi":"10.3389/fpls.2024.1417682","DOIUrl":null,"url":null,"abstract":"Green pepper yield estimation is crucial for establishing harvest and storage strategies.This paper proposes an automatic counting method for green pepper fruits based on object detection and multi-object tracking algorithm. Green pepper fruits have colors similar to leaves and are often occluded by each other, posing challenges for detection. Based on the YOLOv5s, the CS_YOLOv5s model is specifically designed for green pepper fruit detection. In the CS_YOLOv5s model, a Slim-Nick combined with GSConv structure is utilized in the Neck to reduce model parameters while enhancing detection speed. Additionally, the CBAM attention mechanism is integrated into the Neck to enhance the feature perception of green peppers at various locations and enhance the feature extraction capabilities of the model.According to the test results, the CS_YOLOv5s model of mAP, Precision and Recall, and Detection time of a single image are 98.96%, 95%, 97.3%, and 6.3 ms respectively. Compared to the YOLOv5s model, the Detection time of a single image is reduced by 34.4%, while Recall and mAP values are improved. Additionally, for green pepper fruit tracking, this paper combines appearance matching algorithms and track optimization algorithms from SportsTrack to optimize the DeepSort algorithm. Considering three different scenarios of tracking, the MOTA and MOTP are stable, but the ID switch is reduced by 29.41%. Based on the CS_YOLOv5s model, the counting performance before and after DeepSort optimization is compared. For green pepper counting in videos, the optimized DeepSort algorithm achieves ACP (Average Counting Precision), MAE (Mean Absolute Error), and RMSE (Root Mean Squared Error) values of 95.33%, 3.33, and 3.74, respectively. Compared to the original algorithm, ACP increases by 7.2%, while MAE and RMSE decrease by 6.67 and 6.94, respectively. Additionally, Based on the optimized DeepSort, the fruit counting results using YOLOv5s model and CS_YOLOv5s model were compared, and the results show that using the better object detector CS_YOLOv5s has better counting accuracy and robustness.","PeriodicalId":505607,"journal":{"name":"Frontiers in Plant Science","volume":"93 9","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-07-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Frontiers in Plant Science","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.3389/fpls.2024.1417682","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Green pepper yield estimation is crucial for establishing harvest and storage strategies.This paper proposes an automatic counting method for green pepper fruits based on object detection and multi-object tracking algorithm. Green pepper fruits have colors similar to leaves and are often occluded by each other, posing challenges for detection. Based on the YOLOv5s, the CS_YOLOv5s model is specifically designed for green pepper fruit detection. In the CS_YOLOv5s model, a Slim-Nick combined with GSConv structure is utilized in the Neck to reduce model parameters while enhancing detection speed. Additionally, the CBAM attention mechanism is integrated into the Neck to enhance the feature perception of green peppers at various locations and enhance the feature extraction capabilities of the model.According to the test results, the CS_YOLOv5s model of mAP, Precision and Recall, and Detection time of a single image are 98.96%, 95%, 97.3%, and 6.3 ms respectively. Compared to the YOLOv5s model, the Detection time of a single image is reduced by 34.4%, while Recall and mAP values are improved. Additionally, for green pepper fruit tracking, this paper combines appearance matching algorithms and track optimization algorithms from SportsTrack to optimize the DeepSort algorithm. Considering three different scenarios of tracking, the MOTA and MOTP are stable, but the ID switch is reduced by 29.41%. Based on the CS_YOLOv5s model, the counting performance before and after DeepSort optimization is compared. For green pepper counting in videos, the optimized DeepSort algorithm achieves ACP (Average Counting Precision), MAE (Mean Absolute Error), and RMSE (Root Mean Squared Error) values of 95.33%, 3.33, and 3.74, respectively. Compared to the original algorithm, ACP increases by 7.2%, while MAE and RMSE decrease by 6.67 and 6.94, respectively. Additionally, Based on the optimized DeepSort, the fruit counting results using YOLOv5s model and CS_YOLOv5s model were compared, and the results show that using the better object detector CS_YOLOv5s has better counting accuracy and robustness.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
基于改进的 DeepSort 和优化的 Yolov5s 进行青椒果实计数
本文提出了一种基于目标检测和多目标跟踪算法的青椒果实自动计数方法。青椒果实的颜色与叶片相似,且经常相互遮挡,这给检测带来了挑战。CS_YOLOv5s 模型以 YOLOv5s 为基础,专为青椒果实检测而设计。在 CS_YOLOv5s 模型中,Neck 采用了 Slim-Nick 与 GSConv 相结合的结构,以减少模型参数,同时提高检测速度。根据测试结果,CS_YOLOv5s 模型的 mAP、精确度和召回率以及单张图像的检测时间分别为 98.96%、95%、97.3% 和 6.3 毫秒。与 YOLOv5s 模型相比,单幅图像的检测时间缩短了 34.4%,而召回率和 mAP 值则有所提高。此外,针对青椒果实跟踪,本文结合了 SportsTrack 的外观匹配算法和轨迹优化算法,对 DeepSort 算法进行了优化。考虑到三种不同的跟踪场景,MOTA 和 MOTP 保持稳定,但 ID 切换减少了 29.41%。基于 CS_YOLOv5s 模型,比较了 DeepSort 优化前后的计数性能。对于视频中的青椒计数,优化后的 DeepSort 算法的 ACP(平均计数精度)、MAE(平均绝对误差)和 RMSE(均方根误差)值分别为 95.33%、3.33 和 3.74。与原始算法相比,ACP 增加了 7.2%,而 MAE 和 RMSE 分别减少了 6.67 和 6.94。此外,基于优化后的 DeepSort,比较了使用 YOLOv5s 模型和 CS_YOLOv5s 模型的水果计数结果,结果表明使用更好的对象检测器 CS_YOLOv5s 有更好的计数精度和鲁棒性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
The 4T and 7T introgressions from Amblyopyrum muticum and the 5Au introgression from Triticum urartu increases grain zinc and iron concentrations in Malawian wheat backgrounds Submerged macrophyte self-recovery potential behind restoration treatments: sources of failure Fusarium Tropical Race 4 in Latin America and the Caribbean: status and global research advances towards disease management Adapting to climate change: responses of fine root traits and C exudation in five tree species with different light-use strategy Detection, distribution, and functions of RNA N6-methyladenosine (m6A) in plant development and environmental signal responses
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1