Pests in agriculture lower crop yields and jeopardize the world’s food security. Thus, quick and precise pest identification is crucial for successful pest management. Convolutional Neural Networks (CNN) and other deep learning techniques have made it possible to automatically classify pests thanks to developments in digital image processing and artificial intelligence (AI). Using three optimization algorithms, Adam, RMSprop, and SGD, this study assesses three transfer learning architectures, ResNet50V2, Xception, and EfficientNetB0. This study’s primary contribution is a comparative analysis of CNN architectures and optimization techniques to determine the best configuration for classifying agricultural pests. The dataset, which includes 5494 pest photos from 12 classes, was acquired via Kaggle. A ratio of 80%, 10%, and 10% was used to separate the data into training, validation, and testing sets. The performance of feature extraction and classification was enhanced by applying transfer learning with fine-tuning. According to findings, Xception with Adam and RMSprop has the highest accuracy of 94%. Adam and EfficientNetB0 both achieved competitive results with the same precision. These results suggest that the performance of agricultural pest classification models is influenced by both optimizer and architecture choices.
Copyrights © 2026