Cargando…

Fruit Detection and Counting in Apple Orchards Based on Improved Yolov7 and Multi-Object Tracking Methods

With the increasing popularity of online fruit sales, accurately predicting fruit yields has become crucial for optimizing logistics and storage strategies. However, existing manual vision-based systems and sensor methods have proven inadequate for solving the complex problem of fruit yield counting...

Descripción completa

Detalles Bibliográficos
Autores principales: Hu, Jing, Fan, Chuang, Wang, Zhoupu, Ruan, Jinglin, Wu, Suyin
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10347148/
https://www.ncbi.nlm.nih.gov/pubmed/37447752
http://dx.doi.org/10.3390/s23135903
_version_ 1785073481218523136
author Hu, Jing
Fan, Chuang
Wang, Zhoupu
Ruan, Jinglin
Wu, Suyin
author_facet Hu, Jing
Fan, Chuang
Wang, Zhoupu
Ruan, Jinglin
Wu, Suyin
author_sort Hu, Jing
collection PubMed
description With the increasing popularity of online fruit sales, accurately predicting fruit yields has become crucial for optimizing logistics and storage strategies. However, existing manual vision-based systems and sensor methods have proven inadequate for solving the complex problem of fruit yield counting, as they struggle with issues such as crop overlap and variable lighting conditions. Recently CNN-based object detection models have emerged as a promising solution in the field of computer vision, but their effectiveness is limited in agricultural scenarios due to challenges such as occlusion and dissimilarity among the same fruits. To address this issue, we propose a novel variant model that combines the self-attentive mechanism of Vision Transform, a non-CNN network architecture, with Yolov7, a state-of-the-art object detection model. Our model utilizes two attention mechanisms, CBAM and CA, and is trained and tested on a dataset of apple images. In order to enable fruit counting across video frames in complex environments, we incorporate two multi-objective tracking methods based on Kalman filtering and motion trajectory prediction, namely SORT, and Cascade-SORT. Our results show that the Yolov7-CA model achieved a 91.3% mAP and 0.85 F1 score, representing a 4% improvement in mAP and 0.02 improvement in F1 score compared to using Yolov7 alone. Furthermore, three multi-object tracking methods demonstrated a significant improvement in MAE for inter-frame counting across all three test videos, with an 0.642 improvement over using yolov7 alone achieved using our multi-object tracking method. These findings suggest that our proposed model has the potential to improve fruit yield assessment methods and could have implications for decision-making in the fruit industry.
format Online
Article
Text
id pubmed-10347148
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-103471482023-07-15 Fruit Detection and Counting in Apple Orchards Based on Improved Yolov7 and Multi-Object Tracking Methods Hu, Jing Fan, Chuang Wang, Zhoupu Ruan, Jinglin Wu, Suyin Sensors (Basel) Article With the increasing popularity of online fruit sales, accurately predicting fruit yields has become crucial for optimizing logistics and storage strategies. However, existing manual vision-based systems and sensor methods have proven inadequate for solving the complex problem of fruit yield counting, as they struggle with issues such as crop overlap and variable lighting conditions. Recently CNN-based object detection models have emerged as a promising solution in the field of computer vision, but their effectiveness is limited in agricultural scenarios due to challenges such as occlusion and dissimilarity among the same fruits. To address this issue, we propose a novel variant model that combines the self-attentive mechanism of Vision Transform, a non-CNN network architecture, with Yolov7, a state-of-the-art object detection model. Our model utilizes two attention mechanisms, CBAM and CA, and is trained and tested on a dataset of apple images. In order to enable fruit counting across video frames in complex environments, we incorporate two multi-objective tracking methods based on Kalman filtering and motion trajectory prediction, namely SORT, and Cascade-SORT. Our results show that the Yolov7-CA model achieved a 91.3% mAP and 0.85 F1 score, representing a 4% improvement in mAP and 0.02 improvement in F1 score compared to using Yolov7 alone. Furthermore, three multi-object tracking methods demonstrated a significant improvement in MAE for inter-frame counting across all three test videos, with an 0.642 improvement over using yolov7 alone achieved using our multi-object tracking method. These findings suggest that our proposed model has the potential to improve fruit yield assessment methods and could have implications for decision-making in the fruit industry. MDPI 2023-06-25 /pmc/articles/PMC10347148/ /pubmed/37447752 http://dx.doi.org/10.3390/s23135903 Text en © 2023 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Hu, Jing
Fan, Chuang
Wang, Zhoupu
Ruan, Jinglin
Wu, Suyin
Fruit Detection and Counting in Apple Orchards Based on Improved Yolov7 and Multi-Object Tracking Methods
title Fruit Detection and Counting in Apple Orchards Based on Improved Yolov7 and Multi-Object Tracking Methods
title_full Fruit Detection and Counting in Apple Orchards Based on Improved Yolov7 and Multi-Object Tracking Methods
title_fullStr Fruit Detection and Counting in Apple Orchards Based on Improved Yolov7 and Multi-Object Tracking Methods
title_full_unstemmed Fruit Detection and Counting in Apple Orchards Based on Improved Yolov7 and Multi-Object Tracking Methods
title_short Fruit Detection and Counting in Apple Orchards Based on Improved Yolov7 and Multi-Object Tracking Methods
title_sort fruit detection and counting in apple orchards based on improved yolov7 and multi-object tracking methods
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10347148/
https://www.ncbi.nlm.nih.gov/pubmed/37447752
http://dx.doi.org/10.3390/s23135903
work_keys_str_mv AT hujing fruitdetectionandcountinginappleorchardsbasedonimprovedyolov7andmultiobjecttrackingmethods
AT fanchuang fruitdetectionandcountinginappleorchardsbasedonimprovedyolov7andmultiobjecttrackingmethods
AT wangzhoupu fruitdetectionandcountinginappleorchardsbasedonimprovedyolov7andmultiobjecttrackingmethods
AT ruanjinglin fruitdetectionandcountinginappleorchardsbasedonimprovedyolov7andmultiobjecttrackingmethods
AT wusuyin fruitdetectionandcountinginappleorchardsbasedonimprovedyolov7andmultiobjecttrackingmethods