Maturity detection and counting of blueberries in real orchards using a novel STF-YOLO model integrated with ByteTrack algorithm
Na Wu, Jie Wu, Zhenzhen Wang, Yun Zhao, Xing Xu, Yali Wang, Petr Skobelev, Yanan Mi
Zhejiang University of Science and Technology · Zhejiang Hospital
Key points
From the paper's conclusion- Discussion: Overall, these results suggest that the STF-YOLO integrated with the ByteTrack framework can accurately detect and count blueberries in orchards.
Abstract
Introduction: Blueberries are highly prized for their nutritional value and economic importance. However, their small size, dense clustering, and brief ripening period make them difficult to harvest efficiently. Manual picking is costly and error-prone, so there is an urgent need for automated, high-precision solutions in real orchards. Methods: We proposed an integrated framework that combined the STF-YOLO model with the ByteTrack algorithm to detect blueberry maturity and perform counting. Together with ByteTrack, it provided consistent fruit counts in video streams. STF-YOLO replaced the YOLOv8 C2f block with a Detail Situational Awareness Attention (DSAA) module to enable more precise discrimination of maturity. It also incorporated an Adaptive Edge Fusion (AEF) neck to enhance edge cues under leaf occlusion and a Multi-scale Neck Structure (MNS) to aggregate richer context. Additionally, it adopted a Shared Differential Convolution Head (SDCH) to reduce parameters while preserving accuracy. Results: On our orchard dataset, the model achieved an mAP50 of 79.7%, representing a 3.5% improvement over YOLOv8. When combined with ByteTrack, it attained an average counting accuracy of 72.49% across blue, purple, and green maturity classes in video sequences. Cross-dataset tests further confirmed its robustness. On the MegaFruit benchmark (close-range images), STF-YOLO achieved the highest mAP50 for peaches (91.6%), strawberries (70.5%), and blueberries (90.6%). On the heterogeneous PASCAL VOC2007 dataset, it achieved 66.3% mAP50, outperforming all lightweight YOLO variants across 20 everyday object categories. Discussion: Overall, these results suggest that the STF-YOLO integrated with the ByteTrack framework can accurately detect and count blueberries in orchards. This lays a solid foundation for the future development of automated blueberry harvesting machinery and improvements in harvest efficiency.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- BPSOF-YOLO11n: YOLO11n-based method for blueberry maturity detection using boundary protection and small-object features.Frontiers in plant science · 2026
- BMDNet-YOLO: A Lightweight and Robust Model for High-Precision Real-Time Recognition of Blueberry MaturityHorticulturae · 2025
- Orchard Chestnut Visual Harvest Maturity Detection and Segmentation Using an Improved YOLO-Based MethodAgriculture · 2026
- Real-time mulberry fruit ripeness recognition for selective harvesting using edge-deployable object detection: a single-orchard case studyFrontiers in Plant Science · 2026
- Quantifying Bilberry Counts and Densities: A Comparative Assessment of Segmentation and Object Detection Models from Drone and Camera ImageryForests · 2026
- Deep learning for real-time strawberry detection, ripeness classification, and picking point localization: a review of architectures, field studies, and open challengesArtificial Intelligence Review · 2026