Deep Learning-Based Pest Insect Detection for Autonomous Agricultural Systems: Development and Field-Testing of a Custom Convolutional Neural Network Architecture

DOI: https://doi.org/10.52549/ijeei.v14i2.7672
Published: 30-06-2026 • Issue: Vol. 14 No. 2: June 2026 • Section: Regular paper

Abstract

Global food security is under increasing threat from pest organisms that target agricultural production. The broad-spectrum pesticides traditionally used to combat these pests cause permanent damage to ecosystems, pose risks to human health, and lead to a critical decline in biodiversity. Precision agriculture technologies, as part of the Agriculture 4.0 revolution, offer innovative solutions to these problems. This study focuses on developing a novel artificial intelligence model capable of detecting and classifying pest insects with high accuracy, to serve as the intelligence for autonomous spraying systems. Within the scope of this research, a comprehensive and diverse dataset of over 12,000 images was meticulously compiled, featuring a total of 11 insect species, including 8 economically significant pests and 3 beneficial species for the ecosystem. To enhance the robustness and diversity of the dataset, advanced Generative Adversarial Networks (GANs) such as StyleGAN2-ADA were used alongside traditional data augmentation techniques to generate synthetic images. On this rich dataset, VGG-16 and ResNet152 V2 models, representing the transfer learning approach, were developed and comparatively analyzed against a lightweight Convolutional Neural Network (CNN) architecture custom-designed for resource-constrained edge computing devices. While the ResNet152 V2 model achieved the highest accuracy (92.4%) in laboratory tests, the custom-designed CNN model proved to be the most practical and effective solution in real-world field tests conducted with a Raspberry Pi-based prototype, delivering 82.5% accuracy, a much smaller model size (31 MB), and superior processing speed (7.5 FPS). These results strongly demonstrate that application-specific, lightweight models can exhibit more robust and efficient performance in real-world scenarios compared to complex and large transfer learning architectures. The developed system has the potential to make significant contributions to agricultural sustainability and food security by optimizing pesticide use.

References

FAO, IFAD, UNICEF, WFP and WHO. “The State of Food Security and Nutrition in the World 2020. Transforming food systems for affordable healthy diets.†Rome, FAO, 2020.

Nicolopoulou-Stamati P, Maipas S, Kotampasi C, Stamatis P, Hens L. “Chemical Pesticides and Human Health: The Urgent Need for a New Concept in Agriculture.†Front Public Health. 2016 Jul 18;4:148. doi: 10.3389/fpubh.2016.00148. PMID: 27486573; PMCID: PMC4947579.

R. Akhter and S. A. Sofi, “Precision agriculture using IoT data analytics and machine learning,†Journal of King Saud University - Computer and Information Sciences, vol. 34, no. 8, Part B, pp. 5602–5618, 2022.

Chithambarathanu M, Jeyakumar MK. “Survey on crop pest detection using deep learning and machine learning approaches.†Multimed Tools Appl. 2023 Apr 11:1-34. doi: 10.1007/s11042-023-15221-3. Epub ahead of print. PMID: 37362671; PMCID: PMC10088765.

S. Wang et al., “Advances in Deep Learning Applications for Plant Disease and Pest Detection: A Review,†Remote Sensing, vol. 17, no. 4, 2025.

A. Junaidi et al., “Deep Learning and Edge Computing in Agriculture: A Comprehensive Review of Recent Trends and Innovations,†in IEEE Access, vol. 13, pp. 137464-137490, 2025, doi: 10.1109/ACCESS.2025.3595621.

Redmon, J., & Farhadi, A. “YOLOv3: An Incremental Improvement.†arXiv preprint arXiv:1804.02767, 2018.

Nyakuri, J.P., Nkundineza, C., Gatera, O. et al. “AI and IoT-powered edge device optimized for crop pest and disease detection.†Sci Rep 15, 22905 (2025). https://doi.org/10.1038/s41598-025-06452-5

Yu, P., Zong, B., Geng, X. et al. “DGS-Yolov7-Tiny: a lightweight pest and disease target detection model suitable for edge computing environments.†Sci Rep 15, 29818 (2025). https://doi.org/10.1038/s41598-025-13410-8

Huang, Y., Liu, Z., Zhao, H., Tang, C., Liu, B., Li, Z., Wan, F., Qian, W., & Qiao, X. (2025). “YOLO-YSTs: An Improved YOLOv10n-Based Method for Real-Time Field Pest Detection.†Agronomy, 15(3), 575. https://doi.org/10.3390/agronomy15030575

Karam C, Awad M, Abou Jawdah Y, Ezzeddine N and Fardoun A. (2022). “GAN-based semi-automated augmentation online tool for agricultural pest detection: A case study on whiteflies.†Front. Plant Sci. 13:813050. doi: 10.3389/fpls.2022.813050.

Karras, T., Aittala, M., Hellsten, J., Laine, S., Lehtinen, J., & Aila, T. “Training generative adversarial networks with limited data.†Advances in Neural Information Processing Systems, 33, 12104-12114, 2020.

Simonyan, K., & Zisserman, A. “Very Deep Convolutional Networks for Large-Scale Image Recognition.†ICLR 2015, 2015.

He, K., Zhang, X., Ren, S., & Sun, J. “Deep Residual Learning for Image Recognition.†2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 770-778, 2016.

How to Cite

[1]
S. Sürücü, B. Küçük, and M. Karimzade, “Deep Learning-Based Pest Insect Detection for Autonomous Agricultural Systems: Development and Field-Testing of a Custom Convolutional Neural Network Architecture”, IJEEI, vol. 14, no. 2, pp. 571–581, Jun. 2026, doi: 10.52549/ijeei.v14i2.7672.