An Explainable Hybrid Machine Learning Approach Based on MPSO-XGBoost for Pest Density Prediction in Almond Orchards
Accurate prediction of pest density and population levels in almond production is of great importance for crop yield, the prevention of quality losses, and the effectiveness of integrated pest management (IPM) strategies. Complex feature interactions in agricultural field data can affect both the predictive performance and interpretability of machine learning models. In this study, an explainable hybrid machine learning framework combining Mutated Particle Swarm Optimization (MPSO), XGBoost classification, and rule extraction was developed to classify pest insect density levels. The proposed approach was evaluated using two complementary validation settings. First, it was compared with 16 classification algorithms, including ensemble, deep learning, and rule-based methods, under stratified 5-fold cross-validation, achieving a mean accuracy of 79.63% and a mean Weighted F1-Score of 79.79%. In addition, nested stratified 5-fold cross-validation was employed to separate MPSO-based hyperparameter optimization from outer-fold performance evaluation. Under this more rigorous evaluation, the proposed approach achieved a mean accuracy of 79.27 ± 1.66% and a mean Weighted F1-Score of 79.29 ± 1.38%. Furthermore, interpretable IF–THEN decision rules were derived from the trained XGBoost decision structures to provide a transparent representation of the feature–threshold combinations associated with the classification decisions.
Authors
- İnanç Özgen (ORCID: https://orcid.org/0000-0003-1742-9324)
- Doygun Demirol (ORCID: https://orcid.org/0000-0002-3272-1078)
- Hande Yuksel (ORCID: https://orcid.org/0000-0001-9262-2349)
- Bilal Alataş (ORCID: https://orcid.org/0000-0002-3513-0329)
- Harun Bingöl (ORCID: https://orcid.org/0000-0001-5071-4616)
- Cebrail Barut (ORCID: https://orcid.org/0000-0003-2756-5434)
Institutions
- Fırat University (TR)
- Bingöl University (TR)
- Malatya Turgut Özal Üniversitesi (TR)
- Turgut Özal University (TR)
Publication Details
- Journal
- Insects
- Published
- 2026-09-25
- DOI
- https://doi.org/10.3390/insects17100996
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00