Proceedings of International Conference on Applied Innovation in IT  ·  2026/06/12  ·  Vol. 14  ·  Issue 3  ·  pp. 125–133
Deep Learning for Pest Image Classification in Agriculture
Hind Mazin Yassen and Ban Nadeem Dhannoon
Accurate pest image diagnosis is a critical component of modern precision agriculture. It is important to protect agricultural production, sustainability, and economic progress. Although deep convolutional neural networks, such as ResNet-50, have been widely used for pest classification. However, their performance remains limited when applied to complex, imbalanced, and real-world pest datasets. In this paper, we present an optimized ResNet-50 pipeline for pest image classification on the IP102 dataset, leveraging advanced data preprocessing, targeted regularization strategies, and hyperparameter tuning to improve model robustness and generalization. Moreover, there is substantial bias toward majority classes, and class-imbalance adaptation approaches (e.g., weighted loss functions) have been applied to alleviate this issue. The proposed approach incorporates Mixup data augmentation, label smoothing, exponential moving average (EMA), and stochastic weight averaging (SWA) to enhance training stability and generalization under severe class imbalance. Experimental results demonstrate that the refined ResNet-50 model is a compact and effective CNN that outperforms several related works on the IP102 dataset, achieving 76% accuracy and a weighted F1-score of 0.75. The findings highlight the importance of systematic refinements in enhancing the effectiveness of conventional deep learning models in pest image diagnosis and agricultural tasks.
ResNet-50 Pest Detection IP102 Mixup SWA EMA Label Smoothing.
References
  1. B. Guo, J. Wang, M. Guo, M. Chen, Y. Chen, and Y. Miao, “Overview of Pest Detection and Recognition Algorithms,” Electronics, vol. 13, no. 15, p. 3008, Jul. 2024, [Online]. Available: https://doi.org/10.3390/electronics13153008.
  2. X. Wu, C. Zhan, Y.-K. Lai, M.-M. Cheng, and J. Yang, “IP102: A Large-Scale Benchmark Dataset for Insect Pest Recognition,” in 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA: IEEE, Jun. 2019, pp. 8779-8788, [Online]. Available: https://doi.org/10.1109/CVPR.2019.00899.
  3. W. Liu, G. Wu, F. Ren, and X. Kang, “DFF-ResNet: An insect pest recognition model based on residual networks,” Big Data Mining and Analytics, vol. 3, no. 4, pp. 300-310, Dec. 2020, [Online]. Available: https://doi.org/10.26599/BDMA.2020.9020021.
  4. F. Feng, H. Dong, Y. Zhang, Y. Zhang, and B. Li, “MS-ALN: Multiscale Attention Learning Network for Pest Recognition,” IEEE Access, vol. 10, pp. 40888-40898, 2022, [Online]. Available: https://doi.org/10.1109/ACCESS.2022.3167397.
  5. S. M. Hassan and A. K. Maji, “Pest Identification Based on Fusion of Self-Attention With ResNet,” IEEE Access, vol. 12, pp. 6036-6050, 2024, [Online]. Available: https://doi.org/10.1109/ACCESS.2024.3351003.
  6. Y. Chen, M. Chen, M. Guo, J. Wang, and N. Zheng, “Pest recognition based on multi-image feature localization and adaptive filtering fusion,” Frontiers in Plant Science, vol. 14, p. 1282212, Nov. 2023, [Online]. Available: https://doi.org/10.3389/fpls.2023.1282212.
  7. R. Vimala, S. Mehrotra, S. Kumar, P. Kamat, A. Bongale, and K. Kotecha, “GradCAM-PestDetNet: A deep learning-based hybrid model with explainable AI for pest detection and classification,” MethodsX, vol. 15, p. 103533, Dec. 2025, [Online]. Available: https://doi.org/10.1016/j.mex.2025.103533.
  8. H. Zhang, M. Cisse, Y. N. Dauphin, and D. Lopez-Paz, “mixup: Beyond empirical risk minimization,” in International Conference on Learning Representations (ICLR), 2018.
  9. I. Loshchilov and F. Hutter, “Decoupled weight decay regularization,” in International Conference on Learning Representations (ICLR), 2019.
  10. Loshchilov and F. Hutter, “SGDR: Stochastic gradient descent with warm restarts,” in International Conference on Learning Representations (ICLR), 2017.
  11. P. Izmailov, D. Podoprikhin, T. Garipov, D. Vetrov, and A. G. Wilson, “Averaging weights leads to wider optima and better generalization,” in Proceedings of the Conference on Uncertainty in Artificial Intelligence (UAI), 2018.
  12. A. Tarvainen and H. Valpola, “Mean teachers are better role models,” in Advances in Neural Information Processing Systems (NeurIPS), 2017.
  13. H. Yun et al., “CutMix: Regularization strategy to train strong classifiers with localizable features,” in IEEE International Conference on Computer Vision (ICCV), 2019.
  14. C. Si et al., “Better Robustness by More Coverage: Adversarial and Mixup Data Augmentation for Robust Finetuning,” in Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, Online: Association for Computational Linguistics, 2021, pp. 1569-1576, [Online]. Available: https://doi.org/10.18653/v1/2021.findings-acl.137.
  15. M. Vilar-Andreu, L. García, A. J. Garcia-Sanchez, R. Asorey-Cacheda, and J. Garcia-Haro, “Enhancing Precision Agriculture Pest Control: A Generalized Deep Learning Approach With YOLOv8-Based Insect Detection,” IEEE Access, vol. 12, pp. 84420-84434, 2024, [Online]. Available: https://doi.org/10.1109/ACCESS.2024.3413979.
  16. A. Khedher, A. Ramadhanty, and M. I. Fanani, “State-of-the-Art CNN Models for Plant Disease Classification Using Transfer Learning,” J. SUS (Jurnal Sains dan Teknologi), vol. 33, no. 6, pp. 1637-1650, Oct. 2025.
  17. H. Guo, J. Jin, and B. Liu, “Stochastic Weight Averaging Revisited,” Applied Sciences, vol. 13, no. 5, p. 2935, Feb. 2023, [Online]. Available: https://doi.org/10.3390/app13052935.
  18. B. Ramalingam et al., “Remote Insects Trap Monitoring System Using Deep Learning Framework and IoT,” Sensors, vol. 20, no. 18, p. 5280, Sep. 2020, [Online]. Available: https://doi.org/10.3390/s20185280.
  19. Z. Anwar and S. Masood, “Exploring Deep Ensemble Model for Insect and Pest Detection from Images,” Procedia Computer Science, vol. 218, pp. 2328-2337, 2023, [Online]. Available: https://doi.org/10.1016/j.procs.2023.01.208.


Proceedings of the International Conference on Applied Innovations in IT by Anhalt University of Applied Sciences is licensed under CC BY-SA 4.0
 ·  This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

ICAIIT 2026
International Conference on Applied Innovation in IT
Navigation
Publisher
ISSN2199-8876
Location Anhalt University of Applied Sciences
Phone +49 (0) 3496 67 5611
Address Building 01, Room 425
Bernburger Str. 55
D-06366 Köthen, Germany
Open Access License

All works are licensed under the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0), unless otherwise noted.

Published by ICAIIT in cooperation with Anhalt University of Applied Sciences.

© 2026 ICAIIT — International Conference on Applied Innovations in IT. Anhalt University of Applied Sciences, Köthen, Germany.
Visitors: site traffic counter