NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Study of Joint YOLOv5-DeepSort Detection and Tracking Algorithm for Rhynchophorus ferrugineus

Shuai Wu, Jianping Wang, W. Wei, X. B. Ji, Yang Bin, Danyang Chen, Huimin Lu, Li LiuInsects 2025

TL;DR

This paper introduces a novel joint YOLOv5-DeepSort algorithm for detecting and tracking the Red Palm Weevil (RPW), a destructive agricultural pest. By enhancing YOLOv5 for small object detection and incorporating a historical frame data module into DeepSort, the algorithm significantly improves tracking accuracy and reduces identity switches, paving the way for more efficient pest control.

What Problem Does This Paper Address?

The Red Palm Weevil (RPW) poses a significant threat to palm trees, often leading to their death. Traditional manual monitoring and control methods are labor-intensive and inefficient, especially for early detection. While AI-based pest detection has shown promise, accurately identifying and tracking small, mobile pests like the RPW in complex environments remains a challenge. Existing methods struggle with issues like small target detection, feature occlusion, and frequent identity (ID) switches during tracking, hindering effective real-time monitoring and counting for pest management.

Methods

The core of this work is a hybrid approach combining an improved object detection model with an advanced tracking algorithm.

  • Improved YOLOv5 Detector: The authors enhance the YOLOv5 object detection model to better handle the small size of RPWs. This involves:
  • Small Object Detection Layer: Adding a 4-fold down-sampling layer in the feature extraction network to improve the localization of small targets.
  • Attention Mechanisms: Integrating Squeeze-and-Excitation (SE) and Convolutional Block Attention Module (CBAM) to boost the model's ability to extract relevant features, especially when they are sparse or missing.
  • Optimized DeepSort Tracker: The standard DeepSort algorithm is modified to address ID switching issues and improve tracking robustness. The key innovation here is:
  • Historical Frame Data Module: A new module, Target_dict, is introduced to store and utilize historical trajectory information of detected RPWs. This module helps in verifying target identities and reducing false ID switches by considering past movements and positions.

The improved YOLOv5 model replaces the original detector in DeepSort, creating the joint YOLOv5-DeepSort algorithm.

Datasets

The study utilizes a custom-built dataset for RPW detection and tracking.

  • RPW Detection Dataset: Initially, 305 images of RPWs were collected. Through data augmentation (including flipping, noise addition, and brightness/contrast adjustments), this dataset was expanded to 2600 images. This dataset was split into training (70%), validation (20%), and testing (10%) sets.
  • RPW Tracking Dataset: A tracking classification dataset was derived from the detection dataset, comprising 4272 images. This was further divided into training and validation sets (85 categories). For evaluation, 21 target tracking test video sets were constructed in the MOT-16 format, using video data captured by smartphones under laboratory conditions.

Key Insights and Ideas

  • Small Target Detection is Crucial: The RPW's small size is a significant hurdle for standard object detectors. The addition of specific layers and attention mechanisms directly tackles this, showing that targeted architectural improvements can yield substantial gains.
  • Historical Context Prevents ID Swaps: Identity switches in multi-object tracking are a persistent problem, especially with similar-looking objects. The introduction of a historical frame data module in DeepSort is a clever way to leverage past information to maintain consistent identities, significantly reducing errors.
  • Synergy of Detection and Tracking: The paper demonstrates that a well-tuned detector (YOLOv5-Ours) integrated into a robust tracker (improved DeepSort) leads to superior overall performance compared to using either component in isolation or their original versions.

Key Results

The proposed joint YOLOv5-DeepSort algorithm achieved impressive results:

  • Detection Performance (Improved YOLOv5):
  • Tracking Performance (Joint YOLOv5-DeepSort):
    • Multiple Object Tracking Accuracy (MOTA): 94.3%
    • Multiple Object Tracking Precision (MOTP): 90.14%
    • Reduction in ID switches: 33.3%
    • Counting Accuracy: 94.1%

These metrics indicate that the algorithm is highly effective for real-time monitoring and counting of RPWs in field conditions.

Limitations and Future Work

The authors acknowledge several areas for future development:

  • Dataset Expansion: The current dataset, while custom-built, could be expanded to include more raw data from similar insects and cover a wider range of species. This would improve the model's ability to classify and detect RPWs accurately, especially given their high similarity to other insects.
  • Model Lightweighting: The fused joint model is relatively large, leading to increased computational complexity. Future work could focus on reducing the model's complexity and storage requirements to make it more suitable for deployment on resource-constrained devices.
  • Hardware System Experiments: Conducting experiments with hardware systems and using a control variable method could further optimize the system's practical performance.
  • Generalizability: While the model shows versatility, further research is needed to integrate information from other modalities to enhance insect classification and detection accuracy, particularly for species with subtle differences.

Summary updated

BibTeX
@inproceedings{wu2025study,
  author = {Shuai Wu and Jianping Wang and W. Wei and X. B. Ji and Yang Bin and Danyang Chen and Huimin Lu and Li Liu},
  title = {{On the Study of Joint YOLOv5-DeepSort Detection and Tracking Algorithm for Rhynchophorus ferrugineus}},
  booktitle = {Insects},
  year = {2025},
  doi = {10.3390/insects16020219},
}
Figure