Integrating feature selection and explainable CNN for identification and classification of pests and beneficial insects

Reliable identification of agricultural pests and beneficial insects is crucial for sustainable crop protection and ecological balance, yet most vision-based models remain black boxes and require high-dimensional features. This paper proposes an explainable hybrid insect-classification framework that combines convolutional neural network (CNN) feature extraction with a dual-XAI feature selection strategy. SHapley Additive exPlanations (SHAP) and Permutation Feature Importance (PFI) are applied in parallel to rank handcrafted and CNN-derived features, and their intersection yields a compact, biologically meaningful subset for final classification. The selected features are evaluated using lightweight classifiers and a hybrid ensemble, enabling accurate inference under field variability. Experiments on a curated, balanced dataset of four classes (Colorado potato beetle, green peach aphid, seven-spot ladybird, and healthy leaves) collected under diverse lighting and background conditions achieve 96.7% overall accuracy, with precision, recall, and F1-scores all above 96%. Importantly, performance remains stable when reducing dimensionality, retaining ≥90% accuracy using only the top 11 hybrid-selected features. These results demonstrate that integrating SHAP and PFI improves both robustness and interpretability, supporting practical deployment for automated pest monitoring and precision agriculture.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-12-27
DOI
https://doi.org/10.1038/s41598-025-32520-x
Citations
1
Primary Topic
Smart Agriculture and AI
Type
article
Field-Weighted Citation Impact
1.75
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Integrating feature selection and explainable CNN for identification and classification of pests and beneficial insects

Ameen Salem Bin Obadi, Abdullah Al Mahfazur Rahman, Md. Tawfikur Rahman, Nibedita Deb et al.
1 citations
Scientific Reports
Smart Agriculture and AI
1.75
article

Integrating feature selection and explainable CNN for identification and classification of pests and beneficial insects

Ameen Salem Bin Obadi, Abdullah Al Mahfazur Rahman, Md. Tawfikur Rahman, Nibedita Deb, Samir Salem Al-Bawri, Noorlindawaty Md Jizat, Md. Moniruzzaman
article en
1 citations

Abstract

Reliable identification of agricultural pests and beneficial insects is crucial for sustainable crop protection and ecological balance, yet most vision-based models remain black boxes and require high-dimensional features. This paper proposes an explainable hybrid insect-classification framework that combines convolutional neural network (CNN) feature extraction with a dual-XAI feature selection strategy. SHapley Additive exPlanations (SHAP) and Permutation Feature Importance (PFI) are applied in parallel to rank handcrafted and CNN-derived features, and their intersection yields a compact, biologically meaningful subset for final classification. The selected features are evaluated using lightweight classifiers and a hybrid ensemble, enabling accurate inference under field variability. Experiments on a curated, balanced dataset of four classes (Colorado potato beetle, green peach aphid, seven-spot ladybird, and healthy leaves) collected under diverse lighting and background conditions achieve 96.7% overall accuracy, with precision, recall, and F1-scores all above 96%. Importantly, performance remains stable when reducing dimensionality, retaining ≥90% accuracy using only the top 11 hybrid-selected features. These results demonstrate that integrating SHAP and PFI improves both robustness and interpretability, supporting practical deployment for automated pest monitoring and precision agriculture.

Scientific ReportsVol. 16(1)
Multimedia University (MY), International Islamic College (MY), Hadhramout University (YE), International Islamic University Malaysia (MY), Southeast University (BD), International University of Business Agriculture and Technology (BD), Saudi Arabia Basic Industries (Saudi Arabia) (SA), National University of Malaysia (MY)
Zero hunger
Openalex Percentile: Top 10%
Smart Agriculture and AI
1.75
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.