A Model for Detecting the Presence of Pesticide Residues in Edible Parts of Tomatoes, Cabbages, Carrots and Green Pepper Vegetables

Authors

  • Nabaasa Evarist Department of Computer Science, Mbarara University of Science and Technology, Uganda https://orcid.org/0000-0002-1722-767X
  • Natumanya Deborah Department of Computer Science, Mbarara University of Science and Technology, Uganda https://orcid.org/0000-0002-4491-0650
  • Grace Birungi Department of Chemistry, Mbarara University of Science and Technology, Uganda
  • Caroline Nakiguli Department of Chemistry, Mbarara University of Science and Technology, Uganda
  • Baguma John Department of Accounting and Finance, Mbarara University of Science and Technology, Uganda

DOI:

https://doi.org/10.47852/bonviewAIA42021388

Keywords:

pesticide residues, artificial intelligence and vegetables

Abstract

With increased resistant pests and low crop yields, farmers especially in sub-saharan Africa have greatly embraced usage of chemicals. These chemicals include pesticides used in gardens for better yields and also in the stalls for longer shelf life by sellers of farm products especially fresh perishables like tomatoes, cabbages, carrots, and green paper vegetables. This, if not checked, may expose humans and animals to pesticide residues. In this research, a model for detecting the presence of pesticide residues in edible parts of vegetables (tomatoes, cabbages, carrots and green pepper) was developed. A dataset consisting of 1094 images of both contaminated and uncontaminated vegetables including tomatoes, cabbages, carrots and green pepper with a scale magnification of 800x1276 pixels taken using InfiRay P2 pro Night Vision Go Mini Infrared Thermal camera with a thermal module were taken from different daily markets in Mbarara city, South Western Uganda. Image preprocessing was done by noise removal and gray scale conversion. Both the neural network and Median filter were applied on the images. A python script was used to cluster the dataset based on chemical concentrations rates of 0.1-0.8mg/kg, 0.9-1.3mg/kg and 1.4-1.7mg/kg, and this was done for both training and testing dataset. Feature extraction was done to detect the presence of mancozeb, dioxacarb and methidathion residues from the cleaned images. To test the developed model, convolutional neural networks (CNN) transfer learning models; Inception V3, VGG16, VGG19, ResNet50 and the scratch model were used. From the results obtained, Inception V3 achieved better performance compared to other transfer learning models with 96.77% followed by VGG16 at 86.98%, VGG19 at 87.56% and ResNet50 at 82.11%. Whereas the developed scratch model achieved 89.13% classification accuracy.

 

Received: 21 July 2023 | Revised: 15 November 2023 | Accepted: 10 January 2024

 

Conflicts of Interest

The authors declare that they have no conflicts of interest to this work.

Metrics

Metrics Loading ...

Downloads

Published

2024-01-22

How to Cite

Evarist, N., Deborah, N., Birungi, G., Caroline, N. K., & Kule, B. J. M. (2024). A Model for Detecting the Presence of Pesticide Residues in Edible Parts of Tomatoes, Cabbages, Carrots and Green Pepper Vegetables. Artificial Intelligence and Applications. https://doi.org/10.47852/bonviewAIA42021388

Issue

Section

Online First Articles