Explainable Artificial Intelligence-Based Classification of the Abundance of Kermania pistaciella Amsel in Pistachio Orchards
Open Access
Abstract
Accurate classification of pest abundance can contribute to the monitoring and interpretation of pest population dynamics. This study developed an explainable Particle Swarm Optimization (PSO)-optimized XGBoost model to classify male Kermania pistaciella Amsel trap abundance as low (L), medium (M), high (H), or very high (VH). The dataset comprised 404 observations and nine temporal, meteorological, and biological predictors, including temperature, relative humidity, sampling time, sex ratio, and parasitoid counts. Model hyperparameters were optimized using PSO, and classification performance was initially assessed using stratified five-fold cross-validation. The model achieved a mean Accuracy of 69.06% and a mean Weighted F1-Score of 65.89%. Class-specific performance was higher for the L and VH classes, with F1-Scores of 0.7662 and 0.7595, respectively, whereas the less-represented M and H classes were more difficult to distinguish, with F1-Scores of 0.2712 and 0.1304. To obtain a more conservative estimate of internal predictive performance, nested stratified five-fold cross-validation was additionally performed, yielding a mean Accuracy of 65.84% ± 2.56%, a mean Weighted F1-Score of 62.74% ± 2.67%, a mean Macro F1-Score of 44.55% ± 3.14%, and a mean Balanced Accuracy of 44.84% ± 2.75%. Explainable artificial intelligence was used to derive interpretable IF–THEN rules from the optimized model. Representative rules showed local accuracy values ranging from 0.583 to 1.000, with substantial variation in support and coverage across abundance classes. The extracted rules described combinations of seasonal timing, temperature, humidity, sex ratio, and parasitoid abundance associated with the four abundance classes. These model-derived patterns provide an interpretable representation of classification behavior within the present dataset but should not be interpreted as validated biological thresholds, causal triggers, or direct pest-management intervention criteria. The abundance classes represent relative male moth trap-abundance levels, and independent external and prospective field validation is required before the framework can be considered for operational pest-management applications.Keywords
Funding Information
- Scientific Research Projects Coordination Unit of Firat University (MF.26.64)
This publication has 20 references indexed in Scilit:
- Pest Forecaster: A Web‐Based Machine Learning Framework for Climate‐Sensitive Pest Risk PredictionJournal of Advances in Artificial Intelligence, 2026
- Integrating weather variables and AI models for forecasting major pests in jute: applications in climate-smart crop managementFrontiers in Agronomy, 2025
- Explainable AI in agriculture: review of applications, methodologies, and future directionsEngineering Research Express, 2025
- Population Development and Infestation Rate of Pistachio twig Borer [Kermania pistaciella Amsel (Lepidoptera: Tineidae)] in Pistachio Orchards in Middle Euphrates Valley, TürkiyeSelcuk Journal of Agriculture and Food Sciences, 2025
- Determination of Population Change and Damage Rate of Kermania pistaciella Amsel (Lepidoptera: Tineidae) in Pistachio Orchards in TürkiyeApplied Fruit Science, 2025
- ARIMAX—Artificial neural network hybrid model for predicting semilooper (Chrysodeixis acuta) incidence on soybeanInternational Journal of Tropical Insect Science, 2022
- Infestation rate and cardinal directional preference of pistachio twig borer [Kermania pistaciella Amsel. (Lepidoptera: Tineidae)]Journal of King Saud University – Science, 2022
- Population fluctuations of the pistachio twig borer, Kermania pistaciella Amsel, 1964 (Lep.: Oinophylidae) using delta pheromone trapActa agriculturae Slovenica, 2019
- XGBoost2016
- Particle swarm optimization2014