论文信息
论文解读
AI 辅助整理- 方法
- 轻量卷积网络+模型量化,用四类葡萄叶图像训练验证。
- 发现
- 量化后仅108.4KB、延迟3.46毫秒,精度与效率兼顾。
- 机会点
- 尚未在微控制器与田间实测,可延伸真实部署、田间鲁棒性与边缘端在线学习研究。
论文摘要
《Discover Artificial Intelligence》11月25日发表研究,用7.4万参数模型识别四类葡萄叶图像,准确率95.33%;量化后108.4KB,软件代理延迟3.46毫秒。作者强调未在微控制器或田间部署,属设计验证。
全文
Discover Artificial IntelligenceDiscover Artificial Intelligence
RESEARCH Open Access
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
https://doi.org/10.1007/s44163-026-02828-2
TinyGrapeNet-IoT balances accuracy
and efficiency for TinyML based grape leaf
disease detection in precision viticulture
G. Abinaya1* and P . Sundaravadivel1
- C o r r e s p o n d e n c e :
G. Abinaya
abinaya.g05@gmail.com
1Saveetha Engineering College,
Chennai, Tamil Nadu, India
© The Author(s) 2026. Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
License, which permits any non-commercial use, sharing, 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 you modified the licensed material.
You do not have permission under this licence to share adapted material derived from this article or parts of it. 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 h t t p : / / c r e a t i v e c o m m o n s . o r g / l i c e n s
e s / b y - n c - n d / 4 . 0 / .
Abstract
Grapevine foliar diseases such as Black Rot, Esca (Black Measles), and Leaf Blight
(Isariopsis Leaf Spot) reduce yield and fruit quality, and most automated detectors
depend on cloud or GPU-class inference. This paper presents TinyGrapeNet-IoT, a
TinyML-oriented framework for grape leaf disease classification that combines a
compact depthwise-separable convolutional network (73,828 parameters) with
an IoT reporting design in which only compact diagnostic messages, rather than
raw images, are transmitted. The model was trained and tested on the four-class
PlantVillage grape subset (4,062 images). Under the image-level 80:10:10 split, five
training runs reached a test accuracy of 95.04% +/− 1.77% (range 92.63% to 98.03%).
A leakage audit showed that 364 of the 365 diseased test images have an image of
the same leaf in the training set; when the model was retrained on a leaf-grouped
split, the test accuracy was 96.36% +/− 2.42% over 5 seeds, which is not lower than
the image-level accuracy; there was no evidence of inflation in this experiment, but
inflation cannot be ruled out. A representative model converted to INT8 occupied
108.4 KB and reached 95.33% test accuracy (activation ranges calibrated on the test
images; 95.58% with training-image calibration). All latency, size, and memory figures
are software-proxy results obtained with the TensorFlow Lite CPU interpreter on
general-purpose hardware: the model was not run on a physical microcontroller, and
no on-device latency, tensor-arena size, or energy was measured. The proxy latency
was 3.46 ms, compared with 27.89 ms, 4.80 ms, and 27.61 ms for INT8 MobileNetV2,
MobileNetV3-Small, and EfficientNet-B0, which are 11 to 44 times larger; MobileNetV2
and EfficientNet-B0 are 2.7 to 3.2% points more accurate. All accuracy results are
in-distribution results on a laboratory benchmark, and field performance was not
evaluated.
Keywords TinyML, Grape leaf disease detection, Embedded deep learning, Internet of
Things (IoT), Edge computing, Precision viticulture, Depthwise separable convolution
1 Introduction
Grapes (Vitis vinifera) are cultivated across more than seven million hectares worldwide
and underpin a multi-billion-dollar table-grape, raisin, and wine industry that is espe -
cially vital to the agricultural economies of Mediterranean, South Asian, and New World
Page 2 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
wine-producing regions [ 1, 2]. Grapevine productivity, however, is highly susceptible to
foliar diseases, most notably black rot, esca (black measles), and leaf blight (Isariopsis
leaf spot), which can cause substantial reductions in yield and fruit quality if left unde -
tected during early infection stages [1, 2]. Because visual symptoms of these diseases can
resemble one another and vary with lesion age, lighting, and cultivar, manual field diag -
nosis by growers or agronomists is often subjective, labor-intensive, and difficult to scale
across large vineyards.
Advances in computer vision and deep learning have substantially improved auto -
mated plant disease recognition. Convolutional neural networks (CNNs) trained on pub-
lic benchmarks such as PlantVillage have achieved classification accuracies approaching
or exceeding 95–100% for grape leaf disease categories under controlled imaging con -
ditions [1–3], and comparative studies of CNN and vision-transformer backbones have
confirmed the discriminative power of deep features for distinguishing black rot, esca,
and leaf blight symptoms [ 2]. Dedicated real-time detectors built on improved region-
proposal architectures have further demonstrated the feasibility of localizing and clas -
sifying grape disease lesions directly in field imagery [ 4]. Despite these advances, most
reported systems rely on cloud servers or GPU-equipped edge devices for inference,
which introduces latency, continuous network dependency, elevated power consump -
tion, and deployment cost -- constraints that are particularly limiting for smallholder
vineyards and remote agricultural regions with unreliable connectivity.
Edge computing has partially mitigated these issues by moving inference closer to the
data source, using platforms such as smartphones, Raspberry Pi boards, or embedded
GPUs [5]. These platforms still demand comparatively high power budgets and hardware
cost, limiting their suitability for always-on, battery-powered vineyard monitoring at
scale. TinyML -- the practice of deploying compact, quantized neural networks directly
on microcontroller-class hardware -- can reduce storage and computational require -
ments [6]; however, the latency, memory use, and energy consumption actually obtained
depend on the target hardware and inference runtime and must be measured on the
intended device. TinyML has already been demonstrated for maize and rice leaf disease
detection on microcontroller hardware [ 7, 8], and resource-optimized CNNs have been
reported for rice disease classification on ARM Cortex-M processors [ 8]. Figure 1 con-
trasts the conventional cloud-centric pipeline with the intended on-device pipeline pro -
posed in this work.
Despite the growing body of TinyML research in plant pathology, existing grape-spe -
cific studies overwhelmingly emphasize model accuracy on curated benchmark datasets
[1, 2, 4], with comparatively little attention paid to end-to-end system integration: com -
munication, resource profiling, and field-deployable IoT alerting. Few works quantify the
inference latency, memory footprint, or energy implications of deploying grape disease
classifiers on microcontroller-class hardware, and fewer still couple on-device inference
with a lightweight communication layer suitable for continuous vineyard monitoring [ 7,
8].
To close this gap, this paper presents TinyGrapeNet-IoT, a TinyML-oriented frame -
work for grape leaf disease classification. The framework combines a compact, depth -
wise-separable CNN (TinyGrapeNet) with a proposed IoT reporting design in which a
microcontroller-class node would perform inference and transmit only compact diag -
nostic messages -- rather than raw imagery -- through a lightweight MQTT-based
Page 3 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Fig. 1 Conceptual comparison of conventional cloud-based grape leaf disease detection pipelines and the pro -
posed TinyGrapeNet-IoT on-device framework. The microcontroller and camera components depict the intended
target hardware; they were not physically evaluated. The latency and model-size figures reported in this study were
obtained with a CPU-based software proxy on general-purpose hardware (see Sect. 5.8)
Fig. 2 TinyGrapeNet-IoT inference and analytics pipeline (conceptual workflow). Only the classifier and the mes -
sage layer were evaluated in software; hardware deployment and energy use were not evaluated. Data augmenta-
tion is shown as a pipeline option and was disabled for the reported results (Sect. 4.2)
communication layer. In this study, the classifier, its INT8 conversion, and the message
layer were evaluated in software on general-purpose hardware; the microcontroller node
itself was not built. Figure 2 summarizes the intended inference and analytics pipeline.
The key contributions of this work are as follows:
• Design of TinyGrapeNet, a lightweight, TinyML-compatible convolutional neural
network for grape leaf disease classification, built from depthwise separable
convolutions, batch normalization, and global average pooling to minimize
parameter count and memory footprint.
• Proposal of an IoT-enabled system architecture in which image acquisition,
inference, and lightweight wireless transmission of compact diagnostic messages are
intended to run on a microcontroller-class node for field-level vineyard monitoring;
the architecture is a design and was not implemented in hardware [9].
Page 4 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
• An experimental evaluation -- classification accuracy, class-wise metrics with
confidence intervals, feature-space visualization, a duplicate and same-leaf leakage
audit with a leaf-grouped re-evaluation, software-proxy latency, model size and
an INT8 operator audit after quantization, comparison against MobileNetV2,
MobileNetV3-Small, and EfficientNet-B0 baselines, and an ablation study across
architectural variants -- together with the training notebook used to produce the
reported figures (see Data Availability).
1.1 Novelty and contribution
Unlike prior grape leaf disease studies that primarily benchmark backbone architectures
on held-out test splits [1, 2, 4], TinyGrapeNet-IoT is conceived as a deployment-oriented
design: the model architecture, training procedure, and quantization strategy are cho -
sen with the constraints of microcontroller-class hardware in mind, and the evaluation
reports model size, a software-proxy latency, an analytical activation-memory bound,
and message overhead alongside classification accuracy. The framework additionally
proposes an IoT communication layer, so that the intended pipeline runs from leaf image
capture to farmer-facing alerting rather than ending at an isolated classifier [ 10]. The
contribution relative to prior TinyML agricultural studies [7, 8, 11] is threefold: (i) it tar-
gets grapevine leaf disease, whereas the TinyML studies identified in this work address
maize and rice; (ii) it evaluates the quantized model, its proxy latency, and its message
overhead under one software protocol, and compares them with three INT8-quantized
baselines converted with the same recipe; and (iii) it reports multi-seed variance, a leak -
age audit with a leaf-grouped re-evaluation, and documented limitations (Sect. 5.8). The
study does not claim hardware validation: microcontroller deployment is the intended
target and remains future work.
This deployment-oriented emphasis distinguishes TinyGrapeNet-IoT from accuracy-
centric benchmarking studies and aligns it with the small but growing body of TinyML
agricultural systems that report resource-oriented evaluation [ 7, 8, 11], while extending
that line of work to grapevine disease surveillance specifically.
The remainder of this paper is organized as follows. Section 2 reviews related work
on cloud-based, edge-based, and TinyML-based plant and grape leaf disease detection.
Section 3 describes the proposed system architecture. Section 4 presents the method -
ology, including dataset description, pre-processing, model architecture, training strat -
egy, mathematical formulation, and the intended deployment target. Section 5 reports
experimental results and discussion. Section 6 concludes the paper, including a discus -
sion of limitations and future work.
2 Related work
Automated grape and general plant leaf disease detection research can be broadly
grouped into cloud-based deep learning systems, edge-computing approaches, and
TinyML-based microcontroller implementations. This section reviews each category
and identifies the gaps motivating the proposed TinyGrapeNet-IoT framework.
2.1 Cloud-based and backbone-benchmarking approaches to grape leaf disease detection
Cloud- and workstation-GPU-based approaches dominate the grape leaf disease lit -
erature, largely because the PlantVillage benchmark makes large-scale CNN and
Page 5 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
vision-transformer comparisons straightforward. Kunduracioglu and Pacal fine-tuned
fourteen CNN and seventeen vision-transformer architectures on the PlantVillage grape
subset (black rot, esca, leaf blight, and healthy) together with a separate grapevine-vari -
ety dataset, reporting that four models reached 100% accuracy on both benchmarks [ 2].
A systematic comparison of CNN, EfficientNet, and MobileNetV2 on the same four-class
PlantVillage grape subset found that EfficientNet achieved 100% accuracy, MobileNetV2
achieved 98%, and a plain CNN baseline achieved 78%, highlighting the sensitivity of
grape disease classification performance to backbone choice [ 1]. Too et al. compared
fine-tuned deep architectures for plant disease identification on a public benchmark
[12]. Earlier foundational work established the broader viability of deep CNNs for plant
disease recognition: Sladojevic et al. trained a Caffe-based CNN to classify thirteen plant
diseases with 96.3% accuracy [ 13], while Mohanty et al. demonstrated that deep CNNs
trained end-to-end on the full PlantVillage dataset could match expert-level diagnostic
accuracy across 38 crop-disease categories [ 5]. Kamilaris and Prenafeta-Boldu’s sur -
vey further consolidated evidence that deep learning consistently outperforms classical
machine-learning pipelines across agricultural imaging tasks [14].
While these studies establish that grape leaf disease symptoms are highly separable in
deep feature space, nearly all evaluations assume unconstrained compute -- workstation
GPUs or cloud servers -- and do not report inference latency, memory footprint, or fea -
sibility of on-device deployment, which limits their direct applicability to field-deployed,
battery-powered vineyard monitoring.
2.2 Edge-based and real-time detection approaches
A smaller body of work targets edge or near-real-time deployment. Xie et al. proposed
Faster DR-IACNN, a Faster R-CNN-based detector enhanced with Inception and SE-
block modules, achieving 81.1% mAP at approximately 15 frames per second on a
purpose-built grape leaf disease dataset (GLDD), demonstrating that real-time detec -
tion of multiple, small, densely distributed lesions is feasible with moderately powerful
hardware [ 4]. More broadly, lightweight backbones such as MobileNet were designed
to reduce computation and model size for mobile and embedded vision [ 15], and the
integer-only quantization scheme of Jacob et al. [ 16] provides the INT8 inference path
used in the present work.
However, these edge-based systems typically still rely on single-board computers or
embedded GPUs with power budgets on the order of several watts, which constrains
their use for continuous, battery-powered monitoring across large or remote vineyard
areas.
2.3 TinyML and microcontroller-based approaches
TinyML deploys compact, quantized neural networks on resource-constrained micro -
controllers, where the latency, memory use, and energy consumption obtained depend
on the target hardware and runtime and must be measured on the intended device [ 6].
Elhanashi et al. surveyed recent advances in TinyML, highlighting its suitability for IoT-
enabled sensing applications and identifying model compression and quantization as key
enabling techniques [ 6]. Within agriculture, Gookyi et al. compared TinyML platforms
and used them for maize leaf disease identification on microcontroller hardware [7], and
an IoT-based TinyML system for real-time rice leaf disease detection has been reported
Page 6 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
by one of the present authors [ 11]. For rice, resource-optimized CNNs have also been
implemented for ARM Cortex-M microprocessors [ 8], which shows that compact
models can be targeted at this device class. To date, comparable microcontroller-level
TinyML studies specifically targeting grapevine leaf disease detection remain scarce.
Recent rice-disease studies add expectations that are relevant to deployment-oriented
work. Singh et al. combined a ResNet-34 backbone with CBAM attention, confidence
calibration, and a rule-based validator, and reported sensitivity to brightness and blur
perturbations [ 17]; in a separate study, they evaluated rice disease and variety classifi -
cation with accuracy, probability calibration, out-of-distribution detection, and latency,
and treated energy only as a proxy [ 18]. These studies concern rice, use different data -
sets and protocols, and are not accuracy baselines for grape leaf disease; they are cited
because they report calibration, out-of-distribution behavior, and robustness, which
TinyGrapeNet-IoT does not yet measure (Sect. 5.8).
Recent studies have increasingly focused on improving the accuracy, computational
efficiency, interpretability, and real-time applicability of deep-learning-based plant dis -
ease detection. Rathor et al. [ 19] proposed a FusionNet-OptiMLP framework for plant
monitoring in precision agriculture, integrating DenseNet121, ResNet50V2, and a cus -
tomized CNN to extract complementary deep features, followed by a Walrus Optimi -
zation Algorithm (WaOA)-optimized multilayer perceptron classifier. The framework
was evaluated on hydroponically grown lettuce leaf images and achieved 99.42% accu -
racy, demonstrating the potential of feature fusion and metaheuristic optimization for
improving disease classification performance. Statistical validation using ANOVA,
Tukey HSD, and Friedman ranking further supported the reported performance.
Rathor et al. [ 20] subsequently introduced DeepGreen, a real-time deep-learning sys -
tem for smart agriculture monitoring. The study emphasized computationally efficient
plant disease recognition and real-time applicability, reporting that its Conv-7 DCNN
achieved high classification performance together with an inference speed of 112.49
FPS. This work demonstrates the transition from conventional accuracy-oriented plant
disease classifiers toward real-time agricultural monitoring systems. However, such sys -
tems remain primarily based on conventional deep-learning execution environments
rather than microcontroller-class TinyML platforms.
Interpretability and generalization have also become important research directions.
Rathor et al. [ 21] proposed GGMHO.Net, a Generative-GCN Multi-scale Hybrid Opti -
mization Network that combines graph convolutional and multi-scale convolutional
feature extraction with Wasserstein-distance-based feature refinement and SSA-PSO
feature selection. The framework additionally incorporates SHAP to explain model pre -
dictions. On the authors’ lettuce leaf disease dataset, GGMHO.Net achieved a TPR and
F1-score of 0.9981, while also demonstrating competitive performance on lettuce, let -
tuce-NPK, and potato benchmark datasets. Although the model reported resource-ori -
ented metrics such as 5.44 GFLOPs and 29.07 FPS, its architecture remains substantially
more complex than a microcontroller-oriented TinyML classifier.
For lettuce disease classification, Rathor et al. [ 22] developed a seven-layer convolu -
tional neural network (Conv-7 DCNN) for hydroponically grown lettuce. The model
classified bacterial, fungal, and healthy leaf categories and incorporated batch normal -
ization, dropout, L2 regularization, and image augmentation to improve generalization.
Conv-7 achieved 97% accuracy, precision, recall, and F1-score, with an MCC of 96%,
Page 7 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
specificity of 99%, and AUC of 1.0, while outperforming several established deep-learn -
ing architectures. The study also highlighted the potential integration of the classifier
with IoT devices for real-time agricultural applications.
Rathor et al. [ 23] further investigated interpretable deep learning under extreme
environmental conditions using a hydroponically cultivated lettuce NPK dataset. Their
CNN-WOPNet framework combined an optimized CNN feature extractor with a Par -
Net attention mechanism, while the Walrus Optimization Algorithm was used for CNN
hyperparameter optimization. The resulting model achieved 99.54% accuracy, 99.60%
precision, 99.61% F1-score, and 99.61% recall, demonstrating that attention mechanisms
and mathematical optimization can improve disease/nutrient-status classification under
challenging cultivation conditions. The study also incorporated LIME-based interpreta -
tion to improve the transparency of model predictions.
Collectively, these recent studies demonstrate a clear evolution in plant disease intel -
ligence from conventional CNN classification toward feature fusion, metaheuristic
optimization, attention mechanisms, explainable AI, and real-time monitoring. Nev -
ertheless, most of these approaches prioritize classification performance and com -
putational efficiency on workstation- or GPU-oriented environments. They do not
specifically address the combined constraints of microcontroller memory, INT8 quan -
tization, embedded inference latency, and low-bandwidth communication for grape -
vine disease monitoring. In contrast, TinyGrapeNet-IoT adopts a deployment-oriented
design in which the CNN architecture, quantization procedure, inference pathway, and
IoT communication mechanism are considered jointly. This distinction is particularly
important for continuous vineyard monitoring in remote or connectivity-constrained
environments.
Accuracy figures in the studies above are not directly comparable with those reported
here. They differ in dataset, class set, split procedure (image-level or leaf-level), model
size, latency protocol, quantization, and field validation, and several of these are not
reported. Among the grape studies, none of those reviewed reports INT8 model size
or CPU latency, and none reports whether images of the same leaf were kept within
one partition. Among the TinyML studies, the maize and rice systems target microcon -
trollers but address other crops, and the rice studies by Singh et al. address calibration
and robustness without a microcontroller deployment. TinyGrapeNet-IoT is therefore
positioned as a grape-specific, proxy-evaluated design whose hardware deployment, cal -
ibration, interpretability, and field robustness remain to be demonstrated.
2.4 Research gaps and motivation
Three gaps emerge from this review. First, the substantial body of grape-specific deep
learning research emphasizes backbone benchmarking under unconstrained compute [1,
2, 4], with little evaluation of latency, memory footprint, or on-device feasibility. Second,
TinyML-based agricultural disease detection has been demonstrated for several crops
-- maize and rice -- but not, to the same extent, for grapevine leaf disease, leaving open
whether comparable accuracy can be retained under microcontroller-class resource con-
straints for this crop’s disease symptom set. Third, few works integrate TinyML inference
with a lightweight IoT communication layer to support continuous, field-level vineyard
monitoring end-to-end, rather than treating classification as an isolated task.
Page 8 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
TinyGrapeNet-IoT is proposed to address these gaps by combining a purpose-built,
depthwise-separable CNN for grape leaf disease classification with an explicit microcon-
troller deployment pathway (post-training INT8 quantization, software-proxy latency,
and an analytical activation-memory bound) and a lightweight MQTT-based IoT com -
munication layer, evaluated in software as a single pipeline rather than as an isolated
classifier. Table 1 situates the proposed framework relative to representative prior work.
3 System architecture
The proposed TinyGrapeNet-IoT system architecture is intended to enable grape leaf
disease detection through an edge-resident TinyML pipeline integrated with lightweight
IoT communication. The architecture is edge-centric by design: latency-sensitive com -
putation -- image pre-processing, feature extraction, and disease classification -- is
intended to execute locally on a resource-constrained embedded platform. This design
is meant to reduce latency and power consumption and to remove the dependency on
continuous cloud connectivity that characterizes conventional cloud-based grape dis -
ease detection pipelines. In this study, the architecture is a design proposal; the classifier
and the message layer were evaluated in software (Sect. 5.8).
The architecture begins with a data-acquisition layer, comprising an embedded cam -
era module that captures grape leaf images directly in the vineyard. Captured images
pass to a pre-processing layer, where lightweight resizing and normalization standardize
the input while preserving disease-relevant visual patterns such as lesion color, texture,
and shape. The pre-processed image is then passed to TinyGrapeNet, a compact convo -
lutional neural network optimized for TinyML deployment, which is designed to per -
form feature extraction and classification within the memory and computation limits of
microcontroller-class hardware.
Following local inference, the intended system produces a diagnostic output consisting
of the predicted disease label (black rot, esca, leaf blight, or healthy) and an associated
confidence score. Rather than transmitting raw image data, only this compact diagnostic
message is forwarded to the application layer, reducing communication overhead. The
architecture is designed to interface with a mobile or web dashboard where predictions,
historical records, and alerts are displayed, enabling growers and vineyard managers to
respond promptly to emerging disease pressure.
Overall, the architecture combines embedded intelligence with efficient data commu -
nication, with the aim of providing a low-bandwidth design that limits the exposure of
raw leaf images. Because inference would occur entirely at the edge, the intended system
would remain functional under intermittent or absent network connectivity, addressing
one of the principal limitations of cloud-based grape disease detection systems reviewed
in Sect. 2. Figure 3 illustrates the overall architecture of the proposed TinyGrapeNet-
IoT framework, comprising four functional layers: (i) data acquisition, (ii) image prepro -
cessing, (iii) embedded TinyML inference and MQTT-based communication, and (iv)
application-layer disease monitoring and alert generation. The architecture is designed
to perform all disease classification locally on the embedded device and to transmit only
compact diagnostic messages; this design has not been implemented on microcontroller
hardware.
Page 9 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Table 1 State-of-the-art comparison of grape / plant leaf disease detection approaches
Ref. Year Model / approach Dataset Deployment
type
Key
features
Limitations
[1] 2025 CNN / EfficientNet / Mobile-
NetV2 comparison
PlantVillage
(grape)
Workstation /
Cloud
Backbone
benchmark-
ing, high
accuracy
No latency
or footprint
evaluation
[2] 2024 14 CNNs + 17 ViTs
fine-tuned
PlantVil-
lage + Grapevine
Cloud / GPU Broad
architecture
comparison;
four models
reached
100%
accuracy
GPU-class
compute
assumed
[4] 2020 Faster DR-IACNN (Faster
R-CNN + Inception/SE)
Custom GLDD Edge-GPU Real-time
multi-lesion
detection, 15
FPS
Requires
GPU-class
hardware
[8] 2024 Resource-optimized CNN Rice leaf dataset Microcon-
troller (ARM
Cortex-M)
TinyML
deployment,
low latency
Crop-spe-
cific (rice),
no IoT layer
[7] 2024 TinyML platform com-
parison and deployment for
maize leaf disease
Maize leaf dataset Microcontroller TinyML
platform
comparison
on a maize
task
Maize only;
not a grape
study
[17] 2026 ResNet-34 + CBAM atten-
tion, calibration, rule-based
validator
Rice disease
images
Not a micro-
controller study
Calibration,
attention,
rule-aware
explanation;
reported
sensitivity to
brightness
and blur
Rice; not
a grape
or TinyML
study
[18] 2026 Multi-objective Big Bang
Big Crunch framework
Paddy Doctor
(rice)
Software
evaluation with
latency and an
energy proxy
Calibration,
out-of-
distribution
detection,
latency
Rice; not
a grape
study;
energy not
measured
Pro-
posed
(this
work)
2026 TinyGrapeNet-IoT PlantVillage
(grape)
CPU proxy
evaluation
for intended
microcon-
troller + IoT
deployment
Compact
depthwise-
separable
CNN, INT8
conver-
sion, proxy
latency
and size,
analytical
activation-
memory
bound,
ablation
study,
leakage
audit, MQTT
message
test over
a public
broker
No physical
micro-
controller,
TFLM arena,
or energy
measure-
ment; in-
distribution
laboratory
data; four
grape
classes
Bold formatting highlights the proposed TinyGrapeNet-IoT framework, distinguishing it from existing grape and plant leaf
disease detection approaches to emphasize its contributions and comparative evaluation
Page 10 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Fig. 3 System architecture of the proposed TinyGrapeNet-IoT framework for grape leaf disease detection. This
diagram depicts the intended embedded hardware architecture, which was not physically evaluated; the deploy-
ment metrics in this study were obtained with a software proxy (see Sect. 5.8). The ‘real-time’ , ‘on-device’ , and
‘energy efficient’ labels in the figure denote design goals and not measured properties
Table 2 Image acquisition and dataset characteristics for the grape leaf dataset
Parameter Description
Source PlantVillage dataset, grape subset (Kaggle distribution)
Image Resolution (Original) 256 × 256 pixels, RGB
Image Resolution (Model Input) Resized to 112 × 112 pixels during pre-processing
Acquisition Conditions Leaves photographed against a plain background under
controlled studio lighting
Classes Black Rot, Esca (Black Measles), Leaf Blight (Isariopsis Leaf
Spot), Healthy
Total Images 4,062
Data Split 80% training, 10% validation, 10% testing (stratified by class)
4 Methodology
This section describes the end-to-end methodology underlying the TinyGrapeNet-IoT
system: dataset preparation, data pre-processing, the TinyGrapeNet architecture, train -
ing and optimization strategy, the mathematical formulation of the framework, the
intended deployment target and model conversion, and the intended inference and IoT
integration pathway. The goal is to design a model suited to microcontroller-class hard -
ware under strict memory, computation, and power constraints, and to characterize it
with software-proxy measurements.
4.1 Dataset description
This study uses the grape leaf subset of the PlantVillage dataset, obtained via its Kaggle
distribution, which provides an easy-to-download, pre-organized version of the dataset
widely used in plant disease research [ 24, 25]. The subset comprises four classes: Black
Rot, Esca (Black Measles), Leaf Blight (Isariopsis Leaf Spot), and healthy leaves, total -
ing 4,062 images, counted directly from the downloaded copy of the dataset used in
this study. The colour-image version of the Kaggle distribution was used (as opposed to
Page 11 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Table 3 Class-wise distribution of the grape leaf dataset
Class name No. of images
Black Rot 1,180
Esca (Black Measles) 1,383
Leaf Blight (Isariopsis Leaf Spot) 1,076
Healthy 423
Total 4,062
Fig. 4 Representative grape leaf images from the PlantVillage grape subset (test partition): a Black Rot, b Esca
(Black Measles), c Leaf Blight (Isariopsis Leaf Spot), d Healthy
the grayscale or segmented variants also bundled in that distribution); the images were
screened for exact duplicates, near-duplicates, and same-leaf overlap between partitions,
as described in Sect. 4.1.1. Table 2 summarizes the image acquisition characteristics of
the source dataset, and Table 3 reports the class-wise image distribution used in this
study.
An input resolution of 112 × 112 pixels was selected to balance feature preservation,
computational efficiency, memory consumption, and inference cost on embedded
hardware.
Table 8 compares the input resolutions considered (96 × 96, 112 × 112, and 224 × 224
pixels) in terms of MAC operations, analytical peak INT8 activation memory, and proxy
latency measured on a single host under the same protocol (Sect. 5.5). The parameter
count does not depend on the input resolution because the network ends in global aver -
age pooling. Classification accuracy at 96 × 96 and 224 × 224 was not evaluated in this
study, so Table 8 supports the choice of 112 × 112 only on computation and memory
grounds and not on accuracy.
Table 3 reports the number of images per disease category, counted directly from the
authors’ downloaded copy of the PlantVillage grape subset [ 25] rather than taken from
a secondary literature source. Note that the dataset is moderately imbalanced, with the
healthy class comprising roughly one-third the images of the other classes; class weight -
ing during training (Sect. 4.4) is used to mitigate the effect of this imbalance on clas -
sification performance. Figure 4 shows one test image per class taken from the dataset
itself. The leaves are photographed individually against a uniform background with fixed
framing, and the lesions that distinguish the diseased classes differ in shape, color, and
margin, whereas healthy leaves are uniformly green. The same uniform background and
framing make the benchmark easy in-distribution and limit what the reported accuracy
says about field images (Sect. 5.8) (Table 4).
To assess the stability of model performance under the moderate dataset size, a strati -
fied 5-fold cross-validation protocol is additionally adopted, in which the dataset is par -
titioned into five folds while preserving class proportions, and each fold is iteratively
Page 12 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Table 4 Duplicate, near-duplicate, and same-leaf screening of the grape subset
Screening step Result
Exact duplicates (identical SHA-256), 4,062 images 0 pairs
Near-duplicates, 256-bit difference hash, Hamming distance of at most 24 0 pairs
Near-duplicates, 64-bit perceptual hash, distance of at most 2 / 4 / 6 3 / 5 / 68 pairs (of which between
training and test partitions: 0 / 1
/ 10)
Diseased test images with an image of the same leaf in the training
partition
364 of 365 (99.7%)
Diseased validation images with an image of the same leaf in the training
partition
360 of 363
Diseased leaves whose images fall in more than one partition 536 of 910 (295 Black Rot, 346 Esca,
269 Leaf Blight leaves)
Leaf-grouped split (training / validation / test) 3,239 / 411 / 412 images from 1,017
groups; no group in two partitions
Table 5 Cross-validation performance stability
Fold Accuracy (%) Precision (%) Recall (%) F1-Score (%)
Fold-1 98.52 98.53 98.52 98.52
Fold-2 90.16 92.38 90.16 90.05
Fold-3 97.41 97.57 97.41 97.42
Fold-4 97.41 97.55 97.41 97.41
Fold-5 97.54 97.61 97.54 97.54
Mean 96.21 96.73 96.21 96.19
Standard deviation +/−3.05 (population) +/−2.21 (population) +/−3.05 (population) +/−3.10 (population)
Bold values indicate the mean performance metrics (Accuracy, Precision, Recall, and F1-Score) calculated across the five
cross-validation folds
held out for testing while the remaining folds are used for training. Performance metrics
are averaged across folds to reduce sampling bias. The folds were generated by stratified
5-fold splitting (shuffled, random seed 42) over all 4,062 images. Each fold was trained
for up to 60 epochs with an initial learning rate of 0.001; because no separate validation
subset was held out inside a fold, learning-rate reduction and early stopping monitored
the training loss. Every image is in the test fold exactly once and therefore in the training
portion of the other four folds. The images of the primary test partition are consequently
used for training in four of the five folds, so the cross-validation is not isolated from the
primary test set and is not independent evidence. Table 5 reports the cross-validation
results (Tables 6, 7, 8, 9).
The 80:10:10 train/validation/test split described above is the primary evaluation pro -
tocol used for all headline results reported in this manuscript (Tables 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21 and 22). The 5-fold cross-validation reported in Table 5 is a
supplementary stability check performed on the same data using a different partitioning
scheme. In the primary runs, early stopping and learning-rate reduction used the valida -
tion partition, and the test partition was used only for final evaluation; the INT8 calibra -
tion step is the one exception and is described in Sect. 4.6.1.
The reported standard deviations are population statistics (ddof = 0). For reference,
the sample standard deviation (ddof = 1), which is the more conventional convention for
a 5-observation estimate, is +/−3.41 for accuracy (vs. +/−3.05 population); the corre -
sponding sample SD for the +/−1.77 figure reported for TinyGrapeNet’s five-seed accu -
racy in Table 8 is +/−1.98.
Page 13 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Table 6 Detailed architectural configuration of TinyGrapeNet
Layer Layer type Kernel /
stride
Filters Output
dimension
Design purpose
1 Standard Conv2D 3 × 3 / 2 16 56 × 56 × 16 Initial spatial feature extraction,
early downsampling
2 DS-Conv Block 3 × 3 / 1 32 56 × 56 × 32 Lightweight local feature extraction
3 DS-Conv Block 3 × 3 / 2 64 28 × 28 × 64 Downsampling with minimal
computation
4 DS-Conv Block 3 × 3 / 1 64 28 × 28 × 64 Feature refinement
5 DS-Conv Block 3 × 3 / 2 128 14 × 14 × 128 Downsampling, deeper features
6 DS-Conv Block 3 × 3 / 1 128 14 × 14 × 128 Feature refinement
7 DS-Conv Block 3 × 3 / 2 256 7 × 7 × 256 Downsampling, high-level features
8 Global Average
Pooling
-- – 1 × 1 × 256 Parameter reduction, overfitting
control
9 Dropout (0.3) -- – 1 × 1 × 256 Regularization
10 Dense (Softmax) -- 4 classes 4 Final multi-class classification
(DS-Conv Block = depthwise separable convolution followed by batch normalization and ReLU, then a 1 × 1 pointwise
convolution, batch normalization, and ReLU, as formalized in Sect. 4.5.)
Table 7 Parameter and MAC-Operation Comparison for the Full Model and Ablation Variants
(computed from Table 6)
Variant Trainable
params
Non-trainable
params (BN)
Total params MAC op-
erations
(mil-
lions)
TinyGrapeNet (full model, DS-conv) 71,588 2,240 73,828 15.72
Without Batch Normalization 70,468 0 70,468 15.72
Without Depthwise-Separable Convolution
(Standard Conv)
578,836 1,376 580,212 116.96
Width Multiplier x0.5 19,796 1,120 20,916 4.65
Width Multiplier x0.25 6,092 576 6,668 2.07
Table 8 Input-resolution analysis: parameters, MACs, peak activation memory, and proxy latency
Input
resolution
Parameters MACs
(millions)
Peak INT8 activation
(input + output of one
operator)
Proxy latency,
revision host
(ms, mean /
median)
Test
accuracy
96 × 96 73,828 11.55 110,592 bytes (108.0 KB) 1.49 / 1.45 Not evaluated
112 × 112
(adopted)
73,828 15.72 150,528 bytes (147.0 KB) 2.24 / 2.06 96.56% (FP32,
representa-
tive run)
224 × 224 73,828 62.90 602,112 bytes (588.0 KB) 8.71 / 7.75 Not evaluated
Fold 2 (90.16% accuracy) is a clear outlier relative to the other four folds (97.41–
98.52%), consistent with the substantial run-to-run training variance documented for
this architecture throughout this manuscript (see Table 8 note and Limitations); it is
retained.
Figure 5 gives the processing flow of the framework, from image acquisition and pre-
processing through TinyGrapeNet inference to message creation, MQTT transmission,
and dashboard alerting. The left branch corresponds to the classifier described in Sect.
4.2 to 4.5, and the right branch to the intended IoT layer of Sects. 3 and 4.7. Three ele-
ments of the figure describe design intent and not the evaluated configuration: the noise-
reduction and augmentation steps listed in the pre-processing block were not applied
for the reported results (Sect. 4.2), the camera module is an example of the intended
Page 14 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Table 9 Proxy INT8 latency of the ablation variants measured on one host
Variant Parameters MACs (millions) INT8 file size
(KB)
Proxy latency, re-
vision host (ms:
mean / median /
95th percentile)
TinyGrapeNet (full model) 73,828 15.72 104.9 2.24 / 2.06 / 3.16
Without Batch Normalization 70,468 15.72 104.1 2.04 / 2.01 / 2.23
Standard convolution 580,212 116.96 587.1 4.02 / 3.55 / 6.18
Width multiplier x0.5 20,916 4.65 41.4 1.05 / 1.02 / 1.18
Width multiplier x0.25 6,668 2.07 21.6 0.74 / 0.68 / 1.12
The variants were built with untrained weights and converted to INT8 with the same converter settings; latency does not
depend on the weight values. All rows were measured on the revision host of Table 6 with the full model as reference, so
the ratios between rows are meaningful, and the file sizes of these untrained-weight conversions differ slightly from the
108.4 KB of the trained model, whereas the absolute values differ from the notebook latency of Table 10(3.46 ms), which
was measured on an unrecorded host
Table 10 Training and optimization parameters
Parameter Value
Optimizer Adam
Initial Learning Rate 0.0005
LR Schedule Reduce on plateau, monitored on validation loss (factor 0.5, patience 6 epochs)
Loss Function Categorical Cross-Entropy (class-weighted)
Batch Size 32
Max Epochs 80 (early stopping on validation loss, patience 15 epochs, best weights restored)
Data Augmentation Disabled for reported results (Sect. 4.2)
Regularization Dropout (0.3), Batch Normalization
Quantization Type Post-training INT8 (representative-dataset calibrated; Sect. 4.6.1)
Table 11 Execution environment and training cost
Item Value
Primary training runs (Tables 10,
11, 12, 13, 14, 15, 16, 17, 18, 19,
20 and 21)
Google Colab, GPU runtime (GPU model, CUDA and cuDNN versions not re-
corded); TensorFlow 2.20.0; Python 3.12; seeds 42, 123, 7, 2024, 99; determinis-
tic operations enabled
TinyGrapeNet training cost
(representative run)
Stopped at epoch 45 (maximum 80); about 6.5 s per epoch; about 292 s in
total
Baseline training (frozen back-
bone, then fine-tuning)
MobileNetV2: 31 epochs (16 + 15), about 230 s; MobileNetV3-Small: 48 epochs
(40 + 8), about 239 s; EfficientNet-B0: 55 epochs (40 + 15), about 362 s
Latency benchmark of
Tables 18 and 19
Same Colab runtime; TensorFlow Lite interpreter of TensorFlow 2.20.0;
reference-kernel value with default delegates disabled, secondary value with
XNNPACK; 50 invocations on one test image, perf_counter, no warm-up; CPU
model, clock speed, thread count, and operating-system version not recorded
Revision-host measurements
(Tables 8, 9, 13, 15)
Intel Xeon processor at 2.80 GHz, 2 cores (1 thread per core), Ubuntu 24.04,
Python 3.13, TensorFlow 2.21.0, scikit-learn 1.9.1; CPU-only training at about
30 s per epoch; latency with 20 warm-up and 500 timed invocations, del-
egates disabled, one interpreter thread
hardware, and the ‘Energy Efficient’ label denotes a design goal because energy was not
measured.
4.1.1 Split construction, duplicate screening, and same-leaf overlap
The primary split is image-level: the file list is sorted, and train_test_split stratified by
class produces the 80:10:10 partitions of 3,249, 406, and 407 images with a fixed random
seed (42); the notebook asserts that no file appears in two partitions. No grouping by
source leaf or acquisition session was applied, and no duplicate removal was performed
before splitting. The split was reproduced from this procedure; the released model
Page 15 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Table 12 FP32 and INT8 quantized model comparison
Metric FP32 INT8
Accuracy (%) 96.56 95.33
Precision (%) 96.74 95.72
Recall (%) 96.56 95.33
F1-score (%) 96.55 95.33
Model size 0.28 MB 108.4 KB
Representative Dataset – Held-out test im-
ages (407) in the
executed notebook;
re-converted model
with training-image
calibration: 95.58%
(Sect. 4.6.1)
Table 13 INT8 graph audit of the re-converted TinyGrapeNet model
Item Result
Operators 16: 7 CONV_2D, 6 DEPTHWISE_CONV_2D, 1 MEAN (glob-
al average pooling), 1 FULLY_CONNECTED, 1 SOFTMAX
Tensor types int8 and int32 only (int32 = biases); no float32 tensors
Model input / output int8 / int8
Peak input + output activation of one operator 150,528 bytes (147.0 KB), Layer 2 pointwise CONV_2D
Serialized size of the re-converted model 112.1 KB: INT8 weights about 69.3 KB, int32 biases about
4.5 KB, per-channel scales and zero-points about 13.5 KB,
FlatBuffer structure about 25 KB (by subtraction)
Test accuracy of the re-converted model 94.84% with test-image calibration (386 of 407); 95.58%
with 200 stratified training images (389 of 407)
Table 14 Overall classification performance of TinyGrapeNet (Test Set)
Metric Value (%)
Accuracy 95.04 +/− 1.77 (primary; five-run mean)
Precision (Weighted) 95.08 +/− 1.75 (primary; five-run mean)
Recall (Weighted) 95.04 +/− 1.77 (primary; five-run mean)
F1-Score (Weighted) 95.04 +/− 1.77 (primary; five-run mean)
Specificity 98.80 (secondary; single representative run)
Matthews correlation coefficient (MCC) 0.9525 (secondary; single representative run)
Cohen’s Kappa score 0.9520 (secondary; single representative run)
Area under ROC curve (AUC) 0.9994 (secondary; single representative run)
Accuracy, weighted precision, weighted recall, and weighted F1-score are reported as mean +/− standard deviation across
five independent training runs (random seeds 42, 123, 7, 2024, 99) on the same fixed train/validation/test split, to account
for run-to-run training variance in this small-model, small-dataset setting. Individual-run accuracies ranged from 92.63%
to 98.03% (seed 7 reaching the highest value, seed 99 the lowest). Specificity, Matthews Correlation Coefficient, Cohen’s
Kappa, and AUC were computed from one representative training run (test accuracy 96.56%, within the observed range
above but not equal to any of the five listed per-seed values), the same run used for the confusion matrix (Fig. 7), t-SNE
visualization (Fig. 8), and INT8 quantization (Table 12); these secondary metrics were not recomputed across all five seeds,
which is why they are marked as such and are not reported with a standard deviation
weights evaluated on the reproduced test partition give exactly the confusion matrix
of Table 9, which confirms that the reproduced partitions are those used in the experi -
ments. The partitions were then audited for duplicates and for same-leaf overlap.
Table 3 summarizes the audit. No exact duplicates (identical SHA-256 digests) were
found among the 4,062 images, and no near-duplicate pairs were found with a 256-bit
difference hash at a Hamming distance of up to 24. A 64-bit perceptual hash flagged
3 pairs at a distance of at most 2, 5 pairs at most 4 (one of them between the training
and test partitions), and 68 pairs at most 6 (ten between training and test). The more
Page 16 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Table 15 TinyGrapeNet test accuracy on the image-level split and on the leaf-grouped split
Protocol Seeds Per-seed test accuracy (%) Mean +/− SD
(%)
Test
images
Image-level split, Colab runs (Table 14) 42, 123, 7,
2024, 99
95.09, 95.33, 98.03, 94.10,
92.63
95.04 +/− 1.77 407
Image-level split, re-run on revision host 42 97.30 single run 407
Leaf-grouped split, revision host 7, 42, 99,
123, 2024
96.84, 98.30, 91.99, 95.87,
98.79
96.36 +/− 2.42 412
Mean +/− standard deviation are population statistics (ddof = 0), as in Table 14. The image-level Colab runs are those of
Table 14. The re-run of the image-level split on the revision host (TensorFlow 2.21.0, CPU) and the leaf-grouped runs used
the same recipe as Sect. 4.4. For the leaf-grouped split, the Healthy class has no official leaf metadata and was grouped
with a proxy (Sect. 4.1.1)
Table 16 Class-wise performance analysis (test set)
Disease class Precision (%) Recall (%) F1-Score (%) Support (n)
Black Rot 92.06 98.31 95.08 118
Esca (Black Measles) 100.00 96.40 98.17 139
Leaf Blight (Isariopsis Leaf Spot) 96.40 99.07 97.72 108
Healthy 100.00 85.71 92.31 42
Weighted Average 96.74 96.56 96.55 407
Table 17 Confusion matrix of the representative run on the test partition (rows: true class; columns:
predicted class)
True \ predicted Black rot Esca Leaf blight Healthy Total
Black Rot 116 0 2 0 118
Esca 5 134 0 0 139
Leaf Blight 1 0 107 0 108
Healthy 4 0 2 36 42
Total 126 134 111 36 407
Table 18 Inference and Resource Utilization Measured with the TFLite CPU Interpreter Proxy
Parameter Value
Inference Latency, Reference-Kernel (Mean,
ms)
3.46 (headline; consistent across all four compared models)
Inference Latency, XNNPACK-Accelerated
(Mean, ms)
1.07 (secondary; not available on Cortex-M TFLM targets)
Inference Latency, XNNPACK-Accelerated
(95th Percentile, ms)
1.16
Quantized Model Size / Flash (KB) 108.4
Peak Tensor-Arena / RAM (KB) Not measured with TFLM; analytical lower bound 147.0 KB
(150,528 bytes; Sect. 4.6.2)
Total Parameters 73,828 (71,588 trainable + 2,240 non-trainable BN statistics)
Quantization Format INT8 (Post-Training Quantization)
Deployment Framework (as evaluated) TensorFlow Lite CPU interpreter (deployment-oriented soft-
ware proxy)
Hardware Validation None; no physical microcontroller was used
Benchmark Host Google Colab CPU runtime, CPU model, clock, and thread
count not recorded (Table 11)
Energy per Inference Not measured (no same-device power and latency
measurement)
INT8 Operator Coverage 16 operators (7 CONV_2D, 6 DEPTHWISE_CONV_2D, 1 MEAN, 1
FULLY_CONNECTED, 1 SOFTMAX); no float32 tensors (Table 13)
These figures were obtained using the TensorFlow Lite CPU interpreter as a deployment-oriented software proxy on
general-purpose hardware (a Google Colab runtime), not measured on physical microcontroller hardware or using
TensorFlow Lite for Microcontrollers (TFLM). See Sect. 5.8 for the full discussion of this limitation
Page 17 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Table 19 Performance comparison with lightweight architectures
Model Accuracy (%) Model Size
(KB)
Inference La-
tency (ms)
Intended Deploy-
ment Class (not
validated)
TinyGrapeNet (Proposed) 95.33 108.4 3.46 Microcontroller class
(intended)
MobileNetV2 (INT8) 98.53 2,647 27.89 Edge CPU / Edge GPU
MobileNetV3-Small (INT8) 85.26 1,188 4.80 Edge CPU
EfficientNet-B0 (INT8) 98.03 4,800 27.61 Edge GPU
All four models are compared as INT8-quantized TensorFlow Lite models. Latency values are measured with the XNNPACK
acceleration delegate disabled, for a consistent measurement protocol across all four architectures; the XNNPACK delegate
could not be enabled for MobileNetV3-Small or EfficientNet-B0 due to a runtime compatibility crash encountered during
evaluation (see Limitations). For reference, where measurable, XNNPACK-accelerated latency was 1.07 ms for TinyGrapeNet
and 3.76 ms for MobileNetV2 -- substantially faster than the reference-kernel figures reported above -- indicating that
hardware-accelerated deployment, where available, would likely reduce all four latencies further, though not necessarily
by the same proportion for every architecture. The reference-kernel latency (3.46 ms for TinyGrapeNet) is the headline
figure used throughout this manuscript, since it is the only measurement taken under a consistent protocol across all four
architectures and does not rely on an acceleration path unavailable on the target microcontroller class. The CPU model,
clock speed, and thread count of the benchmark host were not recorded (Table 11)
Table 20 Classification performance of TinyGrapeNet variants (validation set)
Variant Accuracy (%) Precision (%) Recall (%) F1-Score (%)
TinyGrapeNet (Full Model) 95.57 95.59 95.57 95.55
Without Batch Normalization 29.06 8.45 29.06 13.09
Without Depthwise-Separable Convolution 98.77 98.77 98.77 98.77
Width Multiplier x0.5 90.64 90.53 90.64 90.51
Width Multiplier x0.25 96.31 96.29 96.31 96.29
Table 21 Classification performance of TinyGrapeNet variants (test set)
Variant Accuracy (%) Precision (%) Recall (%) F1-Score (%)
TinyGrapeNet (Full Model) 96.56 96.74 96.56 96.55
Without Batch Normalization 28.99 8.41 28.99 13.01
Without Depthwise-Separable Convolution 100.00 100.00 100.00 100.00
Width Multiplier x0.5 91.40 91.32 91.40 91.30
Width Multiplier x0.25 96.81 96.79 96.81 96.79
Table 22 Test accuracy with 95% confidence intervals (n = 407)
Model or variant Correct / 407 Accuracy (%) 95% interval (%)
TinyGrapeNet, FP32, representative run 393 / 407 96.56 94.31 to 97.94
TinyGrapeNet, INT8 388 / 407 95.33 92.82 to 96.99
Without Batch Normalization 118 / 407 28.99 24.80 to 33.58
Without depthwise-separable convolution 407 / 407 100.00 99.10 to 100.00 (Clopper-Pearson)
Width multiplier x0.5 372 / 407 91.40 88.27 to 93.75
Width multiplier x0.25 394 / 407 96.81 94.61 to 98.12
MobileNetV2, INT8 401 / 407 98.53 96.82 to 99.32
MobileNetV3-Small, INT8 347 / 407 85.26 81.48 to 88.37
EfficientNet-B0, INT8 399 / 407 98.03 96.17 to 99.00
Intervals are Wilson score intervals [ 32], except for the standard-convolution variant, for which the Clopper-Pearson lower
bound [33] is given because the observed accuracy is 100%. The intervals describe test-set sampling uncertainty only and
not the variance across training runs
important overlap is between images of the same leaf. The PlantVillage repository pro -
vides leaf-grouping metadata for the diseased classes [ 26], in which each diseased leaf
appears in exactly four consecutive image files (295 Black Rot, 346 Esca, and 269 Leaf
Blight leaves). Under the image-level split, 364 of the 365 diseased test images (99.7%)
Page 18 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Fig. 5 Flow diagram of the proposed TinyGrapeNet-IoT grape leaf disease detection framework (intended design;
see the text for the elements that were not part of the evaluated configuration)
have at least one image of the same leaf in the training partition, and 360 of 363 diseased
validation images do as well; 536 of the 910 diseased leaves are spread over more than
one partition. No leaf-grouping metadata is published for the healthy class, so a proxy
was used for it (blocks of four consecutive file numbers within the contiguous number -
ing runs of the healthy files), and the healthy-class grouping is therefore approximate.
Because the same-leaf overlap is nearly complete under the image-level split, the
headline accuracies of Tables 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 and 22 could
Page 19 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
overstate accuracy on unseen leaves. To test this, a leaf-grouped split was constructed
in which all images of a leaf (or proxy group) are assigned to the same partition: 3,239
training, 411 validation, and 412 test images from 1,017 groups, with no group spanning
two partitions. TinyGrapeNet was retrained on this split with the recipe of Sect. 4.4, and
the results are reported in Sect. 5.2 (Table 8). The image-level results are retained as the
primary protocol because every comparative table (Tables 11, 12, 13, 14, 15, 16, 17, 18,
19, 20, 21 and 22) was produced on it; the leaf-grouped results are the check on accuracy
for unseen leaves. The two test partitions contain different images, so the comparison
between them is not paired.
4.2 Data pre-processing
All grape leaf images were resized to 112 × 112 pixels before model training and infer -
ence. This input resolution was selected as a compromise between preserving disease-
specific visual characteristics and reducing computational complexity, memory usage,
and inference latency for TinyML deployment. Pixel values were scaled to the range [0,
1] by dividing by 255; no mean or standard-deviation standardization was applied. Data
augmentation (random horizontal flipping, small-angle rotation, and brightness jitter) is
implemented in the notebook but was disabled (USE_AUGMENTATION = False) for all
reported results. In earlier exploratory runs, enabling augmentation lowered the mea -
sured test accuracy by up to 20% points. A reduction of that size is larger than expected
for label-preserving transformations, and its cause was not isolated in this study. The
reported results therefore reflect training and evaluation on unaugmented images, and
the same pre-processing was used at inference. The augmentation and noise-reduction
steps drawn in Figs. 3 and 5 describe pipeline options and not the configuration behind
the reported numbers.
4.3 TinyGrapeNet architecture
TinyGrapeNet is a compact convolutional neural network designed specifically for
TinyML deployment. The architecture uses a sequence of depthwise separable convo -
lutional blocks, each followed by batch normalization and ReLU activation, to minimize
parameter count and multiply-accumulate (MAC) operations relative to standard con -
volutions. Global average pooling replaces fully connected layers prior to the final clas -
sification head, reducing both memory footprint and overfitting risk on a moderately
sized dataset. A final softmax layer outputs class probabilities over the four grape leaf
categories. Table 6 details the layer-wise architectural configuration.
Table 7 reports parameter and multiply-accumulate (MAC) operation counts com -
puted layer-by-layer from the architectural configuration above, for the full depth -
wise-separable model and for the standard-convolution ablation variant (Sect. 5.9).
Convolutional/depthwise/pointwise layer biases are omitted from the parameter count,
consistent with standard practice when a batch-normalization layer immediately follows
(the BN shift term makes a separate convolution bias redundant); the Dense output layer
retains its bias since no BN follows it. The computation reproduces the total parameter
count of 73,828 (71,588 trainable + 2,240 non-trainable batch-normalization statistics)
exactly and gives approximately 15.72 million MACs per inference for the full model.
Proxy latency for every variant, measured on one host under one protocol, is given in
Table 8 (Sect. 5.9.2).
Page 20 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
The standard-convolution variant requires approximately 7.9x more parameters and
7.4x more MAC operations than the proposed depthwise-separable model, for a valida -
tion accuracy gain of 3.20% points and a test accuracy gain of 3.44% points in single runs
(Tables 20 and 13), which supports the efficiency motivation for the depthwise-separable
design choice discussed in Sect. 5.9.3.
4.4 Training and optimization strategy
TinyGrapeNet is trained end-to-end using the categorical cross-entropy loss, optimized
with the Adam optimizer (initial learning rate 0.0005). Class weighting inversely pro -
portional to class frequency is applied during training to compensate for the moderate
imbalance noted in Table 3 (the healthy class is under-represented relative to the three
disease classes). The learning rate is halved when the validation loss does not improve
for 6 epochs, and training stops when the validation loss has not improved for 15
epochs, with the weights of the best epoch restored; training is limited to 80 epochs.
The primary run used for the representative results stopped at epoch 45. After training,
the floating-point model undergoes post-training INT8 quantization for the intended
microcontroller target. Table 6 summarizes the training and optimization hyperparame -
ters of the primary 80:10:10 runs and corresponds to the accompanying Colab notebook;
the cross-validation runs of Table 4 used the settings stated in Sect. 4.1, and the execu-
tion environment and training cost are listed in Table 6.
4.5 Mathematical model of the proposed TinyGrapeNet-IoT framework
The mathematical formulation below describes the image processing, feature extraction,
classification, and inference operations performed by TinyGrapeNet.
Let an input grape leaf image be represented as.
𝐼𝐼 ∈ 𝑅𝑅 ∧( 𝐻𝐻𝐻𝐻𝐻𝐻𝐻𝐻 𝐻 (1)
where H, W, and C denote image height, width, and number of color channels,
respectively.
During pre-processing, the image is resized and normalized to obtain the input I’ ,
defined as.
𝐼𝐼′ = 𝐼𝐼𝐼𝐼𝐼𝐼 (2)
where I denotes the resized image with 8-bit pixel values from 0 to 255, so that the nor -
malized input I’ lies in [0, 1]. This is the min-max scaling described in Sect. 4.2; no mean
or standard-deviation standardization was applied.
TinyGrapeNet uses depthwise separable convolutions to reduce computational cost.
For the l-th layer, this is performed in two stages. First, depthwise convolution applies a
single filter per input channel:
𝐹𝐹 ∧_𝑙𝑙 = 𝑙𝑙𝑙𝑙𝑙(𝑙𝑙𝑙𝑙(𝐻𝐻 ∧𝑙𝑙(𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙 𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙 - 𝑤𝑤𝑙𝑙𝑤𝑤𝑙𝑙𝐻𝐹𝐹(𝑙𝑙 𝑙 𝑙𝐻𝐻𝐻 (3)
where W^_l denotes the depthwise kernels, BN(.) is batch normalization, phi(.) is the
ReLU activation function, and the operator denotes channel-wise convolution. The dep -
thwise convolution has no bias term because batch normalization follows it.
Second, a 1 × 1 pointwise convolution combines the depthwise outputs into a new fea -
ture space:
Page 21 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
𝐹𝐹 𝑙𝑙 = 𝑙𝑙𝑙𝑙𝑙(𝑙𝑙𝑙𝑙(𝐻𝐻 𝑙𝑙 (𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝐻 𝐹𝐹 ∧𝑙𝑙𝐻𝐻 (4)
where W_l denotes the 1 × 1 kernels, BN(.) is batch normalization, and phi(.) is the ReLU
activation function. The pointwise convolution has no bias term because batch normal -
ization follows it, which is consistent with the parameter count in Table 7.
To reduce model complexity and memory usage, global average pooling (GAP)
replaces fully connected layers. The pooled feature vector g is computed as.
𝑔𝑔_𝑘𝑘 = (𝑙𝐼𝑙𝑙𝐻𝐿𝐿𝐿𝐿𝐿𝐿 (𝑙𝑙 = 𝑙𝐻 ∧𝑙𝑙𝑁𝑁(𝑙𝑙𝑙 𝑘𝑘𝐻 (5)
where f{i, k} is the activation of the k-th feature map at spatial location i, and N is the
total number of spatial elements, given by N = H x W, where H and W denote the height
and width of the feature map produced by the preceding depthwise-separable convolu -
tional block. This operation aggregates spatial information while substantially reducing
the number of trainable parameters.
Final classification is performed with a softmax function estimating the posterior
probability of each grape leaf disease class. For C = 4 classes, the probability of class j is
given by.
𝑗𝑗(𝑦𝑦 = 𝑗𝑗𝑦𝐼𝐼 ′𝐻 = 𝑙𝑙 ∧(𝑧𝑧_𝑗𝑗𝐻𝐼𝐿𝐿𝐿𝐿𝐿𝐿_(𝑙𝑙 = 𝑙𝐻 ∧𝐻𝐻 𝑙𝑙 ∧(𝑧𝑧_𝑙𝑙𝐻 (6)
where z_j is the logit corresponding to class j. The predicted disease label y-hat is
obtained as.
𝑦𝑦 - 𝑙𝑙𝑙𝑎𝑎 = arg max _𝑗𝑗𝑗𝑗 (𝑦𝑦 = 𝑗𝑗 𝑦𝐼𝐼′𝐻 (7)
During training, model parameters are optimized by minimizing the class-weighted cat -
egorical cross-entropy loss:
𝐿𝐿 = 𝑙(𝑙𝐼𝐿𝐿𝐻𝐿𝐿𝐿𝐿𝐿𝐿 _(𝐿𝐿 = 𝑙𝐻 ∧𝐿𝐿 𝐿𝐿𝐿𝐿𝐿𝐿 _(𝑗𝑗 = 𝑙𝐻 ∧𝐻𝐻𝑤𝑤 𝑗𝑗 ⋅ 𝑦𝑦(𝐿𝐿𝑙 𝑗𝑗𝐻 ⋅ log(𝑗𝑗(𝑦𝑦 = 𝑗𝑗 𝑦𝐼𝐼′𝐿𝐿𝐻𝐻 (8)
where y(m, j) is the ground-truth one-hot label of sample m and w_j is the class weight
assigned to class j to compensate for class imbalance; the loss is averaged over the M
samples of a training batch. The Adam optimizer updates network parameters efficiently
under the limited computational budget available during training.
After training, the model undergoes post-training INT8 quantization, converting
floating-point weights and activations to low-precision integer representations for the
intended microcontroller deployment. The quantized model is intended to perform
inference on the target device with lower latency and memory use than the floating-
point model; the benefit on a physical device and the energy consumption were not
measured. In the intended design, the inference output -- predicted disease label and
confidence score -- is transmitted to the IoT layer using a lightweight MQTT protocol,
preserving on-device intelligence while enabling remote monitoring.
4.6 Intended deployment target and model conversion
The proposed TinyGrapeNet-IoT framework was developed with deployment on
resource-constrained microcontrollers as the intended application. The trained model
was converted to TensorFlow Lite (INT8) using post-training quantization and evalu -
ated with the TensorFlow Lite CPU interpreter, which serves as a software proxy for
model size and, indicatively, for inference latency; it does not measure microcontroller
Page 22 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
behavior. TinyGrapeNet uses an input resolution of 112 × 112 pixels, which reduces
intermediate feature-map memory and computation compared with larger resolutions
such as 224 × 224 (Table 8). Accuracy at the other resolutions was not evaluated, so this
choice rests on the memory and computation budget and not on a measured accuracy
comparison.
The intended deployment target for TinyGrapeNet-IoT is a resource-constrained
microcontroller-class platform, such as an ESP32-S3- or ARM Cortex-M-class device
with sufficient SRAM for the quantized model and intermediate activation tensors. No
specific board has been selected or tested. In the present study, no physical microcon -
troller was used for benchmarking, and the reported 108.4 KB is the serialized INT8
model size in flash or storage and not the RAM requirement.
The peak tensor-arena allocation was not measured with TensorFlow Lite for Micro -
controllers (TFLM) [ 27]. Inspection of the converted INT8 graph (Sect. 4.6.2) gives a
peak input-plus-output activation size of 150,528 bytes (147.0 KB) for a single opera -
tor, reached at the Layer 2 pointwise convolution (56 × 56 × 16 input and 56 × 56 × 32 out-
put), which equals the analytical value computed from Table 6. A real tensor arena also
holds scratch buffers, alignment padding, and interpreter overhead, so 147 KB is a lower
bound and not a measured arena size, and it does not establish that the model fits on any
named device. Direct TFLM benchmarking on a named microcontroller is required to
establish the peak arena allocation, latency, and energy.
4.6.1 Model quantization details and representative dataset calibration
To enable efficient deployment on resource-constrained embedded platforms, the
trained floating-point (FP32) TinyGrapeNet model was converted into an INT8 Ten -
sorFlow Lite model using post-training quantization (PTQ). Both network weights
and activations were represented with 8-bit integers to reduce model size, memory
consumption, and computational complexity. Activation ranges were calibrated with a
representative dataset. In the executed notebook, the representative-dataset generator
iterates over the held-out test images (up to 640 images; the test partition holds 407,
so all of them were used), which means that INT8 calibration used the same images as
the final INT8 evaluation. Calibration uses only the input activations to estimate ranges,
with no labels and no weight updates, but it does not provide the isolation that a held-
out evaluation requires.
After calibration, the quantized model was evaluated using the same validation and
test datasets as the floating-point model. The FP32 (floating-point) model achieved a test
accuracy of 96.56%. Post-training INT8 quantization reduced the on-disk model size to
108.4 KB. The classification accuracy of the quantized INT8 model was subsequently
re-evaluated directly against the held-out test set using the TFLite interpreter, achiev -
ing 95.33% accuracy, 95.72% weighted precision, 95.33% weighted recall, and 95.33%
weighted F1-score, a reduction of 1.23% points in accuracy relative to the FP32 model
(Table 12). The reduction of 1.23% points corresponds to five test images (393 versus 388
correct of 407). To measure the effect of the calibration set, the released FP32 weights
were converted again with the same converter settings in TensorFlow 2.21.0 (the fig -
ures above were produced with TensorFlow 2.20.0). The re-converted model occupied
112.1 KB and reached 94.84% test accuracy (386 of 407) when calibrated on the test
images and 95.58% (389 of 407) when calibrated on 200 stratified training images. The
Page 23 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
re-conversion therefore does not reproduce the original file exactly, and it is reported
as a sensitivity analysis. The two calibrations differ by three correct predictions out of
407 (0.74% points), which is within the resolution of the test partition and is not evi -
dence of a general accuracy improvement; the direction of the difference is opposite to
an optimistic bias from calibrating on test images. The original 108.4 KB model, with the
95.33% accuracy reported above, remains the primary INT8 result in this manuscript,
and its accuracy should be read as approximately 95%, with a calibration-dependent
uncertainty of about 1% point (Sect. 5.2).
4.6.2 INT8 operator and tensor-type audit
File-size reasoning does not show that every operator is quantized, so the converted
graph was inspected directly with the TFLite interpreter’s operator and tensor listing
(delegates disabled). The audit was run on the re-converted model described above,
which uses the same architecture and converter settings as the original. The graph con -
tains 16 operators: 7 CONV_2D, 6 DEPTHWISE_CONV_2D, 1 MEAN (global average
pooling), 1 FULLY_CONNECTED, and 1 SOFTMAX (Table 13). All tensors are int8
or int32 (the int32 tensors are the biases), no float32 tensor is present, and the model
input and output are int8, so no float fallback remains in this graph. The serialized size
is approximately accounted for by 69.3 KB of INT8 weights, 4.5 KB of int32 biases, and
13.5 KB of per-channel scales and zero-points (1,124 output channels at 12 bytes each);
the remaining 21 to 25 KB is FlatBuffer structure and is an estimate obtained by subtrac-
tion. The 73,828 parameters of Table 7 are larger than the INT8 weight count because
the batch-normalization statistics are folded into the convolution weights and biases
during conversion.
4.7 Intended inference pipeline and IoT messaging
In the intended design, TinyGrapeNet performs all inference on the embedded device
without cloud dependency, and each captured grape leaf image yields a predicted dis -
ease label and confidence score; the software-proxy latency is 3.46 ms (Sect. 5.5). Only
this compact result -- class label, confidence value, timestamp, and device identifier
-- is transmitted to the IoT layer via the MQTT protocol. A prototype of this messag -
ing layer was implemented and tested end-to-end using a public MQTT broker (test.
mosquitto.org, QoS 1) as a network-layer proxy for the target embedded deployment.
Across 20 publish-subscribe round trips, the JSON diagnostic message averaged 162
bytes (179 bytes maximum), a 232-fold reduction compared with a single uncompressed
112 × 112 × 3 raw image (37,632 bytes), with a mean round-trip latency of 97.5 ms (95th
percentile: 98.0 ms) over the public internet broker. This measurement characterizes
internet-path latency over a public broker, which serves as a network-layer proxy; it does
not measure the low-power local radio link (e.g., LoRaWAN or BLE) depicted in Fig. 3,
which was not tested in this study and would be expected to differ from this public-
internet figure. The measurement supports the bandwidth reduction of the message pay-
load; the energy consumption of transmission was not measured.
The cloud/dashboard layer stores time-stamped diagnostic records, visualizes disease
trends across the monitored vineyard area, and triggers alerts when predefined confi -
dence or prevalence thresholds are exceeded.
Page 24 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
The 232-fold figure compares the message with an uncompressed 112 × 112 × 3 tensor
(37,632 bytes), which no camera node would realistically transmit. The average JPEG file
in the 4,062-image grape subset is 17.5 KB (17,892 bytes at 256 × 256 pixels), which gives
a reduction of about 110 times; both comparators are reported.
4.8 Methodological advantages
The proposed methodology is designed for low-latency decision-making, low-power
operation, and scalability across large vineyard areas. These are design objectives: only
the software-proxy latency, the model size, and the message size were measured. By
combining TinyML-based inference with lightweight IoT communication, the intended
framework would remove the requirement for constant cloud connectivity while still
supporting disease awareness at the farm-management level, which would suit remote
or resource-constrained viticultural regions.
Algorithm 1 outlines the intended inference workflow of the proposed TinyGrapeNet-
IoT framework, from image acquisition and pre-processing to local disease classification
and lightweight IoT communication, emphasizing edge-level intelligence for low-latency,
low-bandwidth operation.
5 Results and discussion
This section presents the experimental evaluation of the proposed TinyGrapeNet-IoT
framework for grape leaf disease classification. The system is assessed in terms of over -
all and class-wise classification performance, feature-space separability, proxy inference
efficiency, comparative performance against established lightweight architectures, and
an ablation study isolating the contribution of individual architectural components.
5.1 Evaluation dataset and experimental setup
Experiments were conducted on the grape leaf dataset described in Sect. 4.1, compris-
ing four categories: Black Rot, Esca (Black Measles), Leaf Blight (Isariopsis Leaf Spot),
and healthy leaves. An image-level, class-stratified 80:10:10 split was used for training,
Page 25 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
validation, and testing; images of the same leaf were not grouped (Sect. 4.1.1). The test-
set results use different model states depending on the table: the five-run results and
per-class results of Tables 14 and 16, the confusion matrix, and the t-SNE and proba -
bility-based metrics of Figs. 7 and 8 come from floating-point (FP32) models, whereas
the INT8 results are reported in Table 12, Sect. 4.6.1, and Table 19. The protocol com -
bines this fixed split with 5-fold stratified cross-validation (Table 4), which is not isolated
from the test partition (Sect. 4.1), and a leaf-grouped re-evaluation (Table 15). With
407 test images, one image corresponds to 0.25% points, so differences of one to two
images are not meaningful. Figures 4 and 5, which describe the data and the processing
flow, are discussed in Sect. 4.1; the execution environment and training cost are given in
Table 11.
5.2 Performance analysis of classification
Table 14 summarizes the overall classification performance of TinyGrapeNet on the
held-out test partition of the image-level split. Averaged over five independent training
runs, the model achieved an accuracy of 95.04% +/− 1.77%, with individual runs rang -
ing from 92.63% to 98.03% depending on random initialization and training stochastic -
ity. The weighted precision (95.08% +/− 1.75%), recall (95.04% +/− 1.77%), and F1-score
(95.04% +/− 1.77%) are closely matched. The spread of roughly 5% points between the
best and worst runs shows that single-run results for this architecture and dataset size
should be interpreted with caution. The representative run (96.56% accuracy, 393 of 407
images; Wilson 95% interval 94.31% to 97.94%) has an accuracy that is not among the
five per-seed values listed in Table 15, and it is used for the confusion matrix, the t-SNE
visualization, and the quantization experiments, and the five-fold cross-validation fig -
ures (Table 5) are secondary. The macro-averaged specificity (98.80%), Matthews Cor -
relation Coefficient (0.9525), and Cohen’s Kappa (0.9520), computed from the confusion
matrix in Fig. 7, and the macro-averaged one-vs-rest area under the ROC curve (0.9994)
were obtained from this representative run.
When TinyGrapeNet was retrained on the leaf-grouped split (Sect. 4.1.1), the test
accuracy was 96.36% +/− 2.42% over 5 seeds (96.84, 98.30, 91.99, 95.87, 98.79), within
1.3% points of the image-level mean of 95.04% (Table 15). Re-running the image-level
split on the same host with seed 42 gave 97.30% (95.09% in the Colab run), so a change
of host and TensorFlow version alone moves a single run by 2.2% points, and differ -
ences between the two splits have to be judged against this and against the seed spread.
On the same host and with the same seed (42), the image-level split gave 97.30% and
the leaf-grouped split gave 98.30%. The leaf-grouped accuracy is therefore similar to
the image-level accuracy. This experiment provides no evidence that same-leaf overlap
inflated the accuracy of this model, but it does not establish that inflation is absent: the
two test partitions contain different images, the experiments ran in different execution
environments, and the seed-to-seed standard deviation is large, so the comparisons are
indicative and not paired. A controlled comparison in one execution environment with
independent test data is needed.
Figure 6 shows the training and validation curves of the representative run. Training
stopped at epoch 45 after 15 epochs without improvement in validation loss (maximum
80 epochs), and the weights from the best validation-loss epoch were restored. Training
accuracy approaches 100% and the training loss falls below 0.01, whereas the validation
Page 26 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Fig. 6 Training and validation accuracy/loss curves for TinyGrapeNet
curves are unstable: in the first epochs validation accuracy is close to 10% and validation
loss reaches about 6, and later validation accuracy falls to roughly 77% to 85% around
epochs 15, 30, and 35 while otherwise staying at about 94% to 96%. A train/validation
gap is therefore present, which indicates that the model fits the training images more
closely than the validation images, and the accuracy of a single epoch is not a reliable
estimate of generalization. The dropout layer and the early-stopping schedule (Table 10)
limit but do not remove the gap, and selecting the checkpoint on the validation partition
does not guarantee generalization to unseen leaves or field conditions; the results should
be read together with the five-seed variability of Table 14.
5.3 Class-wise performance evaluation
Tables 16 and 17 present the class-wise performance and the confusion matrix of the
representative run on the held-out test partition of the image-level split. Black Rot, Esca,
and Leaf Blight reach recall of 98.31%, 96.40%, and 99.07%. The Healthy class has perfect
precision (100.00%) but the lowest recall (85.71%; 36 of 42 images, 95% Wilson inter -
val 72.2% to 93.3%): all six Healthy errors are false alarms (four classified as Black Rot
and two as Leaf Blight), and no diseased leaf was classified as Healthy (0 of 365). Black
Rot receives the most false positives (ten: five Esca, one Leaf Blight, and four Healthy
images), and 8 of the 14 errors are between disease classes. The intervals for individual
classes are wide because the Healthy class contributes only 42 test images.
The strong diagonal of Table 17 and Fig. 7 shows that most images are classified cor -
rectly, and the few errors fall between visually similar disease classes or on Healthy
leaves, as described above. These results describe in-distribution classification on the
image-level split. They do not by themselves show generalization to unseen leaves or to
field conditions.
The direction of the Healthy errors matters for the intended application. A false alarm
on a healthy leaf leads to an unnecessary inspection or treatment decision, whereas a
diseased leaf classified as healthy could leave an infection untreated, which is the costlier
error. In the representative run, the errors fall entirely in the less costly direction: 365 of
365 diseased test images were classified as diseased (95% Clopper-Pearson lower bound
98.99%), and the lower Healthy recall reflects false alarms. This pattern was not designed
or tuned, since no decision threshold was optimized, and it comes from one run with 42
Healthy test images. It should be confirmed across seeds and, if the application sets an
explicit cost ratio, with a decision threshold chosen on the validation partition.
Page 27 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Fig. 7 Confusion matrix of the proposed TinyGrapeNet evaluated on the held-out PlantVillage grape leaf test
dataset
Fig. 8 t-SNE feature-space visualization of TinyGrapeNet test-set representations, colored by class
5.4 Feature space visualization
To evaluate the discriminative capability of TinyGrapeNet, the feature vectors extracted
from the penultimate layer were projected into two dimensions using t-distributed Sto -
chastic Neighbor Embedding (t-SNE) [ 28]. Figure 8 presents the resulting feature-space
distribution for the test-set samples.
Page 28 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
As shown in Fig. 8, the four grape leaf classes form compact clusters with clear separa-
tion in the test-set feature space, which indicates that TinyGrapeNet learns discrimina -
tive feature representations. Minor overlap is observed between Black Rot and Healthy,
consistent with Table 17, where four of the six Healthy errors are assigned to Black Rot.
Confusion between Black Rot and Leaf Blight is rare in this run (one Leaf Blight image
classified as Black Rot and two Black Rot images classified as Leaf Blight). The t-SNE
projection is a qualitative view of the test-set features of one run and does not by itself
demonstrate generalization.
5.5 Proxy inference performance
Table 18 summarizes the computational characteristics of TinyGrapeNet-IoT measured
with the TFLite CPU interpreter as a software proxy (Sect. 4.6 and 5.8). The INT8-
quantized model occupies 108.4 KB of storage and has 73,828 total parameters (71,588
trainable and 2,240 non-trainable batch-normalization statistics; Table 7), and the graph
audit of Sect. 4.6.2 shows full integer operator coverage. The average inference latency
under a reference-kernel protocol (no hardware acceleration delegate, applied identically
to all four evaluated architectures) is 3.46 ms, or about 289 frames per second (Table 19).
A secondary latency of 1.07 ms (95th percentile 1.16 ms) was measured with the XNN -
PACK delegate, which is not available in TensorFlow Lite for Microcontrollers on Cor -
tex-M targets, so this figure does not describe the intended deployment path. Both
figures are timings of the notebook, which ran in Google Colab and recorded neither
the CPU model, nor the clock speed, nor the thread count (Table 11); the protocol was
50 consecutive invocations on one test image with Python’s perf_counter and no warm-
up run. Latency on a microcontroller was not measured. Same-host proxy latencies for
the ablation variants and the alternative input resolutions are given in Table 8 and 9. The
108.4 KB figure is the flash size only; the peak RAM usage (tensor arena) was not mea -
sured with TFLM, and the analytical lower bound is given below.
Analytical peak-activation lower bound: from the layer dimensions in Table 6, the
largest single INT8 activation tensor is the Layer 2 output (56 × 56 × 32 = 100,352 bytes,
98 KB). During the Layer 2 pointwise convolution, its 56 × 56 × 16 input (50,176 bytes)
must be held together with that output, which gives 150,528 bytes (147.0 KB); the INT8
graph audit (Sect. 4.6.2) gives the same value. A TFLM tensor arena adds scratch buf -
fers, alignment, and interpreter overhead, so this is a lower bound and not a measured
arena size.
5.6 Comparative performance analysis
Figure 9 compares the classification accuracy and inference latency of TinyGrapeNet
with three widely used lightweight CNN architectures, MobileNetV2 [ 29], Mobile -
NetV3-Small [30], and EfficientNet-B0 [31], on the same image-level 80:10:10 split at the
same 112 × 112 input resolution. The three baselines were initialized from ImageNet-
pretrained weights and trained first with a frozen backbone and then with the last 30
layers fine-tuned (learning rates 0.001 and then 0.0001, early stopping with patience
8), so their training protocol differs from that of TinyGrapeNet, which is trained from
scratch. TinyGrapeNet does not attain the highest accuracy among the compared mod -
els. It reaches 95.33% INT8 test accuracy (96.56% for the representative FP32 run; five-
run mean 95.04% +/− 1.77%; Table 14) with the lowest proxy latency (3.46 ms under the
Page 29 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
Fig. 9 INT8 test accuracy versus inference latency for TinyGrapeNet and three lightweight CNN baselines. Latency
values were measured using the TensorFlow Lite CPU interpreter with the reference-kernel protocol and XNN -
PACK disabled. TinyGrapeNet achieved 95.33% test accuracy at 3.46 ms, whereas MobileNetV2, EfficientNet-B0, and
MobileNetV3-Small achieved 98.53%, 98.03%, and 85.26% accuracy at 27.89, 27.61, and 4.80 ms, respectively. These
are software-proxy measurements on general-purpose hardware, not measurements on a physical microcontroller
reference-kernel protocol of Table 19) and the smallest model (108.4 KB), whereas the
INT8 baselines (85.26% to 98.53% accuracy) require 11 to 44 times more storage and,
apart from MobileNetV3-Small, about 8 times longer latency under the same measure -
ment conditions.
MobileNetV2 and EfficientNet-B0 reach higher INT8 accuracy than TinyGrapeNet
(by 3.2 and 2.7% points), consistent with their larger parameter counts and ImageNet
pretraining, at 24 to 44 times the storage. MobileNetV3-Small lost 6.63% points under
INT8 quantization (85.26% from an FP32 accuracy of 91.89%, against 0.25 to 1.23
points for the other three architectures), which suggests that its hard-swish activations
are less compatible with this quantization recipe; this was not investigated further, and
quantization-aware training was not tried. The accuracy differences of 2.7 to 3.2 points
are of the order of one to two times TinyGrapeNet’s own five-seed standard deviation
(1.77 points). The baselines were each trained and quantized once, and with 407 test
images the 95% intervals around single-run accuracies are about 2 points wide on each
side (Table 22). The comparison is therefore indicative and not statistically established:
multi-seed baselines and paired tests such as McNemar’s test were not performed. What
the comparison does show is a large difference in model size and proxy latency for a
moderate accuracy cost on this benchmark.
5.7 Lightweight model benchmarking
Table 19 compares TinyGrapeNet with three widely adopted lightweight CNN architec -
tures that were converted to INT8 with the same TFLite recipe. TinyGrapeNet reaches
an INT8 accuracy of 95.33% with the smallest model size (108.4 KB) and the lowest
latency under the reference-kernel protocol (3.46 ms). MobileNetV2 and EfficientNet-B0
reach higher INT8 accuracy (98.03% to 98.53%), and MobileNetV3-Small reaches lower
Page 30 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
accuracy (85.26%) because of its sensitivity to INT8 quantization discussed above. All
three baselines require 11 to 44 times more storage than TinyGrapeNet. The comparison
indicates that TinyGrapeNet trades a few points of accuracy for a much smaller model
and a shorter proxy latency; whether this trade is acceptable depends on the deploy -
ment scenario, and it was not validated on microcontroller hardware. Training time and
epochs for the four models are listed in Table 11.
Energy per inference was not measured in this study. No power and latency measure -
ment on the same device is available, and combining a datasheet power value for one
platform with a latency measured on another would not be a valid estimate; statements
about energy in this manuscript therefore describe design intent only.
5.8 Limitations and threats to validity
Several factors should be considered when interpreting the results of this study. First, the
PlantVillage grape leaf dataset was acquired under controlled laboratory conditions with
uniform backgrounds and consistent illumination. Consequently, although the proposed
TinyGrapeNet-IoT framework achieved high classification accuracy on this benchmark
dataset, its robustness under real vineyard conditions characterized by variable lighting,
complex backgrounds, leaf occlusion, camera viewpoint changes, and cultivar diversity
has not yet been experimentally validated. Therefore, the current work demonstrates the
feasibility of embedded TinyML-based disease detection under standardized conditions,
while comprehensive field evaluation using out-of-distribution (OOD) vineyard images
remains an important direction for future research.
The PlantVillage benchmark is known to allow very high (occasionally 100%) in-
distribution accuracy for several published models (Sect. 2.1), and Sect. 4.1.1 shows
that the image-level split places images of the same leaf in both the training and the test
partitions. The results reported here therefore demonstrate in-distribution classifica -
tion capability and not field-level generalization. No out-of-distribution evaluation was
performed: no independent grapevine dataset, other camera, lighting condition, back -
ground, or occlusion was tested, and no zero-shot accuracy is reported.
Second, the dataset exhibits a moderate class imbalance, particularly in the Healthy
category. Although class balancing techniques and weighted evaluation metrics were
employed to reduce potential bias, minority classes may still influence model gener -
alization when applied to more diverse field datasets. Third, the deployment perfor -
mance reported in Table 18, including inference latency and memory utilization, was
obtained using the TensorFlow Lite CPU interpreter as a deployment-oriented software
proxy following INT8 post-training quantization. These measurements do not establish
the latency or memory use on a resource-constrained microcontroller, where proces -
sor architecture, clock frequency, memory bandwidth, operator implementation, and
runtime overhead can substantially change execution time; the size of the difference
between the software proxy and an actual device is unquantified, pending direct hard -
ware measurement. The benchmark host of the notebook was not recorded (Table 11).
Consequently, future work will include benchmarking the model using TensorFlow Lite
for Microcontrollers (TFLM) on named embedded hardware to validate inference speed,
memory footprint, and energy consumption under real deployment conditions.
Finally, the present study considers four grape leaf categories comprising Black Rot,
Esca (Black Measles), Leaf Blight (Isariopsis Leaf Spot), and Healthy leaves. Extending
Page 31 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
the framework to additional grape diseases, such as Downy Mildew, Powdery Mildew,
and other biotic and abiotic stress conditions, together with continual learning and
domain adaptation techniques, represents a promising direction for improving the
applicability of TinyGrapeNet-IoT in practical precision viticulture.
Several additional limitations specific to the present evaluation should be noted.
First, data augmentation was disabled for the reported results because exploratory
runs with augmentation lowered the measured test accuracy by up to 20% points; the
cause of this drop was not isolated (Sect. 4.2), so the no-augmentation configuration is
a working choice and not a demonstrated optimum, and the reported accuracy reflects
an in-distribution setting that was not tested for robustness. Second, the three base -
line architectures were quantized to INT8 with the same TFLite conversion recipe as
TinyGrapeNet, but they were trained with a different protocol (ImageNet initialization,
frozen-then-fine-tuned) and each was trained and quantized once. The XNNPACK del -
egate failed with a runtime compatibility error for the quantized MobileNetV3-Small
and EfficientNet-B0 models, so all latencies in Table 19 were measured with XNNPACK
disabled. MobileNetV3-Small lost 6.63% points under INT8 quantization (against 0.25
to 1.23 points for the other three), and quantization-aware training was not tried. Third,
TinyGrapeNet’s own INT8 model reached 95.33% test accuracy, 1.23% points below the
FP32 model (96.56%), and its calibration used the test images (Sect. 4.6.1); re-conver-
sion with training-image calibration gave 95.58%. Fourth, the standard-convolution abla-
tion variant reached 100% test accuracy (Tables 20 and 21). The test partition contains
407 images, and nearly all diseased test images have a same-leaf training image (Sect.
4.1.1), so this result should not be read as evidence of better generalization; it was not re-
tested on the leaf-grouped split. Fifth, the main TinyGrapeNet model was trained with
five seeds on the same image-level split, and the test accuracy ranged from 92.63% to
98.03% (mean 95.04% +/− 1.77%; Table 14). This variance is of the same order as the 2.7
to 3.2%-point margins between TinyGrapeNet and MobileNetV2 and EfficientNet-B0 in
Table 19. The ablation variants and the baselines were each trained once, and no paired
significance test (for example McNemar’s test) was performed for any comparative
claim. Sixth, the leaf-grouped experiment (Table 15) used 5 seeds on a CPU host with
TensorFlow 2.21.0 and a proxy grouping for the Healthy class, and it was not repeated
for the baselines or the ablation variants. Seventh, no interpretability analysis (such as
Grad-CAM), probability calibration, transformer-based baseline, resolution-accuracy
ablation, or ablation of the global average pooling and dropout components was per -
formed. Finally, the specificity, Matthews Correlation Coefficient, and Cohen’s Kappa
were computed from the confusion matrix in Fig. 7, and the AUC was computed from
the predicted class probabilities of the representative run.
5.9 Ablation study
To isolate the contribution of individual architectural components, an ablation study
compares the full TinyGrapeNet architecture against four variants: (i) without batch
normalization, (ii) with standard convolutions replacing depthwise separable convolu -
tions, (iii) a reduced-width variant (width multiplier 0.5), and (iv) a further reduced-
width variant (width multiplier 0.25). Each variant is evaluated on both the validation
and test sets. Parameter and MAC-operation counts for each variant are reported in
Table 7 (Sect. 4.3); the accuracy metrics for each variant were obtained from a single
Page 32 of 36
Abinaya and Sundaravadivel Discover Artificial Intelligence (2026) 6:1954
training run per variant (see Sect. 5.8 regarding multi-seed repetition). The ablation
covers batch normalization, depthwise-separable convolution, and width; global average
pooling and dropout were not ablated, so it is not a component-by-component analysis.
Proxy latency for each variant is given in Table 9.
5.9.1 Ablation study on the validation dataset
Table 20 presents the ablation study evaluating the contribution of the major architec -
tural components of TinyGrapeNet, using a training recipe identical to the full model
(Sect. 4). The complete model achieved a validation accuracy of 95.57%. Removing
Batch Normalization caused a severe performance collapse, reducing validation accu -
racy to 29.06%, only marginally above the 25% random-guessing baseline for a four-class
problem; this demonstrates that Batch Normalization is not merely beneficial but essen -
tial for stable convergence of this architecture at the learning rate used, consistent with
its well-known role in permitting higher learning rates. Replacing the depthwise-separa -
ble convolution with standard convolution unexpectedly increased validation accuracy
to 98.77%, which may reflect the additional representational capacity of standard convo-
lutions at equal channel counts (the possibility that same-leaf overlap favors the higher-
capacity model was not tested); however, this comes at the cost of substantially more
parameters and computation (7.9x parameters, 7.4x MACs; Table 7), undermining the
parameter-efficiency motivation for using this variant on constrained hardware. Reduc -
ing the network width to 0.5x and 0.25x resulted in accuracies of 90.64% and 96.31%
respectively, a non-monotonic pattern that does not follow a simple capacity-accuracy
trend and may reflect the sensitivity of this small, non-augmented training setup to
initialization.
The x0.25 width variant (96.31% validation, 6,668 total parameters, 2.07 M MACs)
exceeds the full model’s validation accuracy (95.57%) with about 1/11 of the parameters
and 1/8 of the MACs, and a parallel result holds on the test set (Table 21). The differ -
ences between the full model and the x0.25 variant (95.57% versus 96.31% on validation,
96.56% versus 96.81% on test) correspond to about three validation images and one test
image, are much smaller than TinyGrapeNet’s five-seed standard deviation (1.77 points),
and lie well inside the 95% intervals of Table 22, so they do not support a capacity effect.
The x0.25 variant was not retrained across seeds. If repetition confirms that it matches
the full model, it would be the better-supported choice for a footprint-oriented design;
otherwise the full-width model remains justified by it
论文原文与出版信息
Discover Artificial Intelligence