Pest detection in dynamic environments: an adaptive continual test-time domain adaptation strategy
Pest management is essential for agricultural production and food security, as pests can cause significant crop losses and economic impact. Early pest detection is key to timely intervention. While object detection models perform well on various datasets, they assume i.i.d. data, which is often not the case in diverse real-world environments, leading to decreased accuracy. To solve the problem, we propose the CrossDomain-PestDetect (CDPD) method, which is based on the YOLOv9 model and incorporates a test-time adaptation (TTA) framework. CDPD includes Dynamic Data Augmentation (DynamicDA), a Dynamic Adaptive Gate (DAG), and a Multi-Task Dynamic Adaptation Model (MT-DAM). Our DynamicDA enhances images for each batch by combining strong and weak augmentations. The MT-DAM integrates an object detection model with an image segmentation model, exchanging information through feature fusion at the feature extraction layer. During testing, test-time adaptation updates both models, continuing feature fusion during forward propagation. DAG adaptively controls the degree of feature fusion to improve detection capabilities. Self-supervised learning enables the model to adapt during testing to changing environments. Experiments show that without test-time adaptation, our method achieved a 7.6% increase in mAP50 over the baseline in the original environment and a 16.1% increase in the target environment. Finally, with test-time adaptation, the mAP50 score in the unseen target environment reaches 73.8%, which is a significant improvement over the baseline.
Authors
- Mohammed Abdulhakim Al-Absi (ORCID: https://orcid.org/0000-0002-1901-351X)
- Rui Fu (ORCID: https://orcid.org/0000-0002-1263-3601)
- Mingqing Dong (ORCID: https://orcid.org/0000-0001-9720-535X)
- Ling Xiao (ORCID: https://orcid.org/0000-0002-5463-5576)
- Hao Sun
- Cheng Qian (ORCID: https://orcid.org/0000-0003-1500-9991)
- Xuewei Wang (ORCID: https://orcid.org/0000-0003-3155-4623)
- Kaijie Zhang (ORCID: https://orcid.org/0000-0001-5118-1962)
- Ye Li (ORCID: https://orcid.org/0000-0002-5609-7388)
- Shiyu Wang (ORCID: https://orcid.org/0009-0007-5888-4119)
Institutions
- Beijing Institute of Technology (CN)
- Sichuan University (CN)
- Sichuan International Studies University (CN)
- Kyungdong University (KR)
- Weifang University of Science and Technology (CN)
- Science and Technology Department of Sichuan Province (CN)
- Southwest Jiaotong University (CN)
- Weifang University (CN)
Publication Details
- Journal
- Plant Methods
- Published
- 2025-04-23
- DOI
- https://doi.org/10.1186/s13007-025-01371-y
- Citations
- 5
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 8.75
Funders
- Natural Science Foundation of Shandong Province
- Weifang University of Science and Technology
- Key Technology Research and Development Program of Shandong