论文信息
论文解读
AI 辅助整理- 方法
- 用CSTGCN时空图卷积、ROA超参优化、ETSKF预处理与Grad-CAM,在
- 发现
- 10类害虫检测准确率97%,优于VGG16、EfficientNetB0及多种任务专用模型。
- 机会点
- 可探索轻量化模型在边缘设备部署,并融合多模态田间数据提升跨域泛化能力。
论文摘要
摘要 由于害虫侵扰导致的全球作物产量损失估计每年约为20–40%,这是对农业生产力、农民生计和粮食安全的最大威胁之一。当前的人工田间巡查劳动强度大、主观性强且难以规模化,而许多自动化巡查方法在面对不同田间条件时表现不佳,且对决策制定提供的洞见有限。为应对这些挑战,本研究提出了智慧农业中的作物保护——基于持续时空图卷积网络的实时害虫检测(CPSA-RIPD-CSTGCN),这是一个统一且可解释的深度学习框架,融合了四个协同组件:(i)集成变换施密特-卡尔曼滤波器(ETSKF),用于图像预处理,包括调整尺寸、归一化和噪声抑制;(ii)使用旋转、翻转、缩放、剪切和对比度调整进行数据增强,以增强泛化能力并减少过拟合;(iii)持续时空图卷积网络(CSTGCN),联合建模作物区域间的空间依赖性和害虫动态的时间演化,以实现鲁棒的特征提取和分类;(iv)革命优化算法(ROA),用于CSTGCN权重的超参数优化,以自适应调整网络。此外,引入梯度加权类激活映射(Grad-CAM)可视化以提供事后可解释性,因为它显示了与生物过程相关的区域以及受害虫影响的区域。该框架在IP102基准数据集上进行了测试,采用60%-40%的训练-测试划分,涵盖10个具有经济重要性的害虫类别,在5折交叉验证中达到了97%的准确率、98%的精确率、98%的召回率和98%的F1分数,准确率均值±0.32%。在其他基线模型中,这些结果持续优于VGG16(82%)、InceptionV3(85%)、MobileNetV2(87%)、DenseNet121(88%)、EfficientNetB0(89%)以及特定任务模型,如EDCP-DIA-RNN(基于图像分析的早期病害和作物害虫诊断/检测RNN)(94%)、EPCY-TPA-ANN(通过参数分析人工神经网络高效预测作物产量)(91%)和ICPM-ESA-CNN(交互式作物和害虫管理增强土壤分析CNN)(90%)。消融研究的结果显示了集成变换施密特-卡尔曼滤波器预处理和革命优化算法各模块的单独效果。
全文
Discover Artificial IntelligenceDiscover Artificial IntelligenceBriskilal et al. Discover Artificial Intelligence (2026) 6:1435
https://doi.org/10.1007/s44163-026-02109-y
RESEARCH Open Access
Explainable deep learning framework for real-
time insect pest detection in smart agriculture
J. Briskilal1, M. K. Vidhyalakshmi1, Aswathy K. Cherian1, S. Neduncheliyan2, Ajay Kumar3* and Rakesh Kumar3*
*Correspondence:
Ajay Kumar
ajay.kumar1@jaipur.manipal.edu;
ajay.kumar30886@gmail.com
Rakesh Kumar
rakesh.kumar@jaipur.manipal.edu
1Department of Computing
Technologies, SRM Institute
of Science and Technology,
Kattankulathur, Chengalpattu Dt,
Tamilnadu, India
2Department of CSE (AI & ML),
Rajalakshmi Institute of Technology,
Kuthambakkam, Chennai, India
3Department of Mechanical
Engineering, School of Engineering,
Faculty of Science, Technology &
Architecture, Manipal University
Jaipur, Jaipur, Rajasthan
303007, India
© The Author(s) 2026. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use,
sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the
source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article
are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the
article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to
obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
Abstract
Global losses of crop production due to insect pest infestations are estimated to be
around 20–40% annually, which represents one of the highest threats to agricultural
productivity, farmer livelihoods and food security. Current manual scouting is labor
intensive, subjective and non-scalable, and many automated scouting methods suffer
when they come to deal with different field conditions and offer little insight into
decision making. To tackle these challenges, this study proposes Crop Protection in
Smart Agriculture—Real-time Insect Pest Detection using Continual Spatio-Temporal
Graph Convolutional Network (CPSA-RIPD-CSTGCN), a unified and interpretable
deep learning framework that combines the four synergistic components: (i)
the Ensemble Transform Schmidt–Kalman Filter (ETSKF) for image preprocessing,
including resizing, normalization, and noise suppression; (ii) data augmentation
using rotation, flipping, scaling, shearing, and contrast adjustment, which enhances
generalization and reduces overfitting; (iii) the Continual Spatio-Temporal Graph
Convolutional Network (CSTGCN) that jointly models the spatial dependency across
crop regions and temporal evolution of pest dynamics to achieve robust feature
extraction and classification; and (iv) the Revolution Optimization Algorithm (ROA) for
hyperparameter optimization of CSTGCN weights to adaptively adjust the network.
Further, Gradient-weighted Class Activation Mapping (Grad-CAM) visualization is
introduced to give post-hoc explainability as it shows regions that are relevant to the
biological process and areas that are affected by pests. This framework was tested
on IP102 benchmark dataset with 60%-40%-split train-test with 10 economically
important classes of pests with 97% accuracy, 98% precision, 98% recall and 98% F1
score, mean ± 0.32% accuracy, across 5-fold cross validation. Among other baseline
models, these results consistently outperform VGG16 (82%), InceptionV3 (85%),
MobileNetV2 (87%), DenseNet121 (88%), EfficientNetB0 (89%) and task-specific
models like EDCP-DIA-RNN(Early Disease and Crop Pest—Diagnosis/Detection using
Image Analysis RNN) (94%), EPCY-TPA-ANN (Efficient Prediction of Crop Yield—
Through Parameter Analysis ANN) (91%) and ICPM-ESA-CNN (Interactive Crop and
Pest Management Enhanced Soil Analysis CNN) (90%). The results of ablation studies
showed the solitary effects of each module of the Ensemble Transform Schmidt–
Kalman Filter pre-processing and Revolution Optimization Algorithm optimization,
and the confusion matrix analysis demonstrated high per-class reliability and only
a small amount of misclassification, implying that the proposed method could be
applied to real-time, large-scale smart agriculture deployments.
Page 2 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
1 Introduction
Agriculture is the foundation of global civilization for food production for billions
thus securing rural economies and supporting the ecological systems on which all life
depends [1]. As the world’s population grows the agricultural systems need to produce
large quantities year after year, and there is a need for efficient practices along with resil-
ient and sustainable methods [ 2]. The management of crops is the basis for global food
security, rural livelihood and environmental stewardship and therefore, it needs to be
started in good agricultural practice (GAP) [3, 4]. Farmers who have access to timely and
accurate crop health information can use these to optimize inputs, maximize yield, and
maintain ecological integrity of their land [5, 6]. Eventually, sustainable agriculture is the
foundation upon which long-term food system stability, economic equity, and biodiver -
sity conservation rest [7–9].
Worldwide crop production faces an increasing and serious threat due to infesta -
tion by pests. Insects, mites, fungi, and other agricultural pests are estimated to cause
between 20–40% of the world's total crop loss each year leading to great repercus -
sions on food supply, incomes of farmers as well as the economy of nations across the
world [10]. In addition, conventional methods of detecting pest infestations have their
own limitations which only compound the seriousness of this problem. Most conven -
tional methods rely upon laborious field inspection by humans, creating a demand for
additional labor, increasing the time it takes to inspect the fields for pest problems, as
well as introducing the potential for both human error and variability in the way that
observers identify and report an organism [ 11]. These methods are not scalable to the
large agricultural land areas that modern farming demands. Large field areas often go
unmonitored for long periods, and by the time pest presence is confirmed, populations
have multiplied exponentially, pushing crop damage well beyond economically recover -
able thresholds [12]. But the reactive approach to traditional detection has left the farm -
ers in a vicious circle of response and unequal losses. Farmers often applied pesticides
on schedules, thereby increasing production costs, promoting the evolution of resistant
pest strains, and reducing soil and water quality and destroying organisms in the bio -
sphere that do not pose a threat or are beneficial [ 13]. Indiscriminate usage of pesticides
adversely affects the profitability of the farmers as well as the health of the environment,
therefore for the purpose of sustainable agriculture, it is not possible to forego any of
the two pillars [14, 15]. Farmers in resource-constrained agronomy communities face an
operational disadvantage due to limited access to agronomic expertise, and a structural
disadvantage in food security and economic stability should they not be able to iden -
tify or classify pests in time. In recent years, automated pest detection and monitoring
using computer vision and deep learning have emerged as a transformative solution to
address these entrenched challenges. CNNs and similar architectures have shown prom-
ising performance in the detection of pests based on crop images that are comparable
or even superior to the accuracy of trained agronomists [ 16]. These systems can identify
the presence of pests at the earliest detectable stage by analyzing complex visual patterns
in real-time, which allows for targeted and timely interventions, reducing damage to
Keywords Crop protection, Insect pest detection, Smart agriculture, Deep learning,
Image classification, Graph convolutional network, Pest monitoring
Page 3 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
crops and unnecessary chemical application [17]. Advanced data preprocessing, transfer
learning and better approaches to model generalization are used to detect multiple pest
types across a variety of environmental conditions with detection efficiencies not cur -
rently possible with current detection tools [ 18]. All these effective detection methods
can be used in an effective, economically viable and environmentally friendly manner by
establishing comprehensive Integrated Pest Management (IPM) systems that combine
biological control, cultural control and targeted pesticide use to protect the crop [19].
2 Literature review
A few of the studies cited in the literature have focused on the protection of crops from
pests in the context of smart agriculture, and are briefly presented here. Handmade fea -
ture engineering has been shown to achieve good baseline performance in pest classifi -
cation tasks. Another study [ 20] showed that a fusion of texture (e.g., LBP), color (RGB/
HSV) and shape descriptors yielded very discriminative feature representations, and an
SVM classifier achieved an accuracy, precision, recall, and F1-score of approximately
99% on a 3,000 image, 10 class pest dataset. In the coconut pest damage analysis [ 21] the
near perfect test accuracy was achieved by using GLCM and GLRLM texture features
with the ANN models, while the SVM model achieved comparably high test accuracy by
fusing texture features with color features. Haralick and LBP were evaluated in tomato
leaf-based studies [22] using classifiers like SVM, Random Forest, KNN, and neural net -
works in addition to dimensionality reduction and segmentation using PCA. These stud-
ies emphasize the value of traditional pipelines and their ongoing contribution as good
baseline methods in pest detection research.
V.K. Patel et al. [23] introduced a system for early detection of crop diseases and pests
based on machine learning. Data augmentation followed by Adaptive Bilateral Filtering,
Lanczos interpolation and normalization were used to preprocess the data for creat -
ing diversity in the dataset. The image segmentation was effective provided by Kapur’s
Entropy-based Whale Optimization. The texture features were extracted by using GLCM
and the classification was done by using RNN with the help of Moth-Flame Optimized
method. It is however computationally heavy, requires a lot of handcrafted features, has a
high variance of diseases that can be hidden and requires tuning parameters for optimi -
zation and performance of RNNs. R. K. Ray et al. [ 24] presented an interactive AI-based
crop and pest management with mobile application to support sustainable agriculture.
The pest management system consists of two modules: crop recommendation as well as
pest detection. The crop recommendation module uses a CNN with transfer learning to
analyze soil nutrients, pH and climatic factors. The pest detection module employs the
IP102 dataset to identify pest species from high-resolution crop images and recommend
targeted pesticide interventions. However, it relies on high-quality inputs, requires sub -
stantial computational resources, faces scalability challenges in low-connectivity regions
and needs frequent updates to adapt to changing pest and climate conditions.
O. S. Nagesh et al . [25] created a machine learning based automated agricultural yield
projection model and used the method of feature selection with the Grey Level Co-
occurrence Matrix technique. AdaBoost Decision Tree, ANN and KNN techniques were
used to classify them. It used a dataset of 33 variables (yield, use of pesticides, rainfall,
and temperature) on crops including soybeans, maize, rice and wheat. The collection of
this data was done together with the Food and Agriculture Organization (FAO) and the
Page 4 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
World Data Bank. But the model is dependent on the quality of data and its accessibil -
ity, which is problematic, it is not that adaptable, and it faces challenges with incomplete
datasets across different regions.
W. Rahman et al. [26] suggested an automated system of paddy farming based on IoT
and blockchain with Deep Learning (DL) algorithms. The DL system aims at detecting
the pests in time, whereas IoT and blockchain guarantee safe and fully automated pro -
cesses in the circle of agriculture. The paddy insects are fed with a secondary dataset,
which is processed in order to do preprocessing, feature extraction, and pest identifica -
tion. Blockchain ensures the safety of data transfer among the crypt of IoT devices and
the cloud server. Nevertheless, there are certain problems in that it is not economical
and requires a consistent internet connection and integration issues in different fields
of agriculture. M. V. Andreu et al . [27] presented a YOLOv8 insect monitoring system
of agricultural pest detection based on Convolutional Neural Networks (CNNs). This
generalist method as opposed to the traditional pest detection methods that focused on
insects intended to detect any insect on different crops. The dataset of IP102 was used to
test the performance of the system. Nevertheless, weaknesses are that the system cannot
work well with different and unobservable pest species unless the data is of a high qual -
ity and annotated. M. R. Hasan et al. [28] suggested an IoT-based tomato cultivation and
pest management system that integrates learning methods for efficient pest detection
and crop monitoring. The system uses a camera module to capture images of tomato
plants and a moisture sensor to monitor soil conditions. Seven pest types were identified
using 10 learning models, including InceptionV3 and MobileNet. However, challenges
remain in continuous internet connectivity for data transmission and pest identification,
high computational resources for processing the images and in handling a wide range of
pest species and diverse environmental conditions.
Panchbhai et al. [ 29] suggested a hybrid deep learning framework for identifying tea
leaf diseases by combining modified pre-trained models like VGG16, Xception, and
ResNet152V2 with feature selection and machine learning classifiers. The model worked
very well, with an accuracy of about 99.5% and an AUC of 1.0. This shows that it is good
for accurately finding agricultural diseases. Panchbhai et al. [ 30] suggested a portable,
non-destructive method for checking the quality of cocoa beans that used spectroscopy
along with machine learning that could produce multiple outputs and data augmenta -
tion methods. M. Bilal et al. [ 31] suggested that global farm productivity was constantly
under attack from pests and diseases, resulting in massive crop loss and food insecu -
rity. It offers a high-performance DL fusion method for precision farming pest and dis -
ease detection that makes use of MobileNetV2 and EfficientNetB0. The CCMT dataset
(24,881 original and 102,976 augmented photos in 22 classes of cashew, cassava, maize,
and tomato crops) was used to train the model. However, the model’s performance was
limited by data quality and availability and its generalization to unseen pests was chal -
lenging. Table 1 presents recent literature views.
Suresh Maruthai et al. [ 32] presented a Hybrid Vision GNNs (HV-GNN) combine
CNNs and Graph Neural Networks to better find coffee pests like berry borers and leaf
miners early on. They get 93.66% accuracy on a wide range of field images-GNN models
effectively model spatial relationships for real-time protection, unlike previous CNN-
only methods that had trouble with clustered pests. This assists farmers in sustainable
coffee production by allowing them to act proactively to prevent issues. Shahi et al. [ 33]
Page 5 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
designed a cooperative scheme based on a UAV that utilizes the multispectral image data
and new plot level metrics (MI and CV) to estimate leaf spot in peanut crops in the late
stage. Mingji Wei et al. [ 34] proposed a mechanism-guided deep-learning framework
for early pest-stress classification in tomato, fusing jasmonic- and salicylic-acid-related
Table 1 Comparison of recent studies on insect pest detection methods, datasets, performance,
and limitations
Refs Method Dataset Objective Performance Disadvantages
[20] Handcrafted
feature fusion with
SVM classifier
~3,000 im-
ages, 10 pest
classes
Accurate image-
based pest clas-
sification for crop
protection
High accuracy with
effective feature fu-
sion on small datasets
Requires manual fea-
ture engineering and
has limited scalability
[21] Texture features
(GLCM, GLRLM) +
ANN and SVM
Coconut plant
pest damage
dataset (size
not explicitly
specified)
Identify pest dam-
age in coconut
plants using
texture and color
analysis
- Near-perfect accu-
racy—Strong texture
representation—
Works well for specific
crop domain
Domain-specific
(limited generaliza-
tion)—Sensitive to
image quality—Re-
quires careful feature
tuning
[22] Handcrafted
features (Haralick,
LBP) + classifiers
(SVM, RF, CNN,
NN) with PCA &
segmentation
Tomato
leaf dataset
(multi-class
pest/disease
images)
Detect diseases
and pests in to-
mato plants using
artificial vision
Flexible across
multiple classifi-
ers—Dimensionality
reduction improves
efficiency—Good
interpretability of
features
Pipeline complexity
(segmentation + PCA
- feature extrac-
tion)—Performance
depends heavily on
preprocessing—Lower
adaptability vs deep
learning methods
[23] Recurrent Neural
Network (RNN)
CCMT Plant
Disease
Dataset
Early crop
disease and pest
identification
Higher accuracy
due to optimized
segmentation
Computationally
intensive
[24] Convolutional
Neural Network
(CNN)
IP102 dataset AI-based crop and
pest management
via mobile app
Integrated system
for crop and pest
management;
provides targeted
recommendations
Requires high-resolu-
tion images
[25] Artificial Neural
Network (ANN)
FAO & World
Data Bank
crop data
Automated
agricultural yield
projection
Uses public data; sup-
ports multiple crops
Relies on structured
data, not images
[26] Deep Learning Secondary da-
taset of Paddy
insects
Automated,
secure pest detec-
tion in paddy
farming
DL improves pest
detection
High system
complexity
[27] YOLOv8 IP102 dataset Detect any type of
insect in any crop
Fast and precise
decision-making
Require high
computational re-
sources for large-scale
deployment
[28] DenseNet121 Tomato Pest
dataset
Pest detection Practical monitoring Requires IoT infra-
structure and stable
network connectivity
[29] MobileNet + LSTM Multiclass tea-
leaf disease
dataset
Improved disease
detection with
reduced class
imbalance
High accuracy and
F1-score compared
with baseline CNNs
Model is dataset
specific and may not
generalize well to
other crops
[30] Multi-output
learning model +
spectral-data
augmentation
Cocoa-bean
spectra
acquired
with portable
spectrometer
Portable, low-cost
system for rapid
cocoa bean qual-
ity assessment
Reports high 𝑅𝑅2 val-
ues (close to 0.99)
and low RMSE/low
error rates
Model performance
is sensitive to pre-
processing and wave-
length selection;
32] MobileNetV2 CCMT dataset Pest and disease
detection
High detection ac-
curacy; lightweight
and efficient fusion
model
Dataset limited to
specific crops
Page 6 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
features with spectral and image data through a hybrid network. Maruthai et al. [ 35]
suggested a Hybrid Vision Graph Neural Network (HV-GNN) to more accurately detect
pest infestations in coffee plants at an early stage. The framework integrates convolu -
tional feature extraction and graph-based relational learning for spatial interactions
between pests, aiding in the detection in clustered and overlapping situations. The
model was tested on 2,850 images of coffee plants with annotations, reaching an accu -
racy of 93.66% in detecting the plants, making it appropriate for precision agriculture
and proactive pest management.
Selvanarayanan et al. [ 36] proposed a machine vision hypergraph neural network
approach for the early detection of damping-off and root rot diseases in the coffee plan -
tation. The proposed approach captures higher order relationships among image regions
and hence better disease recognition, and an improvement in computational effi -
ciency. The framework allows for disease diagnosis at the scale, and provides a practical
approach for the monitoring of the health of coffee seedlings in plantation settings. To
guarantee secure and decentralized agricultural data management, Jananee Vinayagam
et al. [ 37] proposed a blockchain-based crop monitoring system that is coupled with
InterPlanetary File System (IPFS). The system was able to meet the monitoring accu -
racy of 98%, confidentiality of 99.8%, and enhance data throughput and scalability. The
proposed framework aims to improve the accuracy of data, traceability, and timely crop
monitoring, all of which are crucial for precision agriculture applications. Balaji et al.
[38] proposed an IoT-based crop recommendation system that utilizes soil and weather
data, which were acquired by sensors equipped with LoRa technology, and a machine
learning-based XGBoost classifier. The data from the environment are processed in real
time in a cloud platform and appropriate crops are recommended. The proposed system
successfully performed the prediction with 99% accuracy which was better than Deci -
sion Tree, Random Forest and ANN models and thus can be used as an effective deci -
sion support tool for precision agriculture.
Both traditional and cutting-edge computational techniques for precise insect pest
detection and crop protection have been investigated in recent smart agriculture
research projects. On domain-specific datasets, conventional methods using hand -
crafted features, such as LBP , GLCM, GLRLM, and RGB/HSV descriptors, in conjunc -
tion with classical classifiers, such as SVM, ANN, and Random Forest, have shown
respectable performance; however, they are constrained by manual feature engineer -
ing, poor scalability, and sensitivity to image quality [ 20][22]23]. Advanced deep learn -
ing architectures, such as RNN [ 23], CNN [ 24], Deep Learning [ 26], YOLOv8 [ 27],
DenseNet121 [ 28], MobileNet+LSTM [ 29], spectral learning models [ 30], and Mobile -
NetV2 [31], have been frequently used to get around these restrictions.
2.1 Problem statement and need for the study
Existing research on automated pest detection and the control of pests and crops shows
some methodologically motivated challenges and research gaps. Many techniques are
available and use data from a relatively limited group of pests and crops, making it dif -
ficult to apply them to other pests and crops. Other image processing tools such as ABF
(Adaptive Bilateral Filtering) improve the quality of the image and are more computa -
tionally expensive but require accurate tuning of parameters. ANN classification and
standard CNN models achieve a reasonable accuracy but are not effective in terms of
Page 7 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
scalability and stability. The light-weight architecture such as MobileNetV2 reduces the
computation requirement, but is sensitive to data and not always adaptable. The more
complex deep learning architectures (e.g., EfficientNetB0 and hybrid CNN-based archi -
tectures) achieve higher accuracy and improved learning, but need huge amount of
training data and computing to train. Such identification methods as YOLOv8 are fast
in localizing pests, but they do not produce good results in the case of diverse crops and
multifaceted field settings. These shortcomings outline gaps in the research on the cre -
ation of cohesive, lightweight, and scalable deep learning models that balance between
accuracy, efficiency and generalization, which compels the use of optimized DL tech -
niques to carry out credible and useful pest detection to protect crops in smart farming.
There are problems with current deep learning-based pest detection methods, such as
not being able to work well with different crops, being too expensive to run, needing
large datasets, and not being able to grow. This shows that we need a balanced, efficient,
and strong detection framework.
The objective of this study is to increase crop protection by identifying insect pest
attacks using a CSTGCN to enhance timely detection and response to pests. Then,
authors have established an effective and dependable system for classifying the different
types of pests in agricultural images so as to occur with the proper pest identification to
allow proper management of crops. Later, it is offered understandable deep learning to
give a clear pest management choice framework so as to have an informed agricultural
practice.
The paper presents a model called Crop Protection in Smart Agriculture — Real-time
Insect Pest Detection using Continual Spatio-Temporal Graph Convolutional Network
(CPSA-RIPD-CSTGCN), which is intended to overcome the limitation of the task of
recognizing insect pest attacks in crops with the help of a deep learning (DL) model.
The framework proposed would be useful at detecting the slight variations caused by
pests and are usually not observed by the current systems of detection. The model allows
identification of pests early and in different environmental conditions and pest types,
enhancing resilience and uniformity in the agricultural field. Moreover, the CSTGCN
is optimized based on the ROA, which leads to a high level of accuracy with the low -
est error rates. The proposed way, therefore, increases the effectiveness, reliability and
precision of the pest identification system in smart farming, which will guarantee higher
crop protection and management.
2.2 Novelty
This work is novel because it uses a Continual Spatio-Temporal Graph Convolutional
Network (CSTGCN) for the first time to classify images of insect pests, allowing for real-
time, memory-efficient detection through continual convolutions. It also uses the Revo -
lution Optimization Algorithm (ROA) to adaptively tune the weights of the CSTGCN,
which has not been done before in agricultural deep learning. It also uses the Ensemble
Transform Schmidt Kalman Filter (ETSKF) as a strong preprocessing method for noisy
field images. Finally, it has a single, explainable end-to-end framework that beats existing
RNN, CNN, and ANN-based pest detection methods in all metrics tested. Table 2 shows
the salient features of the suggested CPSA-RIPD-CSTGCN framework when compared
to the recent state-of-the-art approaches. The proposed framework brings together the
ETSKF-based preprocessing, continual spatio-temporal graph convolution-based feature
Page 8 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
learning, ROA-based optimization of hyper-parameters, and visual explainability using
Grad-CAM in a single framework, unlike the existing CNN-, RNN- and GNN-based
approaches. The combination here allows us to get better robustness, interpretability
and classification performance while also being suited to the purposes of real-time pest
detection. The comparative analysis shows that the novelty of the proposed framework
is not only of using a single algorithm, but also of a good combination of complementary
components that improve the accuracy and reliability of detecting insect pests.
2.3 Contribution
The main contributions of this research work are summarized below:
• This paper presents an innovative CPSA-RIPD-CSTGCN framework that combines
explainable deep learning with a Continual Spatio-Temporal Graph Convolutional
Network for precise and instantaneous insect pest detection in smart agriculture.
• A novel preprocessing approach utilizing ETSKF is presented to augment image
quality and enhance detection resilience amid fluctuating field conditions.
• The overall aim is to improve the protection of crops by monitoring attacks of insect
pests with the help of a CSTGCN, which will contribute to the enhancement of the
early detection of pests and their immediate response.
• ROA helps to optimize the parameters of CSTGCN and enhances robustness and
classification accuracy, and empirical evidence proves to be stronger compared to
current pest detection models.
• The framework will allow timely and reliable identification of various forms of pests
in different crops, under different environmental conditions and image properties,
which will facilitate the management of pests in time and end up being effective.
Other sections of the manuscript are organized in the following manner: Sect. 3 shows
the proposed technique, Sect. 4 presents the results and discussions, and Sect. 5 pres -
ents the conclusion of the paper.
3 Methodology
Here, the offered CPSA-RIPD-CSTGCN approach to the classification of insect pest
attacks is presented in terms of the IP102 dataset. The dataset then follows the pre-pro -
cessing step that involves the use of ETSKF technique which does image resizing and
normalization to even out the quality of all input samples. Image augmentation is then
Table 2 Comparative analysis of the proposed CPSA-RIPD-CSTGCN framework with recent state-of-
the-art methods
Method Image
preprocessing
Spatio-tempo-
ral learning
Hyperpa-
rameter
optimization
Explainability Real-time
capability
Ac-
cu-
racy
(%)
EDCP-DIA-RNN
[23]
✓ ✗ Moth-Flame
Optimization
✗ Limited 94
ICPM-ESA-CNN
[24]
✓ ✗ ✗ ✗ ✓ 90
EPCY-TPA-ANN [25] ✓ ✗ ✗ ✗ Limited 91
YOLOv8 [27] ✓ ✗ ✗ ✗ ✓ 90
HV-GNN [32] ✓ Graph-based ✗ ✗ ✓ 93.66
Proposed CPSA-
RIPD-CSTGCN
✓ (ETSKF) ✓ (CSTGCN) ✓ (ROA) ✓ (Grad-CAM) ✓ 97
Page 9 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
done to enhance model robustness and find more diversity in the data. The ROA is then
used to optimize the augmented images to improve the detection rates and minimize
classification errors. Lastly, the optimized data are grouped through the CSTGCN model
that evaluates the input images and recognizes pest attacks successfully. The schematic
diagram of the proposed CPSA-RIPD-CSTGCN framework is portrayed in Fig. 1.
3.1 Image acquisition
The IP102 dataset is first used to provide the input images [ 39]. The IP102 collection
comprises a large number of photos portraying numerous insect species and diseases
that are widely found in farm setups with 102 unique pest classes. The careful labeling of
every species within the dataset makes it possible to make a precise pest identification
and classification. This large image set provides a good and varied data set for learning
and testing DL algorithms for pest detection. This study hopes to come up with a robust
and trustworthy pest detection system that can classify and categorize pests in agricul -
tural environments with high accuracy using IP102 dataset. The supply of such data is
important in spurring research and innovation in the pest management area. Overall,
the IP102 dataset can be valuable for developing advanced and efficient pest detection
systems for farmers and agricultural stakeholders worldwide, providing a comprehensive
and labeled collection of images that can be used for training and testing deep learning
models.. Figure 2 shows the images of the dataset.
3.2 Preprocessing using ensemble transform Schmidt Kalman filter (ETSKF)
In this part, ETSKF is presented [ 40]. ETSKF is utilized to enhance resizing and nor -
malization to promote crop protection in smart farming by augmenting the quality of
detection of insect pests. The solution combines several deep learning models, which
offer flexibility and solid detection of various pests. It alleviates misclassification and
enhances reliability even in difficult situations like changing lighting, occlusion or
image quality. The technique is robust towards complicated images in the field, which
Fig. 1 Block diagram of the proposed CPSA-RIPD-CSTGCN method
Page 10 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
guarantees that pests are monitored consistently over time and that timely responses are
followed to ensure effective protection of crops as seen in Eq. (1),
𝑃𝑃𝑙𝑙𝑙𝑙𝑙𝑙𝑙 =𝑋𝑋 𝑙𝑙𝑙𝑙𝑙 (𝑋𝑋𝑙𝑙𝑙𝑙𝑙 )𝑇𝑇 (1)
where 𝑋𝑋𝑙𝑙𝑙𝑙𝑙 is the input pest image in the layer , and 𝑃𝑃𝑙𝑙𝑙𝑙𝑙𝑙𝑙 is the processed pest image in
the specific layer of the deep learning model. Image resizing is a standardisation of all
input images to a standardized size, and this enables the model to perceive pest patterns
effectively irrespective of the size of the original image. Normalization works to bring
the values of the pixels to a standard range which increases the convergence and stabil -
ity of models as they train. Resizing and normalization will help the model to concen -
trate on important pest traits by ensuring the same size and intensity distribution, which
helps to identify and intervene in crop protection in time, as shown in Eq. (2).
𝑲𝑲𝒍𝒍 = (𝑿𝑿𝒍𝒍𝒍𝒍𝒍(𝒀𝒀𝒍𝒍𝒍𝒍𝒍(𝑿𝑿𝒍𝒍𝒍𝒍𝒍 (𝒀𝒀𝒔𝒔)𝑻𝑻) 𝑫𝑫−1 (2)
where 𝑲𝑲𝒍𝒍 represents the correlation between original and altered pest pictures 𝑋𝑋𝑙𝑙𝑙𝑙𝑙 and
𝑌𝑌𝑙𝑙𝑙𝑙𝑙 , 𝑌𝑌𝑙𝑙𝑙𝑙𝑙 represents the collection of annotated pest pictures, 𝑌𝑌𝑠𝑠 represents the refer -
ence set and 𝐷𝐷−1 normalizes picture vectors, permitting the system to find pest attacks
Fig. 2 Representative images from the IP102 dataset showing different insect pest classes used for training and
evaluating the proposed model
Page 11 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
and enhance crop security. Normalization scales bring the information of the crops to a
consistent level to give proper pest attack identification as shown in Eq. (3).
𝑫𝑫𝑫 (𝒀𝒀𝒍𝒍𝒍𝒍𝒍 +𝒀𝒀 𝒔𝒔) (𝒀𝒀𝒍𝒍𝒍𝒍𝒍 +𝒀𝒀 𝒔𝒔)𝑻𝑻 +𝑹𝑹 𝒍𝒍 (3)
The matrix 𝐷𝐷 models relationship between original pest image 𝑌𝑌𝑙𝑙𝑙𝑙𝑙 and processed image
𝑌𝑌𝑠𝑠 in insect pest analysis. The term (𝑌𝑌𝑙𝑙𝑙𝑙𝑙 +𝑌𝑌 𝑠𝑠 )𝑇𝑇 refers to their joint correlations and
is included to facilitate regularization to enhance stability. This enables the system to
detect small variations that arise by damages of pests, and this improves accuracy. The
images are standardized through resizing and normalization, resulting in a consistent
representation, where the transformation matrix T ensures uniform feature scaling and
reliable pest recognition under varying conditions, as described in Eq. ( 4).
𝑻𝑻 𝑻 𝑻𝑻𝑻𝑻𝑻 𝒎𝒎 + ∑∑ 𝑻𝑻𝑻−1/2𝑻𝑻𝑻𝑻 (4)
where 𝑈𝑈 is the orthogonal basis derived from healthy crops and pest-affected crops,
and 𝑈𝑈𝑇𝑇 projects pest images in agricultural environments, so (∑∑ 𝑇𝑇𝑇−1/2 encodes the
expected contribution of each component, 𝐼𝐼𝑚𝑚 is a small identity regularizer that stabi -
lizes the representation by reducing overly variable directions and enhancing under-rep-
resented ones, improving the model’s ability to distinguish pest-affected regions from
healthy areas. Figure 3 presents representative insect pest images after preprocessing
using the Ensemble Transform Schmidt Kalman Filter (ETSKF). The preprocessing stage
standardizes the input images through resizing and normalization while suppressing
noise and irrelevant background variations.
Resizing and normalization standardize the images, while cropping focuses on the rel -
evant crop or leaf regions, removing background noise to improve accurate identifica -
tion of pests, as expressed in Eq. (5).
𝑿𝑿𝒍𝒍𝒍𝒍𝒍 =𝑿𝑿 𝒍𝒍𝒍𝒍𝒍𝑻𝑻 (5)
here 𝑿𝑿𝒍𝒍𝒍𝒍𝒍 denotes the original pest images, and 𝑇𝑇 represents a transformation matrix
designed to enhance pest-related patterns. The output 𝑋𝑋𝑙𝑙𝑙𝑙𝑙 highlights differences
between healthy and pest-affected regions, improving the accuracy of insect pest iden -
tification. Finally, preprocessing steps including resizing and normalization are applied
to standardize and focus the images. The processed images are then used for image
augmentation.
3.3 Image augmentation
This paragraph will provide the image augmentation that will be used to augment the
datasets by enhancing diversity and generalization of the technique. Image augmenta -
tion allows the model to be trained in other orientations, scales and imaging conditions,
which is particularly relevant to a limited or imbalanced dataset. The techniques that
were used to create different training samples include rotation, flipping, scaling (zoom -
ing), shear and contrast adjustments. These changes are useful in assisting the model
to pin down strong visual features in different perspectives and lighting situations. The
entire augmentation processes were carried out with Python. The augmented images
were then subjected to CSTGCN to be detected and classified. Figure 4 is a representa -
tion of augmented images.
Page 12 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
3.4 Detection and classification utilizing continual Spatio-temporal graph convolutional
network
This section is concerned with classification based on CSTGCN [ 41]. The pests that are
detected and classified by CSTGCN are Rice Leaf Roller, Rice Water Weevil, Corn Borer,
Wheat Blossom Midge, Beet Army Worm, Alfalfa Weevil, Viteus Vitifoliae, Toxoptera
Citricidus, Mango Flat Beak Leafhopper and Red Spider. Continuous monitoring of
crops can be achieved through CSTGCN and it is possible to identify the pest infes -
tations in large and diverse fields in time. Its constant convolution effectively handles
streaming data and temporarily stores the results of a computation to save on compu -
tational redundancy and the resources needed. It can enhance the precision of estimat -
ing pest occurrence and diffusion by measuring both the dynamic changes in time and
geographic associations among vegetation. The output at time step 𝑡𝑡 is computed as a
weighted aggregation of multi-variable inputs across previous time steps, where 𝑊𝑊 𝑘𝑘𝑘𝑘𝑘
represents the contribution of the 𝑣𝑣-th feature at lag 𝑘𝑘 as shown below in Eq. (6).
𝑦𝑦(𝑡𝑡) =𝑤𝑤 0 +
𝐾𝐾
∑
𝑘𝑘𝑘𝑘
𝑉𝑉
∑
𝑣𝑣𝑘𝑘
𝑊𝑊 𝑘𝑘𝑘𝑣𝑣 .𝑋𝑋(𝑡𝑡𝑡𝑘𝑘𝑡𝑘)𝑣𝑣 (6)
In pest monitoring, data continuously streams, with one input slice 𝑋𝑋 (𝑡𝑡) received at
every time step, 𝑇𝑇𝑇 𝑇 ∞. Traditional convolution requires storing the previous 𝐾𝐾𝐾𝐾
Fig. 3 Examples of images after ETSKF preprocessing, including resizing, normalization, and noise reduction for
improved feature extraction
Page 13 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
slices, V values, to compute the current output, which increases memory usage and
slows processing. Continual Convolutions provide a more efficient solution by immedi -
ately processing each incoming slice 𝑋𝑋 (𝑡𝑡) with the kernel 𝑊𝑊, while intermediate results
for aggregation. The vector 𝑚𝑚(𝑡𝑡) is formed by consolidating weighted contributions to the
features for all variables across all time steps k, in a multi-dimensional representation for
time step t as shown in Eq. (7).
𝑚𝑚(𝑡𝑡) = [
𝑉𝑉
∑
𝑣𝑣𝑣𝑣
𝑊𝑊 𝑘𝑘𝑘𝑣𝑣 .𝑋𝑋(𝑡𝑡)𝑣𝑣 ∶𝑘𝑘 ∈ 1.𝐾𝐾] (7)
The method provides for ongoing assessment of pest activity, so as to facilitate timely
action to respond to pest presence. The output at time step t is calculated by taking the
sum of a bias term and the combined contributions of the previously temporal compo -
nents 𝑚𝑚𝑘𝑘 , which represents dependency between past time step as in the Eq. ( 8).
Fig. 4 Examples of augmented images generated using rotation, flipping, scaling, shearing, and contrast adjust -
ment to improve model generalization
Page 14 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
𝑦𝑦(𝑡𝑡) =𝑤𝑤 0 +
𝐾𝐾
∑
𝑘𝑘𝑘𝑘
𝑚𝑚(𝑡𝑡𝑡𝑘𝑘𝑡𝑘)𝑘𝑘 (8)
The CSTGCN further enhances detection accuracy of the crop field. Each plant or leaf
is treated as a vertex in a graph and temporal sequences capture changes over time, such
as pest appearance or spread. This delay amounts to steps, where, 𝑘𝑘𝑇𝑇 ,𝑑𝑑𝑇𝑇 and 𝑝𝑝𝑇𝑇 are the
comparable regular convolution's temporal kernel size, dilation, as well as zero-padding.
The value 𝐺𝐺𝐺𝐺 (⋅) is computed by combining the current parameter 𝑘𝑘𝑇𝑇 , its adjusted inter-
action with 𝑑𝑑𝑇𝑇 , and a penalty term 𝑝𝑝𝑇𝑇 , capturing the temporal dependency and correc -
tion factors as shown in Eq. (9).
𝐺𝐺𝐺𝐺 (•) =𝑘𝑘 𝑇𝑇 + (𝑘𝑘𝑇𝑇 −1 )( 𝑑𝑑𝑇𝑇 −1 ) −𝑝𝑝 𝑇𝑇 −1 (9)
By limiting the 𝐺𝐺𝐺𝐺 (•) function to only activate locally within a time-step, it can be
defined a CST block for pest detection. In this block, the unique temporal 2D convolu -
tion is replaced with a continual convolution, enabling immediate processing of incom -
ing pest data. T o maintain weight compatibility with regular (non-continual) networks
and ensure proper temporal alignment, the residual connection is delayed appropriately.
Given 𝐻𝐻(𝑡𝑡)𝑙𝑙 , i.e. the 𝑙𝑙𝑙𝑙 in a time-step 𝑡𝑡, the layer at time 𝑡𝑡 is given by the Eq. (10),
𝐻𝐻(𝑡𝑡)𝑙𝑙 =𝜎𝜎 (𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷 (Re𝑠𝑠 (𝐻𝐻)(𝑡𝑡)𝑙𝑙𝑙𝑙 )) + 𝐵𝐵𝐵𝐵 (𝐶𝐶𝐶𝐶𝐶𝐶𝐶𝐶 (𝐺𝐺𝐶𝐶 (𝐻𝐻)(𝑡𝑡)𝑙𝑙𝑙𝑙 )) (10)
where 𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷 (Re𝑠𝑠 (𝐻𝐻)(𝑡𝑡)𝑙𝑙𝑙𝑙 ) manages first-in–first-out (FIFO) manner consistent to the
temporal delay introduced by the continual convolution. The CoTC operation extracts
temporal features, and then it is normalized by batch normalization (BN) to make it eas -
ier to converge training and better generalize the model. In the case of attention mecha -
nisms, the vertex attention is computed for the whole spatio-temporal map in a classic
Adaptive Graph Convolutional Network. It calculates vertex attention at each time-step,
that is, it allows the network to focus on each plant or leaf where pest activity is taking
place. This makes it easier to accurately detect pests, allowing for prompt action and
targeted crop protection measures in significant crop zones. Finally, CSTGCN detected
and classified the input images of pest. Parameters of CSTGCN are set as Batch sizeas
64, Learning rate as 0.1, Momentum as 0.9 and Epoch as 20.
3.5 Optimization using revolution optimization algorithm (ROA)
In this section, Optimization using ROA is discussed [ 42]. ROA techniques are
employed to improve weights parameters 𝑤𝑤0, 𝜎𝜎 of proposed of proposed CSTGCN. It
is applied to improve detecting insect pest attacks to enhance crop protection. Adap -
tive parameter control enhances the balance between exploration and exploitation to
identify the most informative images for detecting insect pests in crops. It explores the
problem space using a collection of potential solutions, each of which is represented by
a population member that corresponds to a distinct set of choice factors. The members
are coded as mathematical vectors and they constitute a solution matrix upon which
the search process is governed. The process allows more effective and precise classifica -
tion of pests by dynamically updating the population. Moreover, this method can dra -
matically enhance the accuracy of detection, decrease the false positives or speed up the
Page 15 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
model convergence. The ROA-based system, therefore, can provide an efficient, reliable,
and scalable method of detection of insect pests in intelligent agriculture systems.
4 Step 1: Initialization
The starting detection system of ROA is created arbitrarily. After that, the initialization
is given in Eq. (11),
𝑋𝑋𝑋
⎡
⎢
⎢
⎢
⎣
𝑋𝑋1,1...𝑋𝑋1,𝑗𝑗 ...𝑋𝑋1,𝑚𝑚
.................
𝑋𝑋𝑖𝑖,1...𝑋𝑋𝑖𝑖,𝑗𝑗 ...𝑋𝑋𝑖𝑖,𝑚𝑚
................
𝑋𝑋𝑁𝑁,1...𝑋𝑋𝑁𝑁,𝑗𝑗 ...𝑋𝑋𝑁𝑁,𝑚𝑚
⎤
⎥
⎥
⎥
⎦
(11)
here 𝑋𝑋 implies the dataset of populace matrix, 𝑋𝑋𝑖𝑖 is the th ROA ’s member, 𝑋𝑋𝑖𝑖𝑖𝑖𝑖 is the
value allocated to the 𝑗𝑗 th variable,𝑁𝑁 and 𝑚𝑚 implies the count of populace members and
problem variables, correspondingly.
Step 2: Random Generation
The input fitness function acquired randomization through ROA after setup.
Step 3: Fitness Function
The solution is produced arbitrarily from initialized data. It is computed using param -
eter optimization. It is expressed in Eq. (12).
𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹 𝐹 𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹 (𝑤𝑤0,𝜎𝜎 ) (12)
where 𝑤𝑤0 is used to maximize higher accuracy and 𝜎𝜎 is used to maximize precision.
Step 4: Exploration phase for optimizing 𝑤𝑤0.
The exploration phase starts with a populace of candidate solutions, each of which
corresponds to a distinct detection configuration. The solutions optimize their parame -
ters to search a wide range of the pest information with the aim of detecting the possibil-
ity of pest infestation. High position change enhances wide-ranging exploration, which
guarantees that a variety of infestation patterns are explored in the search. Every new
solution is only stored when it can enhance detection accuracy, and false positives are
minimized. This allows effective, dependable and accurate detection of infected crops as
a result of pest assault, which helps to gain proactive crop protection.
𝑥𝑥𝑃𝑃𝑃𝑖𝑖𝑖𝑖𝑖 =𝑤𝑤 0 [(1− 𝑡𝑡𝑇𝑇 ) .𝑥𝑥𝑖𝑖𝑖𝑖𝑖 + ( 𝑡𝑡𝑇𝑇 ) .𝐿𝐿𝑖𝑖 ] (13)
In this case, 𝑥𝑥𝑃𝑃𝑃𝑖𝑖𝑖𝑖𝑖 denotes the revised pest detection model of the th candidate solution
during the exploration stage. The optimal solution, which is the reference leader, 𝐿𝐿 is
with 𝐿𝐿𝑗𝑗 as the 𝑗𝑗 parameter of detection and 𝑇𝑇 implies the count of iterations. With each
step of the technique, all candidate solutions are brought to the region near the leader
representing the adaptive and coordinated search of the optimal solution of insect pest
detection under different conditions of crops and patterns of infestations.
Step 6: Exploitation phase for optimizing 𝜎𝜎.
During the exploitation phase, the candidate solutions are aimed at improving the
promising pest detection by making small and intentional changes. Individual solu -
tions optimize the detection parameters based on the previous observations and pat -
terns of infestation. These focused adjustments enhance the accuracy with which the
infested crops are detected by the system and the reduction of unnecessary adjustments.
Page 16 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
Adjustments that improve the detection performance are only maintained thus mak -
ing the process efficient and effective. This careful refinement allows the algorithm to
concentrate on high-potential areas for pest identification. By focusing on precision,
the exploitation phase complements the broader exploration phase, which analyzes the
entire crop field.
𝑥𝑥𝑃𝑃𝑃𝑖𝑖𝑖𝑖𝑖 = { 𝑥𝑥𝑖𝑖𝑖𝑖𝑖 +𝑟𝑟 (𝑥𝑥𝑜𝑜𝑜𝑜𝑜𝑜𝑖𝑖𝑖𝑖𝑖 −𝑥𝑥 𝑖𝑖𝑖𝑖𝑖 ) ,𝐹𝐹 𝑜𝑜𝑜𝑜𝑜𝑜𝑖𝑖 <𝐹𝐹 𝑖𝑖𝑥𝑥𝑖𝑖𝑖𝑖𝑖 +𝜎𝜎 (𝑥𝑥𝑖𝑖𝑖𝑖𝑖 −𝑥𝑥 𝑜𝑜𝑜𝑜𝑜𝑜𝑖𝑖𝑖𝑖𝑖 ) , 𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒 (14)
here 𝑥𝑥𝑃𝑃𝑃𝑖𝑖𝑖𝑖𝑖 represents the newly updated pest detection strategy of the th candidate dur-
ing the exploitation phase of the optimization process and 𝑟𝑟 denotes detection param -
eter of its 𝑗𝑗 th control variable. The symbol 𝑥𝑥𝑜𝑜𝑜𝑜𝑜𝑜𝑖𝑖𝑖𝑖𝑖 refers to the 𝑗𝑗 th detection parameter of
the candidate’s configuration from the previous iteration 𝑡𝑡𝑡𝑡 .
Step 8: T ermination
At this point, ROA was used to optimize the weight parameter and CSTGCN value.
Step 3 was then gradually repeated until stopping was reached. Thus, CPSA-RIPD-CST -
GCN has successfully detected insect pest attack and classified as Rice Leaf Roller, Rice
Water Weevil, Corn Borer, Wheat Blossom Midge, Beet Army Worm, Alfalfa Weevil,
Viteus Vitifoliae, T oxoptera Citricidus, Mango Flat Beak Leafhopper, and Red Spider by
maximizing the accuracy and decreasing the loss. The factors of ROA are set to Popula -
tion size 50 and Maximum iterations as 1000 and Fig. 5 shows the flowchart of ROA
technique. The Pseudo code of the Revolution Optimization Algorithm (ROA) used for
parameter optimization is presented in Table 3.
4.1 Explainability via Grad-CAM visualization
To fulfill the explainability objective of the proposed framework, Grad-CAM was inte -
grated into the CSTGCN pipeline. After classification, Grad-CAM heat maps were
generated for each predicted pest class by backpropagating the gradients of the class
through the final convolutional layer of CSTGCN. The thus obtained activation maps
were then overlaid with the initial input images to get visually interpretable saliency
maps. These maps were validated by domain experts to confirm that highlighted regions
correspond to biologically meaningful pest-affected areas, such as leaf surface lesions,
pest body structures, and damage patterns.
5 Result and discussion
This section describes the outcome of the proposed technique. After that, the pro -
posed CPSA-RIPD-CSTGCN method is simulated in Python using the most impor -
tant implementation parameters listed in Table 4. The experiments were all done in
Python 3.7.14 on Windows 10 operating system. The simulations were implemented
on a computer with an Intel Core i9-13900 K processor, 64 GB of memory, and 500 GB
of SSD disk memory, and compiled in a Jupyter Notebook environment. The IP102
dataset was divided into 60 and 40% training and testing splits respectively. The CST -
GCN was trained using a batch of 64, a learning rate of 0.1, momentum of 0.9 and 20
epochs. The population size was set to 50 and a maximum of 1,000 iterations was used
in the ROA optimizer. No explicit report of any GPU acceleration; all calculations were
done on the above CPU configuration. Existing systems such as EDCP-DIA-RNN [ 23],
Page 17 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
ICPM-ESA-CNN [24], and EPCY-TPA-ANN [25] are used to examine the results of the
proposed CPSA-RIPD-CSTGCN technique.
5.1 Performance measures
This is an essential step in selecting the best classifier. Precision, recall, and training and
validation accuracy are among the performance metrics used to evaluate performance.
To scale it, the performance measure is established. To scale the performance metric, it
is necessary to obtain the standard metrics True Positive (TP), True Negative (TN), False
Positive (FP), and False Negative (FN) samples as shown in Table 5.
Multiple complementary performance metrics were used to assess the classifica -
tion performance and evaluate the proposed framework. The measure of accuracy is
the overall percentage of correctly classified pest images, and the measure of precision
is how reliable the positive predictions are, by reducing the numbers of false positive
detections. Recall refers to the model's ability to correctly identify actual pest instances,
especially for early detection of pests. In multi-class classification problems, F1-score
Fig. 5 Flowchart of the Revolution Optimization Algorithm (ROA) used to optimize the CSTGCN hyperparameters
during model training
Page 18 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
is a good compromise between precision and recall. Classifier’s discriminative ability is
tested using Receiver Operating Characteristic (ROC) analysis over a range of decision
thresholds. Furthermore, Specificity was used to measure the capacity of the model to
correctly classify non-target classes, and Matthews correlation coefficient (MCC) was
added as a balanced performance measure that can be applied even when the classes are
imbalanced.
Table 3 Pseudocode for the revolution optimization algorithm (ROA)
Table 4 Implementation parameters
Parameters Description
Programming language Python
Version 3.7.14
OS Windows 10
Proposed neural network CPSA-RIPD-CSTGCN
Optimization ROA
Dataset IP102 Dataset
Table 5 Performance metrics
Performance metrics Equations
Accuracy 𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴 𝐴 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇
Precision Pr 𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒 𝑒 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇
Recall Re𝑐𝑐𝑐𝑐𝑐𝑐𝑐𝑐 𝑐 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇
F1-score 𝐹𝐹𝐹 𝐹 𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹 𝐹 𝐹 𝐹 𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝐹𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟
Specificity 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆 𝑆 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇
Matthews correlation coefficient (MCC) 𝑀𝑀𝑀𝑀𝑀𝑀 𝑀 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇√(𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇(𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇(𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇(𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇
Page 19 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
5.2 Performance analysis
The proposed CPSA-RIPD-CSTGCN was tested with a comprehensive experimental
protocol to examine the performance of classification, robustness and generalization. To
ensure that the partition bias was not unduly large and that the model was not unstable,
the data set IP102 was split into training and testing sets, the former comprising 60% and
the latter 40% of the total. A 5-fold cross validation was applied to reduce the partition
bias and to test the stability of the model. A variety of the complementary performance
metrics were applied, such as Accuracy, Precision, Recall, F1-score, ROC, Specificity,
and Matthews Correlation Coefficient (MCC). Moreover, the proposed framework was
compared with the state of the art deep learning architectures (VGG16, InceptionV3,
MobileNetV2, DenseNet121 and EfficientNetB0) and recent pest detection methods
(EDCP-DIA-RNN, ICPM-ESA-CNN and EPCY-TPA-ANN). Ablation experiments and
Grad-CAM visualizations were also carried out to assess the importance of each module
as well as the interpretability of the proposed model.
The proposed CPSA-RIPD-CSTGCN framework was evaluated on the IP102 dataset
across ten pest classes: Rice Leaf Roller, Rice Water Weevil, Corn Borer, Wheat Blos -
som Midge, Beet Army Worm, Alfalfa Weevil, Viteus Vitifoliae, Toxoptera Citricidus,
Mango Flat Beak Leafhopper, and Red Spider. Performance was assessed using Accu -
racy, Precision, Recall, F1-Score, and ROC. To ensure a rigorous and fair evaluation, the
proposed model was compared against both task-specific baselines and widely adopted
deep learning architectures used in related pest and disease detection literature.
The IP102 dataset was partitioned into 5 equal folds, with each fold used once as
the test set while the remaining four folds served as the training set. This process was
repeated five times, ensuring that every sample in the dataset was used for both train -
ing and testing. The mean and standard deviation of Accuracy, Precision, Recall, and
F1-Score across the five folds are reported in Table 6. All other implementation param -
eters (Python 3.7.14, Intel Core i9-13900 K, 64 GB RAM, batch size 64, learning rate
0.1, momentum 0.9, 20 epochs, ROA population size 50, maximum iterations 1000)
remained unchanged.
The 5-fold cross validation results further highlight that the proposed CPSA-RIPD-
CSTGCN is robust and generalizable in nature. The standard deviation across all five
folds is consistently low and non-partition dependent (≤ 0.43%) indicating that model
performance is stable and not dependent on any specific test split, which therefore can -
not be overfitting. As a result, the proposed model achieves a mean accuracy of 97.0 ±
0.32%, which is much higher than all the compared architectures such as the best-per -
forming baseline EDCP-DIA-RNN [ 23] (93.2 ± 0.48%). Moreover, the proposed model
shows the lowest standard deviation in every metrics as compared to other models
which are evaluated, showing that the consistency and reliability of the proposed model
is high. This confirms that the ETSKF preprocessing, CSTGCN-based spatio-temporal
Table 6 Fold Cross-validation results of CPSA-RIPD-CSTGCN on IP102 dataset
Fold Accuracy (%) Precision (%) Recall (%) F1-Score (%)
Fold 1 96.8 97.5 97.2 97.3
Fold 2 97.1 98.0 97.8 97.9
Fold 3 96.5 97.2 96.9 97.0
Fold 4 97.4 98.3 98.1 98.2
Fold 5 97.2 97.9 97.6 97.7
Mean± SD 97.0 ± 0.32 97.8 ± 0.39 97.5 ± 0.43 97.6 ± 0.42
Page 20 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
detection and ROA-based parameter optimization can complement each other to pro -
duce a more robust and transferable solution for detecting pests, with good performance
across different training–testing partitions. Additionally, the higher variance (SD: 0.88—
0.92%) of the standard architecture models (VGG16 and InceptionV3) compared to
the proposed model shows the sensitivity of the standard model architectures to train -
ing data composition which is a known limitation of the standard model architectures
when applied to imbalanced multi-class datasets like IP102. This sensitivity is effectively
reduced by the ROA-based optimization in CPSA-RIPD-CSTGCN which adjusts the
weights of the model for different training partitions adaptively. Table 7 shows a com -
parative evaluation of the proposed CPSA-RIPD-CSTGCN model against existing deep
learning and machine learning approaches for pest detection. It shows that the proposed
model achieves the highest performance across all metrics, demonstrating its superiority
in accuracy, precision, recall, and F1-score.
The confusion matrix was then used to calculate other performance metrics to get a
better understanding of the proposed CPSA-RIPD-CSTGCN framework such as Speci -
ficity and Matthews Correlation Coefficient (MCC). The proposed model gave an aver -
age Specificity of 99.33%, while the MCC value is 0.9324, which shows that the model
has excellent discrimination between the pest class and non-pest class and relatively
good overall agreement between the actual class and the predicted class. The high speci -
ficity indicates a good capacity to reduce the rate of false-positive classifications and the
high MCC indicates that classification is accomplished in a good manner for a variety
of pest categories. The selected comparison models were chosen to offer a fair assess -
ment of the proposed model. First, to choose the deep learning architectures widely
used in image classification and agricultural pest detection studies, popular models such
as VGG16, InceptionV3, MobileNetV2, DenseNet121 and EfficientNetB0 were selected
as benchmark models. Second, recent task-specific methods such as ESA-CNN, ICPM-
ESA-CNN and EDCP-DIA-RNN were incorporated due to their similarity in using
datasets and similar evaluation protocols as used in this study for crop disease and pest
detection. This combination allows comparison with general-purpose image classifica -
tion models and application-specific pest detection models for a thorough evaluation of
the proposed CPSA-RIPD-CSTGCN.
Figure 6 presents the analysis of the accuracy for pest attack detection models across
various algorithms and validation techniques, emphasizing their classification accuracy
Table 7 Performance comparison of pest detection models across evaluation metrics
Model Accuracy (%) Precision (%) Recall (%) F1-score (%) Refer-
ences
VGG16 82 81 80 80 Standard
benchmark
EDCP-DIA-RNN 94 96 96 87 [23]
InceptionV3 85 84 83 83 [24]
EPCY-TPA-ANN 91 92 91 89 [25]
ICPM-ESA-CNN 90 91 90 89 [26]
YOLOv8 90 86 88 88 [27]
DenseNet121 88 87 86 86 [28]
MobileNet/ MobileNetV2 87 86 85 85 [31]
EfficientNetB0 89 88 87 88 [31]
Proposed CPSA-RIPD-CSTGCN 97 98 98 98 Proposed
method
Page 21 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
for Rice Leaf Roller, Rice Water Weevil, Corn Borer, Wheat Blossom Midge, Beet Army
Worm, Alfalfa Weevil, Viteus Vitifoliae, Toxoptera Citricidus, Mango Flat Beak Leafhop-
per, Red Spider. It displays the accuracy of four models, EDCP-DIA- RNN [ 23], ICPM-
ESA-CNN [24], EPCY-TPA-ANN [25] and the proposed CPSA-RIPD-CSTGCN, for pest
detection. The proposed CPSA-RIPD-CSTGCN achieves an overall accuracy of 97%,
outperforming all compared models. VGG16, a deep but computationally heavy archi -
tecture, achieves only 82%, reflecting its limited adaptability to fine-grained pest image
features. InceptionV3, which has been applied to precision pest management tasks [ 24,
28], achieves 85%, while MobileNetV2 [ 31] and DenseNet121 [25] achieve 87% and 88%
respectively, despite being more lightweight and optimized. EfficientNetB0 [ 26] reaches
89% benefiting from its detection-focused architecture, yet still falls 7 percentage points
below the proposed model. Task-specific baselines EDCP-DIA-RNN [ 23], ICPM-ESA-
CNN [24], and EPCY-TPA-ANN [25] achieve 94%, 90%, and 91% respectively—all below
the proposed model's 97%.
Figure 7 shows analysis of F1-score of pest attack detection models of the different
algorithms and validation methods with specific focus on their ability to classify Rice
Leaf Roller, Rice Water Weevil, Corn Borer, Wheat Blossom Midge, Beet Army Worm,
Alfalfa Weevil, Viteus Vitifoliae, Toxoptera Citricidus, Mango Flat Beak Leafhopper, Red
Spider. It shows the F1-score of four models, EDCP-DIA- RNN [ 23], ICPM-ESA-CNN
Fig. 7 Comparison of F1-scores obtained by the proposed model and existing approaches for insect pest
classification
Fig. 6 Comparison of classification accuracy achieved by the proposed CPSA-RIPD-CSTGCN and existing pest
detection models on the IP102 dataset
Page 22 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
[24], EPCY-TPA-ANN [25]and the proposed CPSA-RIPD-CSTGCN, in pest detection.
With an F1-score of 98%, the proposed model significantly surpasses VGG16 (80%),
InceptionV3 (83%), MobileNetV2 (85%), EfficientNetB0 (88%), DenseNet121 (86%).The
balanced F1-score confirms that CPSA-RIPD-CSTGCN maintains a consistent trade-off
between precision and recall across all ten pest classes, which simpler architectures like
VGG16 and MobileNet fail to achieve due to their inability to model spatio-temporal
dynamics in pest progression.
Figure 8 shows performance analysis of the precision for pest attack detection mod -
els across various algorithms and validation techniques, emphasizing their classification
accuracy for Rice Leaf Roller, Rice Water Weevil, Corn Borer, Wheat Blossom Midge,
Beet Army Worm, Alfalfa Weevil, Viteus Vitifoliae, Toxoptera Citricidus, Mango Flat
Beak Leafhopper, Red Spider. The proposed model achieves 98% precision, the highest
among all evaluated models. VGG16 records only 81%, InceptionV3 84%, MobileNetV2
86%, DenseNet121 87% and EfficientNetB0 88%. The high precision of CPSA-RIPD-
CSTGCN reflects the effectiveness of the ROA-based parameter optimization in
minimizing false positive detections — a critical requirement in agricultural pest man -
agement to avoid unnecessary pesticide interventions.
Figure 9 shows the analysis of the models’ ability to recall pest attacks for differ -
ent algorithms and validation methods, and the classification accuracy on the follow -
ing pests: Rice Leaf Roller, Rice Water Weevil, Corn Borer, Wheat Blossom Midge,
Beet Army Worm, Alfalfa Weevil, Viteus Vitifoliae, Toxoptera Citricidus and Mango
Fig. 9 Comparison of recall values achieved by the proposed model and existing methods for insect pest detection
Fig. 8 Comparison of precision values for the proposed CPSA-RIPD-CSTGCN and baseline pest detection models
Page 23 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
Flat Beak Leafhopper. It demonstrates that it can remember four models for detect -
ing pests: EDCP-DIA- RNN, ICPM-ESA-CNN [ 24] and EPCY-TPA-ANN [ 25] and the
proposed model CPSA-RIPD-CSTGCN. The proposed model achieves 98% recall rate,
which is significantly higher than other models (InceptionV3 (83%), MobileNetV2 (85%),
DenseNet121 (86%), EfficientNetB0 (87%) and the task-specific baselines (90–96%).
CPSA-RIPD-CSTGCN achieved a high recall, indicating that it was able to identify
almost all the actual pest occurrences, especially crucial when identifying early infesta -
tions, where the economic impact of misidentification is great.
Figure 10 presents the ROC performance for various pest detection methods, show -
ing the TPR against the false positive rate. The proposed CPSA-RIPD-CSTGCN method
consistently outperforms the other methods, indicating higher TPR and lower FPR. At a
FPR of 0.2, the positive rate for proposed CPSA-RIPD-CSTGCN reaches 0.93, indicat -
ing a very high detection rate with few false positives. In comparison, the EDCP-DIA-
RNN [23] and ICPM-ESA-CNN [24] methods show true positive rate values around 0.85
and 0.80 at a similar false positive rate of 0.2, which is lower than the proposed method.
The EPCY-TPA-ANN [25] shows the weakest performance, with a TPR of around 0.75
at the same FPR. This highlights that the CPSA-RIPD-CSTGCN method offers the best
trade-off between sensitivity and specificity, making it the most reliable model for pest
detection.
Figure 11 shows analysis of training as well as validation loss over 50 epochs during
model training. The x-axis indicates the epochs between 0 and 50 and the y-axis repre -
sents the loss values from about 0.5 to 3.5. The training loss starts around 2.9 at epoch
0 and steadily decreases to about 1.3 by epoch 50. The validation loss begins near 2.5
and drops to roughly 1.7 at the end epoch 50. Both losses decrease consistently, with
the validation loss slightly higher throughout, indicating steady learning and minimal
overfitting.
During model training the accuracy of the training and validation data is shown over
50 epochs in Fig. 12. The accuracy is plotted on the y axis in percentage and the number
of epochs on the x axis from 0 to 50. The training accuracy starts around 0.65 at epoch
0 and steadily decreases to about 0.97 by epoch 50. Both accuracies rise steadily and
Fig. 10 ROC curves comparing the proposed CPSA-RIPD-CSTGCN with existing pest detection models
Page 24 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
the training accuracy is higher throughout the procedure, suggesting that the model is
trained to be more accurate than it is on hidden validation data. VGG16, InceptionV3,
MobileNet, and EfficientNetB0 are all spatial classifiers for static image classification
tasks. They do not simulate temporal dynamics or inter-region spatial relationships of
crop fields. By contrast, CSTGCN explicitly models the spatial graph structure of the
affected crop regions, as well as the temporal evolution of pest spread, through continu -
ous convolution, allowing it to detect subtle patterns in early stages of pest infestation
that frame-level classifiers are unable to recognize. In addition, the optimisation of the
weight parameters of the CSTGCN network using the ROA is advantageous over the
fixed training schedules as employed in standard architectures leading to better conver -
gence and reduced classification error.
5.3 Explainability analysis using grad-CAM
The explainability part of the proposed deep learning framework is shown in Fig. 13. The
Original Image is the insect sample that was captured and placed on a leaf surface. The
Fig. 12 Training and validation accuracy curves demonstrating the learning performance of the proposed
CPSA-RIPD-CSTGCN
Fig. 11 Training and validation loss curves of the proposed CPSA-RIPD-CSTGCN over the training epochs
Page 25 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
Grad-CAM Heatmap visualizes the spatial regions that contributed most strongly to the
model's decision, with the intensity of the colors (red/yellow) representing the level of
activation. The Overlay Visualization shows the heatmap overlaid on the original image,
which can be interpreted as the focus of the network on the morphological aspects of
the pest when predicting. This visualization validates the model's ability to attend to
biologically relevant regions, which increases trust and transparency in real-time pest
detection. The following is a list of Key observations from Grad-CAM analysis: Rice Leaf
Roller and Rice Water Weevil: The rolled leaf margins caused by this pest and puncture
scars on leaf surface caused by the weevil are highlighted in the Grad-CAM heatmaps.
The model discriminates and focuses on specific areas of the image, confirming focused
and discriminative attention. Corn Borer and Wheat Blossom Midge: Activation maps
have been created to highlight grain heads that are emerging and frass deposits or point
of stem entry for both corn borer and wheat blossom midge, which are diagnostically
important characteristics for both pest classes. Red Spider and Beet Army Worm: Min -
ute webbing structures and stippling patterns on the underside of leaves are problematic
for conventional CNN-based models, and this is taken into account in the model. Beet
Army Worm is interested in abnormal feeding sores around the midrib of the leaf's sur -
face. Viteus Vitifoliae: Grad-CAM confirms that the model focuses on the gall forms on
vine leaves as expected, and on the clusters of aphid colonies along leaf veins for Toxop -
tera Citricidus. For the models learnt in the learning task, the following activation maps
are demonstrated: the eating damage to alfalfa leaves (skeletonization) for the alfalfa
Fig. 13 Grad-CAM visualizations highlighting the image regions contributing to insect pest classification by the
proposed model
Page 26 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
weevil and the morphology of the body of the mango flat beak leafhopper for the mango
flat beak leafhopper.
5.3.1 4.3.1 Comparison with baseline models
Grad-CAM visualizations were also generated for InceptionV3, MobileNetV2, VGG16,
and DenseNet121 on the same test samples. Standard architectures frequently exhibited
diffuse or off-target attention—particularly VGG16, which in several cases highlighted
background vegetation and soil regions rather than the pest or affected tissue. Incep -
tionV3 and MobileNetV2 showed more focused attention but still failed on low-contrast
pest classes such as Red Spider and Viteus Vitifoliae. In contrast, CPSA-RIPD-CSTGCN
consistently produced sharp, well-localized heatmaps across all ten pest classes, attribut-
able to the spatio-temporal graph structure of CSTGCN which explicitly encodes inter-
region spatial relationships and temporal change patterns—features that fundamentally
improve the model's ability to localize fine-grained pest damage.
5.3.2 4.3.2 Misclassification analysis via Grad-CAM
In the small proportion of misclassified samples (approximately 3% of test images),
Grad-CAM analysis revealed that the model's attention was directed toward visually
ambiguous regions — for example, early-stage Corn Borer damage that visually overlaps
with Beet Army Worm feeding patterns. This insight directly informs future data col -
lection priorities, suggesting the need for more diverse training samples of early-stage
infestations and visually similar pest pairs.
5.4 Ablation study
Ablation experiments were performed by selectively removing or replacing various com-
ponents of the proposed framework to confirm each module's contribution.
Table 8 shows how different parts of the proposed CPSA-RIPD-CSTGCN method
affect its accuracy, precision, recall, and F1-score. When ETSKF is taken away, the model
gets 92% accuracy, 93% precision, 95% recall, and 93% F1-score. Without ROA, the
parameters get a little better: 93% accuracy, 94% precision, 92% recall, and 95% F1-score.
Without both ETSKF and ROA, the parameters get 95% accuracy, 93% precision, 94%
recall, and 93% F1-score. The overall proposed model, which takes both ETSKF and
ROA into account, is the best because it has the highest accuracy (97 percent), precision
(98 percent), recall (98 percent), and F1-score (98 percent). These findings demonstrate
that the combination of ETSKF and ROA will tremendously increase the efficiency of the
model in pest attack detection. In general, it is evident that the proposed approach has
much more accuracy and reliability than its partial versions do.
The baseline models were chosen based on three criteria: (i) models are widely used
in image classification research (VGG16, InceptionV3, MobileNetV2, DenseNet121, and
EfficientNetB0); (ii) models are successfully applied to agricultural pest or crop disease
Table 8 Ablation study of proposed method
Configuration Accuracy (%) Precision (%) Recall (%) F1-Score (%)
Without ETSKF 92 93 95 93
Without ROA 93 94 92 95
Without ETSKF and ROA 95 93 94 93
Proposed model (With ETSKF and ROA) 97 98 98 98
Page 27 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
detection (EDCP-DIA-RNN, ICPM-ESA-CNN, and EPCY-TPA-ANN); and (iii) repro -
ducible implementation and similar evaluation settings on the IP102 dataset or related
agricultural image datasets. The baselines are lightweight, conventional, and task-
specific deep learning models, providing a comprehensive evaluation of the proposed
framework.
Table 9 entails a comparison of different DL techniques like overall strength, speed,
efficiency, complexity, and cost of computation. Traditional models, such as RNN, CNN,
ANN, generic deep learning algorithms DenseNet121 and MobileNetV2, are moderate
to high cost of computation, and offer relatively lower speed and efficiency. Quite on
the contrary, the developed CSTGCN-ROA model shows a better performance in all
measures considered. Its total score on strength is 0.99 which is great in terms of accu -
racy and strength, but also has a low computational cost (0.01) and a low architectural
complexity (0.03). These findings affirm that the proposed strategy is greatly optimized,
which has much better speed and efficiency with minimal resource use, hence beating
the currently deployed models with respect to their effectiveness and computational
efficiency.
Figure 14 presents confusion matrices to visualize the efficacy of a classification
method to determine the various insect pests. The diagonal blocks represent where the
model correctly recognised all pests whereas the off-diagonal areas depict where one
pest was mistaken as a different one. The degree of the color indicates the number of
predictions, where the darker the color, the more the predictions. All in all, this model
has shown a high level of accuracy in most pests with only a few misclassifications,
showing high levels of predictive accuracy.
5.5 Discussion
Experimental results show that the proposed CPSA-RIPD-CSTGCN framework
achieves better performance than the conventional deep learning architectures and
recent task-specific pest detection models on all the evaluation measures. The proposed
framework showed high accuracy of 97%, precision of 98%, and recall and F1-score of
98% respectively which demonstrates its ability to capture both spatial features of insect
pests as well as their contextual features, leading to powerful classification capabilities.
In addition, the RSD for five-fold cross validation (0.32%) is low, which indicates that the
model is not very sensitive to the differences between training and test sets, and is quite
generalizable across the multiple folds of the cross validation data partition. This high
performance is due to the synergy between the various components of the proposed
system. In addition to the features listed above, ETSKF preprocessing can also be used
Table 9 Analysis of Hypotheses
Techniques Computa-
tional cost
Complexity of
computation
Speed Effective-
ness of
computation
Strong-
ness
RNN (V. K. Patel et al. 2024) 0.75 0.92 0.45 0.35 0.27
CNN (R. K. Ray et al. 2025) 0.89 0.86 0.20 0.21 0.32
ANN (O. S. Nagesh et al. 2024) 0.58 0.75 0.19 0.61 0.36
DL(W. Rahman et al. 2024) 0.60 0.60 0.27 0.18 0.38
DenseNet121 (M. R. Hasan et al. 2024) 0.77 0.76 0.15 0.15 0.36
MobileNetV2 (M. Bilal et al. 2025) 0.86 0.70 0.26 0.35 0.41
Proposed Model (CSTGCN and ROA) 0.01 0.03 0.99 0.99 0.99
Page 28 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
to enhance image quality and minimize the impact of noise and illumination changes,
and data augmentation can be used to increase the variety of training samples and pre -
vent overfitting. Compared with traditional CNN-based models, CSTGCN models bet -
ter capture the spatial dependence of the images, which allows it to better distinguish
between similar pest species visually. Furthermore, hyperparameter optimization using
ROA helps in achieving better convergence and minimizes misclassifications, which are
due to finding the optimal parameters. The proposed framework offers a better perfor -
mance improvement in the accuracy, precision, recall and F1-score compared to the
other recent pest detection models, VGG16, InceptionV3, MobileNetV2, DenseNet121,
and EfficientNetB0 models. In the agricultural field, where both false alarms and missed
detections can have a negative impact on crop management and pesticide application,
this balanced performance is crucial. The Grad-CAM visualizations are also provided
which further improve the practicality of the framework by marking image regions that
are relevant to each prediction. These visual explanations enhance the transparency of
the model, and enable users to ensure that the model captures biologically relevant pest
properties, thereby boosting confidence in automated decision-support systems for pre -
cision agriculture. The overall results show that the proposed CPSA-RIPD-CSTGCN
framework is a promising approach for intelligent pest monitoring. However, larger
field datasets taken under various field conditions must be used to validate this before
it is implemented in a real-time smart agriculture system. The proposed CPSA-RIPD-
CSTGCN framework was able to get good results but there are some drawbacks to con -
sider. The evaluation was performed on the IP102 benchmark dataset which does not
necessarily perfectly reflect the diversity of real-world agricultural environments featur -
ing varying levels of illumination, weather, background clutter, occlusions and camera
viewpoints. The model proposed in this work assumes that the images taken are of good
Fig. 14 Confusion matrix illustrating the classification performance of the proposed model across the ten insect
pest classes
Page 29 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
quality and the pest features are clearly visible in the images for extracting the features.
Therefore, detection performance can be reduced under cases where the pests are par -
tially occluded, camouflaged or very small or are acquired under sub-optimal imaging
conditions. In addition, the IP102 data set comprises 102 pest categories, but in this
study, only ten representative pest classes were used to test the framework, which may
make it difficult to apply it to new pest species. The model might also be biased towards
the more numerous classes, especially when there is class imbalance. Furthermore, the
complexity of the CSTGCN architecture and the optimization of ROA could hinder the
implementation of the algorithm on edge devices with limited resources. Future research
will focus on validating the framework with a variety of field datasets, robustifying it via
domain adaptation and continual learning and light-weight implementations for real-
time agricultural applications.
6 Limitations
Although the proposed framework has yielded some positive results, there are some lim-
itations that need to be recognised. Firstly, the experimental evaluation was performed
on the IP102 benchmark dataset, and further validation is needed with large-scale field
datasets collected under different illumination, weather conditions, occlusions and crop
growth stages to fully understand its robustness in practice. Second, 102 pest categories
are included in the IP102 data set but in the present study only ten classes of pests were
selected to test the framework, which may reduce the applicability of the results to other
insect pests. Third, computational complexity rises when combining both CSTGCN and
ROA, that might be a limitation in deploying the model on edge devices with limited
computational power without further optimization. Last but not least, while Grad-CAM
is effective in visualizing the regions of the image that are important to model predic -
tions, it is only a post-hoc interpretability technique and cannot completely explain the
internal decision-making process of the deep learning model. These limitations will be
overcome with a thorough field validation, lightweight model compression, multimodal
learning, and more extensive explainability techniques, which will further enhance the
applicability of the proposed framework for real-world smart agriculture systems.
6.1 Future works
Lightweight model design will be explored by replacing the CSTGCN backbone with
depthwise-separable or grouped graph convolutions and by evaluating reduced-channel
and reduced-layer variants, aiming to lower parameter count without proportionally
sacrificing the spatio-temporal modelling that drives the accuracy gains observed in the
ablation study. The optimization of real-time inferences will be conducted by bench -
marking the GPUs and edge-accelerators (e.g., NVIDIA Jetson or similar embedded
platforms), profiling the latency and memory per layer, and optimizing by batching or
skipping frames for continuous video-stream monitoring, rather than today's normal -
ized efficiency. Model compression methods will be tested for their impact on the accu -
racy-efficiency curve, focusing on whether compression negatively affects the accuracy
of the models when it comes to capturing the accuracy of visually similar pairs of pests,
like Corn Borer vs Beet Army Worm. To determine if information other than the visual
morphology can overcome the early stage ambiguity mapped onto damage patterns by
Grad-CAM analysis, multimodal information from RGB imagery with multispectral or
Page 30 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
hyperspectral bands, thermal imaging, and environmental sensor data (such as tempera -
ture, humidity, soil moisture) will be explored to detect pests, and if available, acoustic
or trap-count signals will be added. In addition, few-shot and meta-learning approaches
to adding unseen pest species without a complete retraining, domain adaptation meth -
ods to ensure robustness in out-of-sample scenarios, as well as extending the evaluation
to the full 102-class IP102 taxonomy and to field collected imagery, are planned. Finally,
integration of the resulting lightweight, compressed model into IoT based smart farming
platforms for continuous real-time monitoring of crops under realistic connectivity and
power constraints.
7 Conclusion
For smart agriculture, this study introduced an explainable deep learning model named
Crop Protection in Smart Agriculture–Real-Time Insect Pest Detection using Continual
Spatio-Temporal Graph Convolutional Network (CPSA-RIPD-CSTGCN) to success -
fully and precisely detect insect pest in agricultural fields. The framework consists of
Ensemble Transform Schmidt Kalman Filter (ETSKF)-based image preprocessing, Data
augmentation, Continual Spatio-Temporal Graph Convolutional Network (CSTGCN)
for feature learning, Revolution Optimization Algorithm (ROA) for hyperparameter
optimization, and Grad-CAM for visual explainability. A 60:40 training–testing split
of the benchmark dataset (IP102) and a five-fold cross-validation were performed with
the proposed model over 10 economically important insect pest classes. Experimental
results show that the proposed framework achieved an overall accuracy of 97.0%, pre -
cision of 98%, recall of 98%, and F1-score of 98% with mean cross-validation of 97.0 ±
0.32% which has shown that the performance of the proposed framework is stable and
consistent while changing the data partitions. Comparative analysis further revealed
that the proposed model outperforms popular deep learning architectures like VGG16
(82%), InceptionV3 (85%), MobileNetV2 (87%), DenseNet121 (88%) and EfficientNetB0
(89%) and task specific models like EDCP-DIA-RNN (94%), ICPM-ESA-CNN (90%)
and EPCY-TPA-ANN (91%). By using the Grad-CAM method, the regions crucial for
pest recognition were identified, making the predictions of the model more interpre -
table and the decisions more transparent. The outcomes show that the proposed CPSA-
RIPD-CSTGCN solution is efficient and robust for automated detection of insect pests
in smart agriculture. The next steps for future research include validating the proposed
framework with large-scale field datasets collected and observed under a variety of envi -
ronmental conditions, expanding the model to include all 102 classes of pests found in
the IP102 dataset, incorporating multi-modal data sources like UAV imagery and data
from IoT sensors, and lightweight implementations of the model for edge deployment
in real-time precision agriculture applications. Further research will explore continual
learning strategies for the model to be able to identify new species of pest organisms
without having to undergo comprehensive retraining.
Acknowledgements
Not applicable.
Author contributions
J. Briskilal, M.K. Vidhyalakshmi: Conceptualization, Data curation, Writing—original draft, Writing—original draft,
Resources, Formal analysis, Investigation. Aswathy K. Cherian, S.Neduncheliyan: Methodology, Validation, Project
Administration, Writing—original draft. Ajay Kumar, Rakesh Kumar: Writing—review and editing, Resources, Formal
analysis, Investigation and Supervision, Validation, Project Administration. All authors have read and agreed to the
published version of the manuscript.
Page 31 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
Funding
No funding is provided by Institutions/organizations/funding agencies for this research work.
Data availability
The dataset analyzed during the current study was taken from Kaggle at h t t p s : / / w w w . k a g g l e . c o m / d a t a s e t s / r t l m h j b n / i p 0
2 - d a t a s e t / d a t a on 28–12-2025.
Declarations
Ethics approval and consent to participate
All the authors participated in this research.
Consent for publication
All the authors approved the final manuscript for publication.
Competing Interests
The authors declare that they have no known competing financial interests or personal relationships that could have
influenced the work reported in this study.
Received: 5 March 2026 / Accepted: 23 August 2026
References
- Amrani A, Diepeveen D, Murray D, Jones MG, Sohel F. Multi-task learning model for agricultural pest detection from crop-
plant imagery: a Bayesian approach. Comput Electron Agric. 2024;218:108719. - Dong S, Teng Y, Jiao L, Du J, Liu K, Wang R. ESA-Net: an efficient scale-aware network for small crop pest detection. Expert
Syst Appl. 2024;236:121308. - Suzauddola M, Zhang D, Zeb A, Chen J, Wei L, Rayhan AS. Advanced deep learning model for crop-specific and cross-crop
pest identification. Expert Syst Appl. 2025;274:126896. - Fu X, Ma Q, Yang F, Zhang C, Zhao X, Chang F, et al. Crop pest image recognition based on the improved ViT method. Inf
Process Agric. 2024;11(2):249–59. - Karthik R, Ajay A, Bisht AS, Illakiya T, Suganthi K. A deep learning approach for crop disease and pest classification using
Swin transformer and Dual-Attention Multi-scale fusion network. IEEE Access. 2024. h t t p s : / / d o i . o r g / 1 0 . 1 1 0 9 / A C C E S S . 2 0 2 4 .
3 4 8 1 6 7 5 . - Shafik W, Tufail A, De Silva LC, Haji Mohd Apong RAA, Kim KH. Deep learning technique for plant disease classification and
pest detection and model explainability elevating agricultural sustainability. BMC Plant Biol. 2025;25(1):1491. - Wadhwa D, Malik K. A generalizable and interpretable model for early warning of pest-induced crop diseases using envi-
ronmental data. Comput Electron Agric. 2024;227:109472. - Ray RK, Chakravarty S, Dash S, Ghosh A, Mohanty SN, Chirra VRR, et al. Precision pest management in agriculture using
Inception V3 and EfficientNet B4: a deep learning approach for crop protection. Inf Process Agric. 2025. h t t p s : / / d o i . o r g / 1 0 .
1 0 1 6 / j . i n p a . 2 0 2 5 . 0 9 . 0 0 5 . - Remya S, Anjali T, Abhishek S. The power of vision transformers and acoustic sensors for cotton pest detection. IEEE Open
J Comput Soc. 2024;5:356–67. - Chen W, Zheng L, Xiong J. Algorithm for crop disease detection based on channel attention mechanism and lightweight
up-sampling operator. IEEE Access. 2024. https://doi.org/10.1109/ACCESS.2024.3439410. - Mamabolo E, Mashala MJ, Mugari E, Mogale TE, Mathebula N, Mabitsela K, et al. Application of precision agriculture tech-
nologies for crop protection and soil health. Smart Agric Technol. 2025. https://doi.org/10.1016/j.atech.2025.101270. - Dhanaraj RK, Ali MA, Sharma AK, Nayyar A. Deep multibranch fusion residual network and IoT-based pest detection
system using sound analytics in large agricultural field. Multim Tools Appl. 2024;83(13):40215–52. - Li M, Tao Z, Yan W, Lin S, Feng K, Zhang Z, et al. Apnet: lightweight network for apricot tree disease and pest detection in
real-world complex backgrounds. Plant Methods. 2025;21(1):4. - Wang N, Fu S, Rao Q, Zhang G, Ding M. Insect-YOLO: a new method of crop insect detection. Comput Electron Agric.
2025;232:110085. - Sharma K, Shivandu SK. Integrating artificial intelligence and Internet of Things (IoT) for enhanced crop monitoring and
management in precision agriculture. Sens Int. 2024;5:100292. - Vhatkar KN. An intellectual model of pest detection and classification using enhanced optimization-assisted single shot
detector and graph attention network. Evol Intell. 2025;18(1):3. - Ajith S, Vijayakumar S, Elakkiya N. Yield prediction, pest and disease diagnosis, soil fertility mapping, precision irriga-
tion scheduling, and food quality assessment using machine learning and deep learning algorithms. Discov Food.
2025;5(1):1–23. - Fu R, Wang S, Dong M, Sun H, Al-Absi MA, Zhang K, et al. Pest detection in dynamic environments: an adaptive continual
test-time domain adaptation strategy. Plant Methods. 2025;21(1):53. - Sharada K, Choudhary SL, Harikrishna T, Dixit RS, Suman SK, Ayyappa Chakravarthi M, et al. GeoAgriGuard: AI-driven pest
and disease management with remote sensing for global food security. Remote Sens Earth Syst Sci. 2025;8(2):409–22. - Hossain B, Roy U, Shamsunnaher S, Kawser MSAA, Shuaeb SMAA. Image-based pest identification using support vector
machine for agricultural crop protection. Asian Journal of Research in Crop Science. 2025;10(3):13–22. - Barman UD, Pathak C, Mazumder NK. Comparative assessment of pest damage identification of coconut plant using dam-
age texture and color analysis. Multimedia Tools and Applications. 2023;82(16):1–23. - Amaro EG, Canales JC, Cabrera JE, Castilla JSR, Lamont FG. Identification of diseases and pests in tomato plants through
artificial vision. In: Communications in computer and information science. 2020. p. 98–109.
Page 32 of 32
Briskilal et al. Discover Artificial Intelligence (2026) 6:1435
23. Patel VK, Abhishek K, Selvarajan S. Optimized recurrent neural network-based early diagnosis of crop pest and diseases in
agriculture. Discov Comput. 2024;27(1):43.
24. Ray RK, Chakravarty S, Dash S, Mohanty SN, Naga Ramesh JV. An interactive AI-based crop and pest management system
leveraging transfer learning for enhanced sustainable agriculture. Model Earth Syst Environ. 2025;11(4):244.
25. Nagesh OS, Budaraju RR, Kulkarni SS, Vinay M, Ajibade SSM, Chopra M, et al. Boosting enabled efficient machine learning
technique for accurate prediction of crop yield towards precision agriculture. Discov Sustain. 2024;5(1):78.
26. Rahman W, Hossain MM, Hasan MM, Iqbal MS, Rahman MM, Hasan KF, et al. Automated detection of harmful insects in
agriculture: a smart framework leveraging IoT, machine learning, and blockchain. IEEE Trans Artif Intell. 2024;5(9):4787–98.
27. Vilar-Andreu M, García L, Garcia-Sanchez AJ, Asorey-Cacheda R, Garcia-Haro J. Enhancing precision agriculture pest con-
trol: a generalized deep learning approach with YOLOv8-based insect detection. IEEE Access. 2024;12:84420–34.
28. Hasan MR, Rahman MM, Shahriar F, Khan MSI, Uddin KMM, Hasan MM. Smart farming: leveraging IoT and deep learning for
sustainable tomato cultivation and pest management. Crop Design. 2024;3(4):100079.
29. Panchbhai KG, Lanjewar MG. Enhancement of tea leaf diseases identification using modified SOTA models. Neural Com-
put Appl. 2025;37:2435–53.
30. Panchbhai KG, Lanjewar MG. Portable system for cocoa bean quality assessment using multi-output learning and aug-
mentation. Food Control. 2025;174:111234.
31. Bilal M, Shah AA, Abbas S, Khan MA. High-performance deep learning for instant pest and disease detection in precision
agriculture. Food Sci Nutr. 2025;13(9):e70963.
32. Maruthai S, Selvanarayanan R, Thanarajan T, et al. Hybrid vision GNNs based early detection and protection against pest
diseases in coffee plants. Sci Rep. 2025;15:11778.
33. Shahi TB, Xu CY, Neupane A, Fresser D, O’Connor D, Wright G, et al. A cooperative scheme for late leaf spot estimation in
peanut using UAV multispectral images. PLoS ONE. 2023;18(3):e0282486.
34. Wei M, Lyu F, Hui W, et al. Mechanism-guided deep learning for pest classification in tomato leaves. Comput Electron
Agric. 2026;244:111434.
35. Maruthai S, Selvanarayanan R, Thanarajan T, Rajendran S. Hybrid vision GNNs based early detection and protection against
pest diseases in coffee plants. Sci Rep. 2025;15:11778.
36. Selvanarayanan R, Janarthanan M, Vocaturo E, Thanarajan T, Rajendran S. (2025) Machine vision hypergraph neural net-
works for early detection of damping-off and root rot disease in coffee plantations. Agrociencia. 1–22.
37. Vinayagam J, Baskar D, Thanarajan T, Rajamanickam M. (2025) Blockchain-based crop monitoring using an interplanetary
file system. Agrociencia. 1-15 https://doi .org/10.471 63/agrocien cia.v59i 8.3553
38. Balaji V, Balamurugan KS, Thanarajan T, Sundarapandi AMS. Machine learning-based crop recommendation system inte-
grating soil properties and weather conditions with IoT-driven data collection. Agrociencia. 2026;60(1):1–17.
39. IP102 Dataset. Kaggle. Available at: https: //w ww.kag gle .com/dat asets/rt lm hj bn/ip02 -dataset/data (Accessed December
2025)
40. Bell Z, Dance SL, Waller JA. The ensemble transform Schmidt-Kalman filter: a novel method to compensate for observation
uncertainty due to unresolved scales. Atmos Sci Lett. 2025;26(5):e1296.
41. Hedegaard L, Heidari N, Iosifidis A. Continual spatio-temporal graph convolutional networks. Pattern Recogn.
2023;140:109528.
42. Hamadneh, T., Batiha, B., Gharib, G.M., Montazeri, Z., Dehghani, M., Aribowo, W., Ibraheem, I.K., 2025. Revolution optimiza-
tion algorithm: a new human-based metaheuristic algorithm for solving optimization problems. Inter J Intelligent Eng
Syst. 18(2).
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
论文原文与出版信息
Discover Artificial Intelligence