Improving the performance of machine learning algorithms for detection of individual pests and beneficial insects using feature selection techniques

A - Papers appearing in refereed journals

Aminu, R., Cook, S. M., Ljungberg, D., Hensel, O. and Nasirahmadi, A. 2025. Improving the performance of machine learning algorithms for detection of individual pests and beneficial insects using feature selection techniques. Artificial Intelligence in Agriculture. https://doi.org/10.1016/j.aiia.2025.03.008

AuthorsAminu, R., Cook, S. M., Ljungberg, D., Hensel, O. and Nasirahmadi, A.
Abstract

To reduce damage caused by insect pests, farmers use insecticides to protect produce from crop pests. This practice leads to high synthetic chemical usage because a large portion of the applied insecticide does not reach its intended target; instead, it may affect non-target organisms and pollute the environment. One approach to mitigating this is through the selective application of insecticides to only those crop plants (or patches of plants) where the insect pests are located, avoiding non-targets and beneficials. The first step to achieve this is the identification of insects on plants and discrimination between pests and beneficial non-targets. However, detecting small-sized individual insect pests is challenging using image-based machine-learning techniques, especially in natural field settings. This paper proposes a method based on explainable artificial intelligence feature selection and machine learning to detect pests and beneficial insects in field crops. An insect-plant dataset reflecting real field conditions was created. It comprises two pest insects—the Colorado potato beetle (CPB, Leptinotarsa decemlineata) and green peach aphid (Myzus persicae)—and the beneficial seven-spot ladybird (Coccinella septempunctata). The specialist herbivore CPB was imaged only on potato plants (Solanum tuberosum) while green peach aphids and seven-spot ladybirds were imaged on three crops: potato, faba bean (Vicia faba), and sugar beet (Beta vulgaris subsp. vulgaris). This increased dataset diversity, broadening the potential application of the developed method for discriminating between pests and beneficial insects in several crops. The insects were imaged in both laboratory and outdoor settings. Using the GrabCut algorithm, regions of interest in the image were identified before shape, texture, and colour features were extracted from the segmented regions. The concept of explainable artificial intelligence was adopted by incorporating permutation feature importance ranking and Shapley Additive explanations values to identify the feature set that optimised a model's performance while reducing computational complexity. The proposed explainable artificial intelligence feature selection method was compared to conventional feature selection techniques, including mutual information, chi-square coefficient, maximal information coefficient, Fisher separation criterion and variance thresholding. Results showed improved accuracy (92.62 % Random forest, 90.16 % Support vector machine, 83.61 % K-nearest neighbours, and 81.97 % Naïve Bayes) and a reduction in the number of model parameters and memory usage (7.22 × 107 Random forest, 6.23 × 103 Support vector machine, 3.64 × 104 K-nearest neighbours and 1.88 × 102 Naïve Bayes) compared to using all features. Prediction and training times were also reduced by approximately half compared to conventional feature selection techniques. This demonstrates a simple machine learning algorithm combined with an ideal feature selection methodology can achieve robust performance comparable to other methods. With feature selection, model performance can be maximised and hardware requirements reduced, which are essential for real-world applications with resource constraints. This research offers a reliable approach towards automatic detection and discrimination of pest and beneficial insects which will facilitate the development of alternative pest control approaches and other targeted pest removal methods that are less harmful to the environment than the broad-scale application of synthetic insecticides.

KeywordsFeature screening; Explainable artificial intelligence; Targeted pest control; Sustainable agriculture
Year of Publication2025
JournalArtificial Intelligence in Agriculture
Digital Object Identifier (DOI)https://doi.org/10.1016/j.aiia.2025.03.008
Web address (URL)https://doi.org/10.1016/j.aiia.2025.03.008
Open accessPublished as ‘gold’ (paid) open access
FunderBiotechnology and Biological Sciences Research Council
Natural Environment Research Council
Funder project or codeAgZero+
Accepted author manuscript
Output statusPublished
Publication dates
Online04 Apr 2025
Publication process dates
Accepted28 Mar 2025
PublisherElsevier
ISSN2589-7217

Permalink - https://repository.rothamsted.ac.uk/item/9937w/improving-the-performance-of-machine-learning-algorithms-for-detection-of-individual-pests-and-beneficial-insects-using-feature-selection-techniques

8 total views
0 total downloads
8 views this month
0 downloads this month
Download files as zip