IAES
Inter
national
J
our
nal
of
Artificial
Intelligence
(IJ-AI)
V
ol.
15,
No.
6,
December
2026,
pp.
5176
5189
ISSN:
2252-8938,
DOI:
10.11591/ijai.v15.i6.pp5176-5189
r
5176
Hybrid
edge-cloud
framew
ork
with
generati
v
e
models
f
or
automated
ph
ytopathology
Aman
Bhard
waj,
J
eet
Bhard
waj,
Sumit
Dhariwal
Center
for
Artificial
Intelligence,
Madha
v
Institute
of
T
echnology
and
Science,
Gw
alior
,
India
Article
Inf
o
Article
history:
Recei
v
ed
Aug
16,
2025
Re
vised
Aug
27,
2026
Accepted
Sep
20,
2026
K
eyw
ords:
Cloud
computing
Con
v
olutional
neural
netw
orks
Edge
computing
Generati
v
e
artificial
intelligence
Lar
ge
language
models
Plant
disease
diagnosis
ABSTRA
CT
Diagnosing
plant
diseases
accurately
and
on
ti
me
is
a
major
f
actor
that
k
eeps
the
agricultural
sector
producti
v
e
and
the
w
orld
fed.
V
isual
inspection
by
the
traditional
methods
has
lo
w
scalabili
ty
and
consistenc
y
as
their
main
dra
wbacks.
T
o
address
these,
an
edge-cloud
diagnostic
h
ybrid
architecture
is
proposed
in
t
his
paper
,
which
includes
the
real-time
inference
on
the
de
vice
coupled
with
the
high-precision
analysis
and
treatment
guidance
in
the
cloud.
T
o
achie
v
e
this,
a
mobile
netw
ork
v
ersion
2
(MobileNetV2)
classifier
with
slight
computational
o
v
erhead
runs
the
class
ification
v
ery
f
ast
at
the
edge,
while
an
ef
fi
cient
netw
ork
v
ariant
B3
(Ef
ficientNetB3)
model
that
stands
for
the
highest
accurac
y
in
the
cloud
en
vironment.
Both
architectures
are
supported
by
the
custom-designed
classifier
heads
where
the
Ef
ficientNetB3
uses
batch
normalization
and
dropout
for
re
gularization
in
the
training
phase.
A
proof-of-concept
implementation
inte
grates
a
lar
ge
language
model
(LLM)
for
the
generation
of
conte
xt-a
w
are
automatic
treatment
recommendations
based
on
the
classification
output.
Furthermore,
along
with
the
release
of
source
codes
and
trained
models
for
reproducibility
,
this
study
establishes
a
quantitati
v
e
benchmark
for
the
edge-cloud
trade-of
f
between
computational
ef
ficienc
y
and
diagnostic
fidelity
.
This
architectural
scheme
is
a
platform
that
can
be
scaled
up
and
deplo
yed
for
precision
agriculture.
This
is
an
open
access
article
under
the
CC
BY
-SA
license
.
Corresponding
A
uthor:
Sumit
Dhariw
al
Centre
for
Artificial
Intelligence,
Madha
v
Institute
of
T
echnology
and
Science
Gw
alior
,
India
Email:
sumitdhariw
al22@gmail.com
1.
INTR
ODUCTION
Diseases
in
plants
can
ha
v
e
such
a
massi
v
e
impact
on
w
orld
agriculture
that
the
y
can
cause
economic
instability
,
create
a
situation
where
food
security
is
at
risk,
and
e
v
en
wipe
out
crop
v
arieties,
which
amount
to
big
losses
in
yield
[1],
[2].
The
traditional
w
ay
of
diagnosing
diseases
relies
to
a
lar
ge
e
xtent
on
human
inspection
by
e
xperts.
Therefore
the
diagnosis
is
rather
slo
w
and
v
ery
subjecti
v
e,
and
it
cannot
be
scaled
up
to
match
the
needs
of
modern
agriculture.
F
armers
in
remote
areas
suf
fer
more
under
these
conditions
due
to
la
ck
of
e
xperts,
and
what
is
w
orse
is
that
this
lack
leads
to
the
wrong
treatment
or
t
he
right
one
b
ut
v
ery
late,
considering
that
there
are
some
diseases
that
ha
v
e
v
ery
similar
symptoms
and
can
thus
be
confused.
In
addition,
this
condition
hampers
the
application
of
precision
f
arming,
which
is
the
utilization
of
resources
at
the
best
possible
rates,
pro
viding
inputs
only
in
the
required
locations
and
times
[3],
[4].
Deep
learning
which
is
a
k
e
y
f
actor
in
the
f
ast
gro
wth
of
artificial
intelli
g
e
nce
(AI)
is
creating
v
ery
much
reliable
and
rob
ust
solutions
for
image
classification
issues
and
consequently
,
another
stage
for
automated
J
ournal
homepage:
http://ijai.iaescor
e
.com
Evaluation Warning : The document was created with Spire.PDF for Python.
Int
J
Artif
Intell
ISSN:
2252-8938
r
5177
plant
disease
diagnosis
is
being
opened
[5],
[6].
This
study
introduces
an
h
ybrid
edge-cloud
frame
w
ork
that
is
mainly
designed
to
be
f
ast
and
acc
u
r
ate
in
terms
of
the
classificat
ion
accurac
y
.
The
proposed
method
in
v
olv
es
the
u
s
e
of
tw
o
distinct
con
v
olutional
neural
netw
orks
(CNN)
models.
First,
there
is
a
light
mobile
netw
ork
v
ersion
2
(MobileNetV2)
[7]
model
designed
for
f
ast,
on-de
vice
processing.
At
the
same
time,
ef
ficient
net
w
ork
v
ariant
B3
(Ef
ficientNetB3)
[8]
tar
gets
cloud
deplo
yment
to
infer
with
higher
accurac
y
.
Therefore,
the
field
user
might
get
quick
diagnosis,
while
complicated
or
critical
ones
are
automatically
sent
up
for
detailed
e
v
aluation.
Also,
within
t
his
study
is
a
discussion
of
ho
w
an
inte
gration
of
lar
ge
language
model
(LLM)
using
an
application
programming
interf
ace
(API)
by
Google
[9]
can
be
utilized
to
con
v
ert
the
complicated
diagnostics
into
treatment
and
action
advice.
T
o
illustrate
the
whole
process
from
image
capture
and
automatic
classification
to
intelligent
and
conte
xt-a
w
are
agricultural
advisory
,
a
proof
of
concept,
Flask
based
interf
ace
[10]
has
been
de
v
eloped.
Rather
than
introducing
no
v
el
machine
learning
architectures,
this
study
aims
to
pro
vide
a
practical,
system-le
v
el
inte
gration
of
these
technologies.
Ultimately
,
it
aims
to
de
v
elop
accurate,
scalable,
and
accessible
diagnostic
systems
for
resource-poor
agricultural
settings
by
pro
viding
reusable
design
blueprints.
The
primary
contrib
utions
of
this
study
are
outlined
as
follo
ws:
i)
The
proposed
research
w
ork
designs
and
assesses
a
h
ybrid
edge-cloud
system
where
MobileNetV2
will
be
used
for
on-de
vice
inference
and
Ef
ficientNetB3
for
the
detection
and
classification
of
plant
diseases
in
the
cloud.
This
enables
direct
comparison
of
the
performance
characteristics
of
the
tw
o
systems.
ii)
This
study
quantifies
the
accurac
y
,
precision,
recall,
and
F1-score
trade-of
fs
between
the
edge-optimized
model
and
the
cloud-deplo
yed
model,
respecti
v
ely
,
using
a
publicly
a
v
ailable
PlantV
illage
dataset.
iii)
Inte
gration
of
generati
v
e
AI
on
an
e
xperimental
basis
to
sho
w
ho
w
the
machine
learning
classification
output
can
lead
to
stimulus-a
w
are
pre
v
ention-treatment
recommendations
and
thus
highlight
a
possible
route
to
w
ards
intelligent
agricultural
advisory
systems.
i
v)
A
proof-of-concept
that
demonstrates
the
practicality
of
the
idea,
consisting
of
a
web-application,
trained
models,
and
source
code
made
a
v
ailable
to
promote
reproducible
research
and
support
further
research.
The
paper
is
or
g
anized
in
this
manner
.
Section
2
pro
vides
a
concise
o
v
ervie
w
of
prior
res
earch;
Section
3
describes
the
dataset,
model
architectures,
and
e
xperimental
setup.
In
section
4,
the
empirical
results
are
presented
and
discussed,
and
directions
for
future
research
are
proposed.
Lastl
y
,
section
5
concludes
the
paper
.
2.
RELA
TED
W
ORK
The
plant
disease
detection
methodology
has
under
gone
a
substantial
change.
This
shift
mo
v
ed
from
human
observ
atory
to
computer
vision
automation.
In
this
part,
the
mo
v
ement
from
traditional
machine
learning
to
cutting-edge
combined
deep
learning
and
generati
v
e
AI
techniques
is
e
v
aluated.
2.1.
Ev
olution
fr
om
traditional
lear
ning
to
deep
lear
ning
Ph
ytopathology
algorithms
based
on
classical
approaches
include
support
v
ector
machine
and
random
forest.
While
the
y
were
ef
fecti
v
e
for
small-sized
data
sets,
the
y
f
ailed
due
to
field
v
ariations
[11].
Ev
en
though
CNN-based
algorithms
could
perform
feature
e
xtraction
automatically
,
v
ery
deep
netw
orks
lik
e
visual
geometry
group
19
(V
GG19)
and
residual
netw
ork
50
layers
(ResNet50)
lack
ed
suf
ficient
computational
resources,
pre
v
enting
their
real-time
applications
[12].
That
is
wh
y
current
studies
mainly
concentrate
on
lightweight
neural
netw
orks.
These
neural
netw
orks
include
M
obileNetV2,
which
is
lightweight
for
mobile
de
vices
[13],
and
Ef
ficientNetB3,
which
relies
on
adapti
v
e
augmentation
[14],
thus
preserving
its
high
performance
under
the
resource
constraints.
Numerous
lightweight
vision
models
and
edge-AI
solutions
are
used
in
t
he
current
studies.
MobileNetV2
and
Ef
ficientNetB3
ha
v
e
been
selected
for
the
proposed
solution
due
to
their
ecosystem
support
and
hardw
are
acceleration
abilities.
2.2.
Hybrid
edge-cloud
ar
chitectur
es
Latenc
y-accurac
y
problem
can
be
resolv
ed
through
recent
research
in
h
ybrid
edge-cloud
fram
e
w
orks.
In
general,
it
means
that
light
weight
model
will
be
used
to
carry
out
quick
computations
at
the
edge
and
uncertain
samples
will
be
computed
using
cloud
models
[15].
This
usually
leads
to
sa
ving
of
computational
po
wer
without
lo
wering
the
quality
of
diagnostics,
which
is
v
ery
important
for
precision
agriculture.
Ho
we
v
er
,
more
detailed
e
xperimental
study
of
specific
models
and
the
process
of
their
implementation
is
required.
Hybrid
edg
e-cloud
fr
ame
work
with
g
ener
ative
models
for
automated
phytopatholo
gy
(Aman
Bhar
dwaj)
Evaluation Warning : The document was created with Spire.PDF for Python.
5178
r
ISSN:
2252-8938
2.3.
Generati
v
e
artificial
intelligence
in
agricultur
e
While
CNN-based
models
perform
e
xceptionally
well
in
the
tasks
of
image
classification,
the
y
lack
an
y
reasoning
capabilities
in
terms
of
pro
viding
the
conte
xt
and
suggestions
on
the
actions
to
be
tak
en.
The
recent
adv
ent
of
the
ne
w
generation
of
LLMs,
such
as
generati
v
e
pre-trai
ned
transformer
(GPT)
or
Gemini,
opens
up
man
y
e
xciting
a
v
enues
in
the
sphere
of
what
is
called
“smart”
agriculture.
The
e
xisting
solutions
rely
on
the
use
of
generati
v
e
models
to
translate
the
output
of
c
lassifiers
into
actionable
agronomical
recommendations
[5].
T
able
1
sho
ws
the
li
mitations
of
current
approaches
and
ho
w
the
proposed
method
addresses
them.
T
able
1.
Comparison
with
prior
related
w
ork
and
no
v
elty
of
proposed
w
ork
Prior
w
ork
Limitations
No
v
elties
in
this
study
Upadh
yay
et
al.
[11]
F
ocused
on
standard
CNN
benc
hmarking;
lack
ed
a
h
ybrid
deplo
yment
strate
gy
.
Proposes
and
e
v
aluates
a
dual-model
edge-cloud
w
orkflo
w
to
optimize
both
latenc
y
and
accurac
y
.
Lu
et
al.
[13]
Optimized
MobileNetV2
for
mobile
de
vices
b
ut
did
not
inte
grate
cloud-based
v
erification
for
ambiguous
cases.
Utilizes
MobileNetV2
as
a
f
ast
edge
filter
,
back
ed
by
Ef
ficientNe
tB3
as
a
simulated
cloud
node
for
high-precision
f
allback.
Adnan
et
al.
[14]
Utilized
Ef
ficientNetB3
for
high
accurac
y
b
ut
did
not
address
the
computational
latenc
y
for
real-time
field
use.
Quantifies
the
trade-of
f
between
the
edge
model
(speed)
and
the
cloud
model
(fidelity)
in
a
unified
system.
Standard
CNNs
[11],
[12]
Outstanding
in
visual
classification
b
ut
lack
conte
xtual
reasoning
or
the
ability
to
suggest
agronomic
actions.
Inte
grates
a
generati
v
e
AI
(Gemini
API)
component
to
pro
vide
automated,
conte
xt-a
w
are
treatment
recommendations.
3.
METHOD
This
section
pro
vides
a
thorough
description
of
the
data
acquisition
procedures.
It
outlines
the
rele
v
ant
preprocessing
methods
and
all
model
architecture
specifications.
It
also
describes
the
training
specifications
and
e
v
aluation
criteria.
3.1.
Dataset
collection
and
pr
epr
ocessing
Dra
wing
upon
the
e
xternal
PlantV
illage
dataset
[16],
a
curated
subset
is
used
in
this
research
comprising
32,962
images
of
color
lea
v
es.
These
images
belong
t
o
27
classes,
which
include
either
the
health
y
state
or
v
arious
diseases
of
six
types
of
crops,
namely
apple,
corn,
grape,
potato,
stra
wberry
,
and
tomato.
A
diagrammatic
representation
of
the
image
distrib
ution
across
the
v
arious
classes
is
pro
vided
in
Figure
1.
The
figure
clearly
demonstrates
the
class
imbalance
present
within
the
dataset,
where
the
bar
colors
indicate
the
respecti
v
e
plant
species
as
detailed
in
the
le
gend.
F
or
ef
fecti
v
e
training
and
v
alidation
of
the
model,
the
data
set
w
as
properly
di
vided
into
the
training
set,
the
v
alidation
set,
and
t
h
e
testing
set.
The
e
xact
data
splitting
process
is
described
in
detail
in
T
able
2.
Figure
1.
Class
distrib
ution
of
the
PlantV
illage
dataset
subset
used
in
this
study
across
27
classes
Int
J
Artif
Intell,
V
ol.
15,
No.
6,
December
2026:
5176–5189
Evaluation Warning : The document was created with Spire.PDF for Python.
Int
J
Artif
Intell
ISSN:
2252-8938
r
5179
T
able
2.
Data
split
for
training,
v
alidation,
and
testing
Set
Images
Percentage
(%)
T
raining
21,095
64
V
alidation
5,274
16
T
esting
6,593
20
T
otal
32,962
100
Image
preprocessing
procedures
were
tailored
to
each
model’
s
input
and
optimization
techniques:
i)
MobileNetV2:
images
were
resc
aled
to
224
224
pix
els
and
normalized
to
ha
v
e
intensities
from
[0
;
1]
.
ii)
Ef
ficientNetB3:
images
were
rescaled
to
300
300
pix
els
and
normalized
using
the
model’
s
preprocessing
method,
where
specific
mean
and
standard
de
viation
calculated
during
the
pre-training
of
the
model
on
image
netw
ork
(ImageNet)
are
applied.
iii)
Data
augmentation
(training
set
only):
in
order
to
a
v
oid
o
v
erfitting
and
encourage
generalization,
data
augmentation
techniques
were
applied
to
the
training
dataset.
It
consisted
of
randomly
rotating,
shifting
images
in
width
and
height,
applying
s
hear
transformation,
zooming,
and
horizontal
flipping.
Geometric
transformations
are
e
xtremely
important
in
plant
pa
thology
,
since
the
y
ensure
in
v
ariance
to
the
angle
of
camera
and
orientation
of
lea
v
es
in
field
conditions
[17].
MobileNetV2
used
stronger
augmentation,
while
Ef
ficientNetB3
used
milder
augmentation
with
class
weighting.
3.2.
Hybrid
edge-cloud
ar
chitectur
e
The
o
v
erarching
system
architecture,
visuall
y
represented
in
Figure
2
,
is
engineered
as
an
of
fline-firs
t
solution,
which
prioritizes
of
fline
edge
inference.
Cloud
analysis
is
triggered
based
on
netw
ork
a
v
ailability
and
user
demand
for
adv
anced
recommendations.
The
core
routing
logic
demonstrates
ho
w
ambiguous
edge
predictions
seamlessly
trigger
cloud
v
alidation
and
LLM
advisory
handshak
es.
The
primary
diagnostic
process
occurs
locally
on
the
edge
de
vice
to
ensure
functionality
in
remote
areas
with
poor
internet
connecti
vity
.
The
cloud
infrastructure
serv
es
as
an
on-demand
e
xt
ension
for
high-precision
v
alidation
and
generati
v
e
AI
advisory
.
Figure
2.
The
proposed
w
orkflo
w
3.2.1.
Edge
node:
MobileNetV2
(offline)
MobileNetV2
[7]
w
as
chosen
as
the
lightweight
architecture
designed
to
perform
classification
on
edge
de
vices
such
as
smartphones.
This
w
ork
used
a
pre-trained
model
for
the
ImageNet
backbone
that
w
as
frozen
initially
with
a
custom
head,
consisting
of
the
global
a
v
erage
pooling
layer
,
the
dense
l
ayer
(512
neurons
with
rectified
linear
unit
(ReLU
acti
v
ation)),
the
dropout
layer
(dropout
rate
0.5),
and
the
softmax
layer
Hybrid
edg
e-cloud
fr
ame
work
with
g
ener
ative
models
for
automated
phytopatholo
gy
(Aman
Bhar
dwaj)
Evaluation Warning : The document was created with Spire.PDF for Python.
5180
r
ISSN:
2252-8938
(27
classes).
The
architecture
of
the
model
is
sho
wn
in
Figure
3,
observ
e
the
lightweight
custom
head
designed
to
minimize
computational
o
v
erhead
on
mobile
CPUs.
Modified
from
[7].
Importantly
,
the
proposed
edge
de
vice
w
ould
be
complemented
by
a
lightweight
database
with
the
standard
agriculture
treatment
methods,
which
tak
es
up
little
memory
.
Right
after
the
classification,
the
application
recei
v
es
pre-v
erified
recommendations,
corresponding
to
the
detected
class.
This
approach
pro
vide
an
immediate
though
standard
decision-making
support
to
f
armers
in
the
no-connecti
vity
zones.
Figure
3.
Architecture
of
MobileNetV2-based
model
3.2.2.
Cloud
node:
EfficientNetB3
(on-demand)
The
cloud
node
utilizes
the
Ef
ficientNetB3
[8]
architecture
which
is
tuned
for
accurac
y
rather
than
ef
ficienc
y
.
It
consists
of
com
poun
d
scaled
backbone
connected
t
o
custom
head
with
tw
o
dense
layers
(1,024
and
512
nodes
each)
normalized
by
batch
normalization
and
dropout
(0.5).
The
architecture
is
sho
wn
in
Figure
4,
the
e
xpanded
dense
blocks
and
re
gularization
layers
ensure
high-precision
v
alidation
for
comple
x
or
ambiguous
cases
forw
arded
from
the
edge,
modified
from
[8].
This
node
does
not
acti
v
ate
automatically
.
It’
s
called
up
if
i)
internet
is
accessible
and
ii)
either
the
confidence
score
of
the
model
on
the
edge
drops
under
a
threshold
or
the
user
asks
for
a
”second
opinion”.
Upon
which,
Ef
ficientNetB3
process
the
image
and
ask
the
LLM
about
the
best
course
of
action.
Int
J
Artif
Intell,
V
ol.
15,
No.
6,
December
2026:
5176–5189
Evaluation Warning : The document was created with Spire.PDF for Python.
Int
J
Artif
Intell
ISSN:
2252-8938
r
5181
3.3.
T
raining
and
optimization
The
e
xperiments
ha
v
e
been
performed
with
T
ensorFlo
w
[18]
running
on
NVIDIA
T
esla
P100
GPU.
The
training
process
included
the
adapti
v
e
moment
estimation
(Adam
optimizer)
[19]
with
the
starting
learning
rate
of
1
10
4
and
the
loss
function
being
the
cate
gorical
cross-entrop
y
.
In
order
to
tackle
the
problem
of
imbalance
in
the
dataset
[20],
while
training
the
Ef
ficientNetB3
netw
ork,
the
class
weights
which
ha
v
e
been
calculated
by
the
formula
w
c
=
N
=
(
C
n
c
)
were
used,
where
N
stands
for
the
number
of
training
samples,
C
stands
for
the
number
of
classes
in
total
(27),
and
n
c
is
the
number
of
occurrences
of
class
c
.
T
raining
schedule,
MobileNetV2
model
w
as
trained
for
one
complete
c
ycle,
spanning
50
epochs
with
a
batch
size
of
32.
Con
v
ersely
,
Ef
fi
cientNetB3
had
a
training
strate
gy
based
on
a
tw
o-phase
transfer
learning:
i)
custom
head
training
with
frozen
back-bone;
despi
te
being
scheduled
for
50
epochs,
training
stopped
in
epoch
25
with
earl
y
stopping
(patience
=
5)
in
order
to
a
v
oid
o
v
erfitting
[21];
and
ii)
top
30
layers
were
u
nf
rozen
and
fine-tuned
for
10
epochs
with
a
lo
wered
learning
rate
(
1
10
5
).
Learning
rate
scheduler
(ReduceLR
OnPlat
eau,
f
actor
=
0.1)
w
as
acti
v
e
throughout
training
process
[22].
Figure
4.
Ef
ficientNetB3-based
cloud
model
architecture
Hybrid
edg
e-cloud
fr
ame
work
with
g
ener
ative
models
for
automated
phytopatholo
gy
(Aman
Bhar
dwaj)
Evaluation Warning : The document was created with Spire.PDF for Python.
5182
r
ISSN:
2252-8938
3.4.
System
w
orkflo
w
The
diagnostic
pipeline
specified
in
Algorithm
1
is
designed
for
operational
resilience.
The
def
ault
mode
is
an
of
fline
mode
that
compares
the
classification
by
the
edge
model
with
a
local
database
of
standard
treatment
techniques
that
ha
v
e
been
pre
viously
inde
x
ed.
The
high-l
atenc
y
path
of
accessing
the
cloud
with
Ef
ficientNetB3
and
Gemini
API
usage
will
be
enabled
only
in
certain
cases
to
ensure
that
only
ambiguous
cases
or
when
a
patient
requests
the
adv
anced
AI-po
wered
analysis
will
consume
bandwidth.
The
confidence
threshold
is
the
main
criterion
that
separates
edge
and
cloud
tiers.
High
means
that
more
images
will
be
sent
to
the
cloud,
thus
increasing
the
accurac
y
of
the
diagnosis
b
ut
increasing
the
latenc
y
and
bandwidth
consumption
too,
whereas
lo
w
means
more
reliance
on
the
edge
model.
In
this
study
,
is
used
as
a
constant
reference
parameter
to
compare
models
indi
vidually;
ho
we
v
er
,
in
a
real
operational
en
vironment,
this
parameter
could
be
constantly
adjusted
based
on
netw
ork
conditions.
Algorithm
1
Of
fline-first
h
ybrid
diagnosis
with
on-demand
cloud
support
Input:
Leaf
image
I
,
threshold
,
connecti
vity
N
et
,
user
request
R
eq
Output:
Disease
class
C
,
confidence
score
S
,
recommendation
R
//
Phase
1:
Of
fline
edg
e
infer
ence
(always
e
xecuted)
1:
Preprocess
I
for
MobileNetV2:
resize
to
224
224
2:
(
C
edge
;
S
edge
)
Classify
(
M
edge
;
I
)
3:
R
lo
cal
QueryLo
calDB(
C
edge
)
4:
C
C
edge
,
S
S
edge
,
R
R
lo
cal
//
Phase
2:
Conditional
cloud
of
floading
5:
if
N
et
is
acti
v
e
and
(
S
edge
<
or
R
eq
is
true
)
then
6:
Upload
I
to
the
cloud
serv
er
7:
Preprocess
I
for
Ef
ficientNetB3:
resize
to
300
300
8:
(
C
cloud
;
S
cloud
)
Classify
(
M
cloud
;
I
)
9:
P
r
ompt
‘‘Provide
agronomic
advice
for‘‘
+
C
cloud
10:
R
gen
GeminiAPI(
P
r
ompt
)
11:
C
C
cloud
,
S
S
cloud
,
R
R
gen
12:
end
if
13:
r
etur
n
(
C
;
S
;
R
)
3.5.
Ev
aluation
metrics
T
o
perform
an
e
v
aluation
of
the
diagnostic
capability
,
the
independent
test
set
(
N
=
6
;
593
)
w
as
emplo
yed
for
assessing
the
performance
of
the
m
od
e
ls.
T
w
o
ma
in
measures
used
for
t
his
analysis
were
o
v
erall
accurac
y
and
cate
gorical
cross-entrop
y
loss.
Since
there
w
as
imbalance
in
the
dataset,
it
w
as
necessary
to
assign
higher
weights
to
the
results
and
compute
the
corresponding
weighted
a
v
erages
for
precision,
recall
and
F1-score
in
order
to
a
v
oid
an
y
bias
from
the
majority
classes.
In
addition,
the
confusion
matrices
were
generated
in
order
to
illustrate
the
misclassification
patterns
among
phenotypically
similar
disease
classes.
3.6.
Pr
oof-of-concept
implementation
T
o
sho
w
the
ef
fecti
v
eness
of
the
h
ybri
d
architecture,
a
prototype
utilizing
Flask
[10]
w
as
de
v
eloped.
Although
the
theoretical
design
aims
at
a
nati
v
e
mobile
application
for
of
fline
operation,
this
web-based
implementation
serv
es
to
test
and
check
the
model
infe
rence
pipeline
as
well
as
the
generati
v
e
AI
inte
gration.
The
prototype
user
interf
ace
as
sho
wn
in
Figure
5
tak
es
leaf
images
uploaded
by
users
and
embodies
the
decision-making
process:
i)
Edge
inference
simulation:
users
are
able
to
classify
images
using
the
lightweight
MobileNetV2
model
to
vie
w
the
quick,
baseline
classification
that
is
meant
to
occur
on-de
vice.
ii)
Cloud
v
alidation
testing:
there
is
a
unique
module
that
allo
ws
for
image
classification
by
making
use
of
the
po
werful
model
kno
wn
as
Ef
ficientNetB3.
In
a
pract
ical
scenario,
images
whose
confidence
score
f
alls
under
the
v
alue
of
w
ould
be
assigned
to
this
cate
gory
for
manual
v
erification.
iii)
Recommendation
production:
once
classified,
the
disease
la
bel
obtained
is
inputted
into
the
b
uilt-in
Gemini
API
which
will
generate
a
formatted
pre
v
ention
and
cure
method
as
sho
wn
in
Figure
6.
Figure
7
sho
ws
the
test
en
vironment
data
flo
w
,
demonstrating
the
practicality
of
the
”of
fline-first”
logic.
This
figure
highlighting
the
API
handshak
es
between
the
inference
engine
and
the
generati
v
e
model.
Int
J
Artif
Intell,
V
ol.
15,
No.
6,
December
2026:
5176–5189
Evaluation Warning : The document was created with Spire.PDF for Python.
Int
J
Artif
Intell
ISSN:
2252-8938
r
5183
Figure
5.
The
user
interf
ace
of
the
proof-of-concept
prototype
Figure
6.
Sample
output
sho
wing
AI-generated
treatment
recommendations
fetched
via
Gemini
API
Figure
7.
Detailed
component
interaction
diagram
for
the
proof-of-concept
implementation
Hybrid
edg
e-cloud
fr
ame
work
with
g
ener
ative
models
for
automated
phytopatholo
gy
(Aman
Bhar
dwaj)
Evaluation Warning : The document was created with Spire.PDF for Python.
5184
r
ISSN:
2252-8938
4.
RESUL
TS
AND
DISCUSSION
The
h
ybrid
models’
empirical
performance
is
demonstrated
in
t
his
section,
focusing
on
the
significant
trade-of
fs
between
diagnostic
accurac
y
,
computational
latenc
y
,
and
architectural
comple
xity
within
the
sugges
ted
edge-cloud
frame
w
ork.
The
anal
ysis
e
xamines
the
beha
vior
of
the
tw
o
models
during
the
training
and
v
alidation
phase,
follo
wed
by
their
ability
to
classify
data
on
the
independent
test
dataset.
It
also
analyze
the
latenc
y
of
inference
and
the
ef
fect
of
the
confidence
threshold
on
the
distrib
uti
on
of
loads
on
edge
and
cloud
nodes.
Finally
,
the
confusion
matrix
analysi
s
highlights
class
ification
challenges
in
v
olving
visually
similar
plant
dis
eases
and
pro
vides
further
insight
into
the
strengths
and
limitations
of
the
tw
o
models.
4.1.
Model
training
and
v
alidation
perf
ormance
T
raining
dynamics,
as
sho
wn
in
Figure
8,
presents
a
steady
con
v
er
gence
of
both
models
without
an
y
issues
associated
with
o
v
erfitting.
In
particular
,
Figure
8(a)
sho
ws
the
graphs
of
accurac
y
curv
es
comparing
the
edge
and
cloud
models,
highlighting
the
cloud
model’
s
higher
peak
performance,
and
it
can
be
seen
that
the
maximum
v
alidation
accurac
y
of
Ef
ficientNetB3
(cloud
node)
is
96.25%,
while
for
MobileNetV2
is
93.42%.
Moreo
v
er
,
Figure
8(b)
sho
ws
the
graphs
of
loss
curv
es
indicating
superi
or
generalization
and
lo
wer
error
for
t
he
Ef
ficientNetB3
model
o
v
er
MobileNetV2,
which
confirm
that
both
models
con
v
er
ge
steadily
without
significant
o
v
erfitting.
The
e
xplanation
of
the
dif
ferent
results
is
in
the
bigger
size
of
Ef
ficientNet
model
and
in
more
ef
fecti
v
e
usage
of
the
fine-tuning
strate
gy
,
when
the
frozen
stage
is
especially
important.
(a)
(b)
Figure
8.
T
raining
and
v
alidation
metrics
o
v
er
epochs
for
both
models
of
(a)
accurac
y
and
(b)
loss
4.2.
T
est
set
perf
ormance
and
latency
analysis
F
or
the
independent
test
set
(
N
=
6
;
593
),
the
Ef
ficientNetB3
demonstrated
not
only
consistent
results
with
the
highest
metric
scores
b
ut
also
o
v
erall
accurac
y
of
96.56%
and
weighted
F1-score
of
0.9659
for
all
aggre
g
ate
cate
gories.
In
its
turn,
MobileNetV2
also
g
ained
decent
accurac
y
of
93.54%
(T
able
3)
and,
therefore,
can
be
considered
a
reliable
first-pass
filter
.
The
95%
confidence
interv
als
for
these
final
accuracies
are
96
:
56%
0
:
44%
for
Ef
ficientNetB3
and
93
:
54%
0
:
59%
for
MobileNetV2.
4.2.1.
Infer
ence
latency
e
v
aluation
In
order
to
e
v
aluate
the
model
deplo
yme
n
t
feasibility
on
de
vices
with
lo
w
computational
resources,
the
latenc
y
benchmark
w
as
conducted
using
the
CPU
setting
(T
ensorFlo
w
2.19.0,
single
thread)
on
Kaggle
as
a
simulation
of
edge
de
vices
that
do
not
ha
v
e
AI
accelerators.
The
procedure
of
the
inference
time
e
v
aluation
included
a
w
arm-up
phase
follo
wed
by
100
iterations
of
single
image
inference.
The
disparity
of
a
significant
magnitude
in
the
computational
cos
t
w
as
spotlighted
by
the
results.
MobileNetV2
attained
an
a
v
erage
inference
latenc
y
of
286.06
ms
(
=
27
:
05
),
which
made
it
appropriate
for
real-time
interaction
on
mobile
CPUs.
On
the
other
hand,
Ef
ficientNetB3
the
a
v
erage
1,117.41
ms
(
=
75
:
06
)—taking
more
than
a
second
per
image.
This
represents
a
3.91
speedup
in
f
a
v
or
of
MobileNetV2.
It
w
as
also
concluded
that
running
models
lik
e
Ef
ficientNetB3
(or
lar
ger
model)
locally
on
standard
smartphones
is
not
w
orth
it
o
wing
to
the
latenc
y
.
While
the
Ef
ficientNetB3
model
can
tak
e
adv
antage
of
GPUs
and
achie
v
e
a
much
lo
wer
latenc
y
(
68
ms,
as
on
P100
GPU),
accessing
such
infrastructure
for
e
v
ery
query
could
be
quite
costly
and
it
w
ould
also
require
a
lot
of
bandwidth.
In
particular
,
the
process
in
v
olv
es
Int
J
Artif
Intell,
V
ol.
15,
No.
6,
December
2026:
5176–5189
Evaluation Warning : The document was created with Spire.PDF for Python.
Int
J
Artif
Intell
ISSN:
2252-8938
r
5185
the
transfer
of
a
compressed
300
300
size
image
(approx.
30
–
50
KB)
and
results
in
additional
netw
ork
delay
of
100
–
300
ms.
Thus,
the
h
ybrid
architecture
that
w
as
proposed
is
no
w
back
ed
by
empirical
e
vidence:
MobileNetV2
will
tak
e
care
of
the
major
part
of
the
traf
fic
at
the
edge,
whereas
GPU
po
wer
is
only
to
be
used
when
the
cases
are
really
ambiguous,
thereby
making
the
cost
of
GPU
acceleration
and
Ef
fici
entNetB3
use
in
the
cloud
justifiable.
T
able
3.
Performance
metrics
of
MobileNetV2
and
Ef
ficientNetB3
on
the
test
set
Class
MobileNetV2
(Edge)
Ef
ficientNetB3
(Cloud)
Precision
Recall
F1-score
Precision
Recall
F1-score
Apple
scab
0.97
0.92
0.95
0.98
0.99
0.99
Apple
black
rot
0.98
1.00
0.99
1.00
1.00
1.00
Apple
cedar
apple
rust
1.00
0.98
0.99
1.00
1.00
1.00
Apple
health
y
0.97
0.99
0.98
1.00
1.00
1.00
Corn
common
rust
0.97
1.00
0.98
1.00
1.00
1.00
Corn
gray
leaf
spot
0.80
0.79
0.80
0.88
0.93
0.90
Corn
health
y
1.00
1.00
1.00
1.00
1.00
1.00
Corn
northern
leaf
blight
0.90
0.89
0.89
0.96
0.92
0.94
Grape
black
rot
0.97
0.94
0.96
0.99
0.96
0.98
Grape
esca
black
measles
0.95
0.98
0.97
0.96
0.99
0.98
Grape
health
y
1.00
1.00
1.00
1.00
1.00
1.00
Grape
leaf
blight
0.99
0.99
0.99
1.00
1.00
1.00
Potato
early
blight
0.97
0.94
0.95
0.99
0.98
0.99
Potato
health
y
0.84
0.87
0.86
0.83
0.97
0.90
Potato
late
blight
0.94
0.90
0.92
0.95
0.96
0.95
Stra
wberry
health
y
1.00
0.98
0.99
1.00
1.00
1.00
Stra
wberry
leaf
scorch
1.00
0.98
0.99
1.00
1.00
1.00
T
omato
bacterial
spot
0.91
0.95
0.93
0.95
0.98
0.97
T
omato
early
blight
0.82
0.75
0.79
0.88
0.91
0.90
T
omato
health
y
0.93
0.96
0.94
0.99
0.95
0.97
T
omato
late
blight
0.90
0.93
0.91
0.97
0.93
0.95
T
omato
leaf
mold
0.83
0.87
0.85
0.92
0.98
0.95
T
omato
septoria
leaf
spot
0.89
0.87
0.88
0.99
0.91
0.95
T
omato
spider
mites
0.93
0.86
0.90
0.89
0.97
0.93
T
omato
tar
get
spot
0.77
0.86
0.81
0.87
0.95
0.91
T
omato
mosaic
virus
0.93
0.90
0.91
0.93
0.96
0.94
T
omato
yello
w
leaf
curl
virus
0.99
0.97
0.98
1.00
0.96
0.98
4.2.2.
Impact
of
the
confidence
thr
eshold
(
)
Ev
en
though
w
as
k
ept
fix
ed
in
order
to
capture
the
base
per
formance
le
v
el,
the
dynamic
change
of
such
a
threshold
in
actual
deplo
yment
becomes
the
direct
determinant
of
the
edge-cloud
w
orkload
distrib
ution.
Lo
wer
leads
to
less
of
floading
and
lo
wer
latenc
y
with
tight
bandwidth
constraints.
On
the
other
hand,
lar
ger
focuses
on
diagnostic
accurac
y
with
more
ambiguity
handled
in
the
cloud
pro
vided
that
the
bandwidth
is
suf
ficient.
In
theory
,
t
he
sensiti
vity
range
of
the
proposed
system
e
xtends
from
the
lo
west
(
!
0
,
processing
at
the
edge
resulting
in
93.54%
accurac
y)
to
the
highest
(
!
1
,
of
floading
to
the
cloud
resulting
in
96.56%
accurac
y).
4.3.
Confusion
matrix
analysis
The
models’
confusion
matrices
s
ho
wn
in
Figure
9
illustrate
challenges
f
aced
by
fine-grained
classification.
In
particular
,
Figure
9(a)
presents
the
confusion
matrix
of
the
cloud-based
Ef
ficientNetB3
model,
demonstrating
a
pronounced
diagonal
dominance
that
underscores
its
high
classification
accurac
y
across
the
majority
of
classes.
On
the
other
hand,
Figure
9(b)
i
llustrates
the
confusion
matrix
of
MobileNetV2,
where
the
analysis
re
v
eals
that
errors
are
not
randomly
distrib
uted
b
ut
rather
clustered
around
diseases
with
shared
characteristics,
thereby
indicating
higher
confusion
rates
among
phenotypically
similar
classes.
F
or
instance,
an
e
xample
of
the
tw
o
models
f
ailing
to
distinguish
between
tomato
early
blight
and
tomato
tar
get
spot
due
to
their
concentric
ring-lik
e
patterns
Ho
we
v
er
,
Ef
ficientNetB3
w
as
quite
the
contrary
in
terms
of
solving
the
class
under
-representation
challenge.
Specifically
,
it
w
as
able
to
reach
F1-score
of
0.90
on
potato
health
y
,
while
MobileNetV2
w
as
only
able
to
obtain
0.86.
Hybrid
edg
e-cloud
fr
ame
work
with
g
ener
ative
models
for
automated
phytopatholo
gy
(Aman
Bhar
dwaj)
Evaluation Warning : The document was created with Spire.PDF for Python.