Abstract
Proper detection of insecticides is also vital since it is the determinant of agricultural safety, efficiency, environmental protection and environmental compliance. In this paper, a modified ChemNet architecture is introduced, which is modified to the classification of insecticide in fruits. Compared to the traditional ChemNet, which leaves out chemical priors and residual learning, the proposed model has certain improvements: Squeeze-and-Excitation (SE) blocks for adaptive channel recalibration, residual blocks coupled with SE units to improve feature extraction, Self-Attention mechanism to learn long-range dependencies, and the swish activation function to support gradient flow and non-linear representation. Also, the network applies progressive dropout, early stopping, and class-weighted loss to address overfitting and unbalanced samples. The validation and training of the proposed model were trained using the Kaggle Banana Insecticide Dataset comprising a total of 6,103 images. The data is grouped into six distinct categories: monohigh (high level of banana treated with mono-type insecticide), monolow (low level of mono-type insecticide), novahigh (high level of nova-type insecticide), novalow (low level of nova-type insecticide), natural (banana samples that were never treated) and rotten (samples of banana that were biologically spoiled). This composition ensures that the dataset encompasses a wide range of levels of insecticide contamination and natural spoilage, enabling a strong foundation for training and evaluation. This will ensure the quality of the model in the classification of the data. The experimental findings show that the modified ChemNet achieves an overall classification accuracy of 81.02% and demonstrates good generalization across the chemically heterogeneous classes. These outcomes indicate the effectiveness of the proposed modifications to transform ChemNet for image-based insecticide detection in agricultural images and suggest its potential application as a tool for food safety monitoring that can be expanded.
References
Philippe, Verger, Agamy Neveen, Anshasi Marwa, and Al-Yousfi Ahmad Basel. "Occurrence of pesticide residues in fruits and vegetables for the Eastern Mediterranean Region and potential impact on public health." Food Control 119 (2021): 107457.
Kazimierczak, Renata, Dominika Średnicka-Tober, Jan Golba, Anna Nowacka, Agnieszka Hołodyńska-Kulas, Klaudia Kopczyńska, Rita Góralska-Walczak, and Bogusław Gnusowski. "Evaluation of pesticide residues occurrence in random samples of organic fruits and vegetables marketed in Poland." Foods 11, no. 13 (2022): 1963.
Granados-Povedano, Mireya, Irene Domínguez, Francisco Egea-González, Antonia Garrido Frenich, and Francisco Javier Arrebola. "Unified method for target and non-target monitoring of pesticide residues in fruits and fruit juices by gas chromatography-high resolution mass spectrometry." Foods 12, no. 4 (2023): 739.
El-Sheikh, El-Sayed A., Mahmoud M. Ramadan, Ahmed E. El-Sobki, Ali A. Shalaby, Mark R. McCoy, Ibrahim A. Hamed, Mohamed-Bassem Ashour, and Bruce D. Hammock. "Pesticide residues in vegetables and fruits from farmer markets and associated dietary risks." Molecules 27, no. 22 (2022): 8072.
Evarist, Nabaasa, Natumanya Deborah, Grace Birungi, Nakiguli Kiwanuka Caroline, and Baguma John Muhunga Kule. "A model for detecting the presence of pesticide residues in edible parts of tomatoes, cabbages, carrots, and green pepper vegetables." In Artificial Intelligence and Applications, vol. 2, no. 3, (2024): 196-203.
Hu, Yating, Benxue Ma, Huting Wang, Yuanjia Zhang, Yujie Li, and Guowei Yu. "Detecting different pesticide residues on Hami melon surface using hyperspectral imaging combined with 1D-CNN and information fusion." Frontiers in Plant Science 14 (2023): 1105601.
Borza, Gavrilă, Luana PĂCURAR, Florin Russu, Ioan Gaga, Sebastian CHIRIŢĂ, Teodora Florian, Ioan Oltean, Raluca Rezi, and Camelia Urdă. "Influence of insecticides for stored grain protection on the technological properties of winter wheat." AgroLife Scientific Journal 11, no. 2 (2022).
Kang, Zhilong, Yuchen Zhao, Lei Chen, Yanju Guo, Qingshuang Mu, and Shenyi Wang. "Advances in machine learning and hyperspectral imaging in the food supply chain." Food Engineering Reviews 14, no. 4 (2022): 596-616.
Li, Min, Linju Lu, and Xiaoying Zhang. "Qualitative determination of pesticide residues in purple cabbage based on near infrared spectroscopy." In Journal of Physics: Conference Series, vol. 1884, no. 1, p. 012015. IOP Publishing, 2021.
Gowen, Aoife A., Colm P. O'Donnell, Patrick J. Cullen, Gérard Downey, and Jesus M. Frias. "Hyperspectral imaging–an emerging process analytical tool for food quality and safety control." Trends in food science & technology 18, no. 12 (2007): 590-598.
Moeder, M., C. Bauer, P. Popp, M. Van Pinxteren, and T. Reemtsma. "Determination of pesticide residues in wine by membrane-assisted solvent extraction and high-performance liquid chromatography–tandem mass spectrometry." Analytical and bioanalytical chemistry 403, no. 6 (2012): 1731-1741.
Bouagga, A., H. Chaabane, Khaoula Toumi, A. Mougou Hamdane, B. Nasraoui, and Laure Joly. "Pesticide residues in Tunisian table grapes and associated risk for consumer’s health." Food Additives & Contaminants: Part B 12, no. 2 (2019): 135-144.
Narenderan, S. T., S. N. Meyyanathan, and B. J. F. R. I. Babu. "Review of pesticide residue analysis in fruits and vegetables. Pre-treatment, extraction and detection techniques." Food Research International 133 (2020): 109141.
Simonetti, Giulia, Federica Castellani, Patrizia Di Filippo, Carmela Riccardi, Donatella Pomata, Roberta Risoluti, Francesca Buiarelli, and Elisa Sonego. "Determination of Mancozeb, a pesticide used worldwide in agriculture: comparison among GC, LC, and CE." Current Analytical Chemistry 16, no. 8 (2020): 1041-1053.
Grimalt, Susana, and Pieter Dehouck. "Review of analytical methods for the determination of pesticide residues in grapes." Journal of Chromatography A 1433 (2016): 1-23.
Pérez-Navarro, José, Pedro Miguel Izquierdo-Cañas, Adela Mena-Morales, Jesús Martínez-Gascueña, Juan Luis Chacón-Vozmediano, Esteban García-Romero, Isidro Hermosín-Gutiérrez, and Sergio Gómez-Alonso. "Phenolic compounds profile of different berry parts from novel Vitis vinifera L. red grape genotypes and Tempranillo using HPLC-DAD-ESI-MS/MS: A varietal differentiation tool." Food chemistry 295 (2019): 350-360.
Zhang, Xinzhong, Yuechen Zhao, Xinyi Cui, Xinru Wang, Huishan Shen, Zongmao Chen, Chun Huang et al. "Application and enantiomeric residue determination of diniconazole in tea and grape and apple by supercritical fluid chromatography coupled with quadrupole-time-of-flight mass spectrometry." Journal of Chromatography a 1581 (2018): 144-155.
Baca-Bocanegra, Berta, José Miguel Hernández-Hierro, Julio Nogales-Bueno, and Francisco José Heredia. "Feasibility study on the use of a portable micro near infrared spectroscopy device for the “in vineyard” screening of extractable polyphenols in red grape skins." Talanta 192 (2019): 353-359.
Lemos, André Mendes, Nelson Machado, Marcos Egea-Cortines, and Ana Isabel Barros. "ATR-MIR spectroscopy as a tool to assist ‘Tempranillo’clonal selection process: Geographical origin and year of harvest discrimination and oenological parameters prediction." Food Chemistry 325 (2020): 126938.
Fernández-Novales, Juan, Javier Tardáguila, Salvador Gutiérrez, and María Paz Diago. "On-The-Go VIS+ SW− NIR spectroscopy as a reliable monitoring tool for grape composition within the vineyard." Molecules 24, no. 15 (2019): 2795.
dos Santos Costa, Daniel, Nelson Felipe Oliveros Mesa, Murilo Santos Freire, Rodrigo Pereira Ramos, and Barbara Janet Teruel Mederos. "Development of predictive models for quality and maturation stage attributes of wine grapes using vis-nir reflectance spectroscopy." Postharvest Biology and Technology 150 (2019): 166-178.
Sun, Jun, Sunli Cong, Hanping Mao, Xiaohong Wu, and Ning Yang. "Quantitative detection of mixed pesticide residue of lettuce leaves based on hyperspectral technique." Journal of Food Process Engineering 41, no. 2 (2018): e12654.
Jia, Yaguang, Jinrong He, Hongfei Fu, Xiatian Shao, and Zhaokui Li. "Apple surface pesticide residue detection method based on hyperspectral imaging." In International Conference on Intelligent Science and Big Data Engineering, Cham: Springer International Publishing, (2018): 539-556.
Hussain, Saqib, Tariq Masud, and Karam Ahad. "Determination of pesticides residues in selected varieties of mango." Pakistan Journal of Nutrition 1, no. 1 (2002): 41-42.
Sultana, Farhana, Abu Sufian, and Paramartha Dutta. "Advancements in image classification using convolutional neural network." In 2018 Fourth international conference on research in computational intelligence and communication networks (ICRCICN), IEEE, (2018): 122-129.
TAHIR ANWAR, IMTIAZ AHMAD, and SEEMA TAHIR. "Determination of pesticide residues in fruits of Nawabshah district, Sindh, Pakistan." Pak. J. Bot 43, no. 2 (2011): 1133-1139.
Omoyajowo, Koleayo, K. Njok, Sunday Amiolemen, John Ogidan, Olapeju Adenekan, Kayode Olaniyan, Julie Akande, and Ifeoluwa Idowu. "Assessment of pesticide residue levels in common fruits consumed in Lagos State, Nigeria." Journal of Research and Reviews in Science. https: Sciencejournal. lasucomputerscience. co m (2018): 56-62.
Srivastava, Ashutosh K., Satyajeet Rai, M. K. Srivastava, M. Lohani, M. K. R. Mudiam, and L. P. Srivastava. "Determination of 17 organophosphate pesticide residues in mango by modified QuEChERS extraction method using GC-NPD/GC-MS and hazard index estimation in Lucknow, India." PloS one 9, no. 5 (2014): e96493.
Mammoo, Jubaira, P. Malin Bruntha, and Avik Saha. "Detecting Pesticide Contamination in Fruits and Vegetables with Deep Learning Models." In 2025 6th International Conference on Mobile Computing and Sustainable Informatics (ICMCSI), IEEE, (2025): 1084-1090.
Jiang, Rongchang, Guoqiang Zhuang, Shijie Xie, Yang Wang, Guoqi Zhang, Dandan Qu, and Wanzhi Wen. "Hyperspectral Detection of Pesticide Residues in Black Vegetable Based on Multi-classifier Entropy Weight Method." IEEE Access (2025).
Mammoo, Jubaira, and P. Malin Bruntha. "Efficient Siamese Pyramid Attention Network with Fusion Autoencoder and Hypercube Gan for Detection of Pesticide Residue." Journal of Circuits, Systems and Computers 34, no. 11 (2025): 2550266.
Alghawas, Masooma, and Sawsan Hilal. "Comparison Analysis of Machine Learning Models for Identification of Pesticide Residue." In 2024 5th International Conference on Data Analytics for Business and Industry (ICDABI), IEEE, (2024): 128-131
