FlyYOLO-SORT: A Lightweight Detection and Multi-Object Tracking Framework for Tephritid Fruit Flies Towards Automated Phytosanitary Monitoring
Real-time monitoring of tephritid fruit flies is essential for effective agricultural pest control and stringent plant quarantine measures. Most existing computer vision approaches primarily focus on static images derived from sticky traps. The absence of temporal motion information makes it difficult for these methods to maintain robust tracking performance when targets undergo fast and drastic movements, morphological blurring, and mutual occlusion. To overcome these limitations, mining and utilizing temporal motion features is critical, with high-precision multi-object tracking (MOT) serving as the foundation. Using Bactrocera dorsalis and Bactrocera correcta as case studies, we construct a high-performance detection and MOT framework designed for video monitoring. First, we propose FlyYOLO, a lightweight detector based on YOLOv11n. By fusing deep and shallow features, the detector is encouraged to focus on subtle dorsal features of the fruit flies, thereby improving classification accuracy. Simultaneously, a bounding box scoring mechanism is introduced to further optimize localization precision. Second, using FlyYOLO as the base detector, we propose FlyYOLO-SORT, an algorithm based on the tracking-by-detection (TBD) paradigm. We design a Dual-Box Complementary Fusion (DBCF) strategy to effectively integrate the strengths of Axis-Aligned Bounding Boxes and Oriented Bounding Boxes to generate high-quality detection results. Additionally, an Angle-Aware Euclidean Metric (AEM) is proposed for data association, significantly enhancing tracking robustness in complex scenarios involving frequent occlusion and irregular flight. On our dataset, FlyYOLO-SORT achieves outstanding performance with 48.26% HOTA, 80.15% MOTA, 56.01% MOTP, and 81.96% IDF1. Compared to ByteTrack, it reduces ID switches by 52.3%. Experimental results demonstrate that the proposed method enables efficient and stable MOT of fruit flies, providing reliable technical support for applications such as population counting and behavioral analysis of insects exhibiting complex motion patterns.
Authors
- QIFEI LIU
- Xuankun Li (ORCID: https://orcid.org/0000-0002-0622-2064)
- Heming Du (ORCID: https://orcid.org/0000-0002-7391-0449)
- Zibo Zhang
- Tianyu Zheng
- Li Chen
- Yan Qing Wang (ORCID: https://orcid.org/0000-0001-5766-3313)
- Xin Yu
- Gang Liu (ORCID: https://orcid.org/0000-0002-1004-1653)
- Ding Yang
- Zitao Li (ORCID: https://orcid.org/0009-0009-7576-1297)
- Fan Jiang
- Daifeng Cheng
Institutions
- South China Agricultural University (CN)
- The University of Queensland (AU)
- Chinese Academy of Inspection and Quarantine (CN)
- Ministry of Agriculture and Rural Affairs (CN)
- China Agricultural University (CN)
- Fujian Agriculture and Forestry University (CN)
Publication Details
- Journal
- Smart Agricultural Technology
- Published
- 2026-05-01
- DOI
- https://doi.org/10.1016/j.atech.2026.102177
- Primary Topic
- Insect behavior and control techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- China Agricultural University
- Ministry of Science and Technology of the People's Republic of China