Pestoscope: AI-Based Pest Detection
DOI:
https://doi.org/10.47611/jsrhs.v14i1.8602Keywords:
Deep Learning, Pest Detection, Web Application, IoT, ResNet50Abstract
Before humans became hyper-specialized, most people primarily relied upon farming as a means of food acquisition. However, up to 40% of global crop production is lost to plant pests. With erratic weather linked to global warming, crop-destroying insects have begun thriving in these newfound conditions (Down To Earth 2021). Thus, addressing this challenge has become increasingly urgent to safeguard the livelihoods of millions of farmers and ensure food security for billions. This study aims to develop early pest detection tools that offer significant economic, environmental, and health benefits. We hypothesized that deep neural networks trained through transfer learning could be utilized to detect specific pest types, enabling timely treatment of infestations before they reach critical levels. To build the model, we collected data for six insect pests (bees, moths, slugs, snails, wasps, and weevils) from public datasets available in Kaggle (Marionette 2023) (Pestopia 2023). We applied transfer learning to three convolutional neural networks (CNNs): MobileNetV2 (Sandler et al. 2018), VGG16 (Simonyan and Zisserman 2014), and ResNet50 (He et al. 2016). During training, ResNet50 achieved the highest accuracy of 99.22%, with 20 epochs and a learning rate of 0.001. Subsequently, we added caterpillars to the dataset and retrained the model, resulting in a slightly lower accuracy of 99.00% with the same hyperparameters. The results from these experiments are promising, and with the integration of hardware, we can detect pests early and effectively. This solution offers farmers a proactive way to prevent crop destruction and enhance overall yields.
Downloads
References or Bibliography
Down To Earth. At Least 40% Global Crops Lost to Pests Every Year: FAO. Down To Earth. www.downtoearth.org.in/news/agriculture/at-least-40-global-crops-lost-to-pests-every-year-fao-77252.
Marionette. (2023) Agricultural Pests Image Dataset. Kaggle. www.kaggle.com/datasets/vencerlanz09/agricultural-pests-image-dataset.
Pestopia: Indian Pests and Pesticides Dataset. Kaggle, 19 Mar. 2023, www.kaggle.com/datasets/shruthisindhura/pestopia.
Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., & Chen, L. C. (2018). Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 4510-4520). https://doi.org/10.48550/arXiv.1801.04381.
Simonyan, K., & Zisserman, A. (2014). Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556. https://doi.org/10.48550/arXiv.1409.1556
He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 770-778). https://openaccess.thecvf.com/content_cvpr_2016/html/He_Deep_Residual_Learning_CVPR_2016_paper.html
Oerke, E. C. (2006). Crop losses to pests. The Journal of Agricultural Science, 144(1), 31-43. https://doi.org/10.1017/S0021859605005708.
Sharma, S., Kooner, R., & Arora, R. (2017). Insect pests and crop losses. Breeding insect resistant crops for sustainable agriculture, 45-66. https://doi.org/10.1007/978-981-10-6056-4_2.
Aizen, M. A., Morales, C. L., Vázquez, D. P., Garibaldi, L. A., Sáez, A., & Harder, L. D. (2014). When mutualism goes bad: density‐dependent impacts of introduced bees on plant reproduction. https://doi.org/10.1111/nph.12924.
Hart, N. (2012). Suppressing Moth Pests. IAEA, www.iaea.org/newscenter/news/suppressing-moth-pests.
Pokorny, K. (2021). Slugs and Snails, Destructors of Crops and Gardens, Could Be Controlled by Bread Dough. Phys.Org, phys.org/news/2021-08-slugs-snails-destructors-crops-gardens.html.
Macintyre, P., & Hellstrom, J. (2015). An evaluation of the costs of pest wasps in New Zealand. New Zealand. Department of Conservation and Ministry for Primary Industries, Wellington, NZ, 50. https://www.doc.govt.nz/globalassets/documents/conservation/threats-and-impacts/animal-pests/evaluation-pest-wasps-nz.pdf.
Mousavi, S., & Mirinezhad, S. (2022). Weevil damage optimization algorithm and its applications. Journal of Future Sustainability, 2(4), 133-144. https://doi.org/10.5267/j.jfs.2022.10.003.
Mignoni, M. E., Honorato, A., Kunst, R., Righi, R., & Massuquetti, A. (2022). Soybean images dataset for caterpillar and Diabrotica speciosa pest detection and classification. Data in Brief, 40, 107756. https://doi.org/10.1016/j.dib.2021.107756.
Lu, H., Lyu, B., Tang, J., Wu, Q., Wyckhuys, K. A., Le, K. H., ... & Zhang, Q. (2023). Ecology, invasion history and biodiversity-driven management of the coconut black-headed caterpillar Opisina arenosella in Asia. Frontiers in Plant Science, 14, 1116221. https://doi.org/10.3389/fpls.2023.1116221
Vincent, C., Weintraub, P., & Hallman, G. (2009). Physical control of insect pests. In Encyclopedia of insects (pp. 794-798). Academic Press. https://doi.org/10.1016/B978-0-12-374144-8.00209-5
Nazir, T., Khan, S., & Qiu, D. (2019). Biological control of insect pest. Pests Control and Acarology, 21. https://books.google.co.in/books?hl=en&lr=&id=9B3_DwAAQBAJ&oi=fnd&pg=PA21&dq=biological+and+chemical+pest+control+methods&ots=fq_tInOPHD&sig=yP-mk7_y3km7c3tgNC663ayHCGM&redir_esc=y#v=onepage&q=biological%20and%20chemical%20pest%20control%20methods&f=false
Pimentel, D., Acquay, H., Biltonen, M., Rice, P., Silva, M., Nelson, J., ... & D'amore, M. (1992). Environmental and economic costs of pesticide use. BioScience, 42(10), 750-760. https://doi.org/10.2307/1311994.
Blanket Application. PlantFacts. plantfacts.osu.edu/wiki/index.php/Blanket_application. Accessed 04 Aug. 2024.
Ali, M. A., Dhanaraj, R. K., & Kadry, S. (2024). AI-enabled IoT-based pest prevention and controlling system using sound analytics in large agricultural field. Computers and Electronics in Agriculture, 220, 108844. https://doi.org/10.1016/j.compag.2024.108844.
Cubero, S., Marco-Noales, E., Aleixos, N., Barbé, S., & Blasco, J. (2020). Robhortic: A field robot to detect pests and diseases in horticultural crops by proximal sensing. Agriculture, 10(7), 276. https://doi.org/10.3390/agriculture10070276.
Published
How to Cite
Issue
Section
Copyright (c) 2025 Gurman Goraya; Smriti Bhandari

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Copyright holder(s) granted JSR a perpetual, non-exclusive license to distriute & display this article.


