McGill University
Multiclass online counting for strawberry fruits based on tracking-by-detection
Abstract
dc:description.abstractIn the context of rapid global population growth, modern agriculture is confronted with the challenge of transitioning towards sustainability and digitization. Accurate prediction of yields is crucial for effective resource allocation and management throughout the agricultural modernization process. Precise fruit counting, in particular, offers a direct and reliable indicator for yield prediction in agricultural production. Thus, leveraging advanced computer vision and artificial intelligence (AI) technologies, this work focuses on the development of an end-to-end automated fruit counting system. This study developed an automated counting system capable of real-time detection, localization, tracking, and enumeration of multiclass objects within video data. Initially, an object detection network was trained, integrating YOLOv5s with an attention mechanism, to identify and pinpoint multiclass objects in each video frame. Subsequently, to associate detected objects with identical objects across frames, tracking algorithms, such as DeepSORT, ByteTrack, and StrongSORT, were employed to trace multiple objects from their first appearance to their final disappearance in real-time footage. Furthermore, acknowledging that tracking algorithms alone do not address the counting problem, a novel Multiple Mapping (MultiMap) strategy was devised for class-specific object enumeration. This versatile system is not only optimal for large-scale agricultural operations but also holds significant potential for application in diverse large-scale counting contexts.Strawberries, due to their rich content of vitamins, antioxidants, and fiber, along with their popularity and relatively high market price per unit weight, are globally considered an economically significant crop. However, from planting and harvesting to processing, strawberry cultivation is a labor-intensive process. Furthermore, due to issues such as foliage occlusion and high-density planting, significant advances in automation for strawberry cultivation have not been achieved in both research and commercial farming contexts. Therefore, our study, which addresses the unique characteristics of strawberries, provides a multiclass, real-time automated counting solution for yield prediction.To evaluate the effectiveness of the proposed method, a total of 40 videos were collected from two different strawberry farms. The experimental results indicate that the enhanced fruit detection network, which combines YOLOv5s with a Vision Transformer, achieved a mean Average Precision (mAP50) of 0.929. Furthermore, employing a combination of DeepSORT and the MultiMap strategy, our method demonstrated a relatively low counting error rate of 6.7%. In particular, with the integration of StrongSORT, the lowest error rates for the ripe and unripe strawberry classes were 8.7% and 9.9%, respectively. Based on our results, we anticipate that this AI-powered strawberry fruit counting system could be integrated into agricultural robots, unmanned aerial vehicles (UAVs), and other platforms, offering reliable metrics for inventory management and crop health monitoring in commercial applications
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Grantor dc:publisher
- McGill University
- Year dc:date.issued
- 2024
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Zhou, Xuehai
- Advisor dc:contributor.advisor
-
- Sun, Shangpeng (Supervisor)
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- OCLC
- 1535346652
- Identifier URI
- https://hdl.handle.net/20.500.14905/98890
- Dc Identifier Other
- hyrax:9306t486w