Comparative hyperparameter optimization of object detection models for precision monitoring of cucumber beetles and similar insects on yellow sticky cards

Abstract

Computer vision presents a great opportunity for improving pest monitoring in agriculture, particularly for yellow sticky traps, a critical component in IPM. However, despite the growing interest in applying object detection models for insect identification, insect datasets present unique challenges, and approaches for fine-tuning model parameters to achieve reliable performance remain limited. This study explores the influence of fine tuning three key hyperparameters (learning rate, optimizer type and batch size) on the performance of two popular object detection models (YOLO and RT-DETR), in detecting pests on yellow sticky traps, with a particular emphasis on identifying cucumber beetles. Results showed that higher learning rates reduced performance across precision, recall, and mAP50 for both models. In contrast, SGD improved outcomes, particularly for RT-DETR, while YOLO proved more robust to high learning rates. Our study also showed that both models achieved comparable accuracy levels, once optimal settings were determined for each model. These findings highlight the importance of hyperparameter tuning for reliable pest detection systems and support the development of scalable AI workflows for precision agriculture.

Description

This article was originally published in Scientific Reports. The version of record is available at: https://doi.org/10.1038/s41598-026-51483-1 © The Author(s) 2026. Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.

Citation

Mafuwe, K., Dulam, R.V.S., Kambhamettu, C. et al. Comparative hyperparameter optimization of object detection models for precision monitoring of cucumber beetles and similar insects on yellow sticky cards. Sci Rep (2026). https://doi.org/10.1038/s41598-026-51483-1

Endorsement

Review

Supplemented By

Referenced By

Creative Commons license

Except where otherwised noted, this item's license is described as Attribution 4.0 United States