IAES
Inter
national
J
our
nal
of
Artificial
Intelligence
(IJ-AI)
V
ol.
15,
No.
5,
October
2026,
pp.
4635
4644
ISSN:
2252-8938,
DOI:
10.11591/ijai.v15.i5.pp4635-4644
r
4635
A
utoencoder
-based
anomaly
detection
in
water
cyber
-ph
ysical
systems
Sara
T
ahiri,
Mouad
Choukhairi,
Y
oussef
F
akhri,
Amnai
Mohamed
Computer
Science
Research
Laboratory
(LaRI),
Department
of
Computer
Science,
F
aculty
of
Sciences,
Ibn
T
of
ail
Uni
v
ersity
,
K
enitra,
Morocco
Article
Inf
o
Article
history:
Recei
v
ed
Jun
9,
2025
Re
vised
Jul
24,
2026
Accepted
Aug
12,
2026
K
eyw
ords:
Autoencoder
Big
data
analytics
Cyber
-ph
ysical
system
Internet
of
things
Machine
learning
Secure
w
ater
treatment
W
ater
distrib
ution
systems
ABSTRA
CT
Cyber
-ph
ysical
systems
(CPS)
are
at
the
core
of
enabling
services
in
the
critical
infrastructures,
such
as
a
sma
rt
w
ater
netw
ork,
hence
the
need
for
ef
fecti
v
e
anomaly
detection
to
ensure
operational
safety
and
security
.
In
this
paper
proposes
deep
w
ater
anomaly
detection
(DeepW
AD),
a
big
data-based
multiple
purpose
anomaly
detection
tool
that
le
v
erages
deep
learning,
supports
big
data,
and
internet
of
things
(IoT)
data
collection
and
analysis.
In
a
unified
processing
pipeline,
it
estimates
and
contrasts
three
kinds
of
autoencoders,
viz
adv
ersarial
autoencoder
(AAE),
v
ari
ational
autoencoder
(V
AE),
and
classical
autoencoder
(CAE).
These
models
are
then
appli
ed
to
a
practical
w
ater
treatment
system,
namely
the
secure
w
ater
treatment
(SW
aT)
dataset.
Using
reconstruction
errors,
DeepW
AD
analyzes
time-series
data
generated
by
IoT
sensors
in
order
to
disco
v
er
anomalies
including,
for
e
xample,
equipment
malfunctions,
sensor
errors,
and
c
yber
threats.
The
frame
w
ork
als
o
demonstrates
the
performance
of
v
arious
architectures
in
terms
of
data
comple
xity
,
training
consistenc
y
,
and
reconstruction
accurac
y
.
Due
to
its
generality
,
DeepW
AD
can
also
be
applied
in
other
CPS
domains
such
as
the
ener
gy
grid
or
industrial
control
systems.
It
serv
es
as
a
decision-support
tool
to
select
the
most
appropriate
anoma
ly
detection
model
depending
on
system
constraints
and
detection
requirements.
This
is
an
open
access
article
under
the
CC
BY
-SA
license
.
Corresponding
A
uthor:
Sara
T
ahiri
Computer
Science
Research
Laboratory
,
Department
of
Computer
Science,
F
aculty
of
Sciences
Ibn
T
of
ail
Uni
v
ersity
K
enitra,
Morocco
Email:
sara.tahiri@uit.ac.ma
1.
INTR
ODUCTION
Recently
,
for
the
operation
of
essential
infrastructures
such
as
w
ater
treatment
and
distrib
ution
netw
orks,
c
yber
-ph
ysical
systems
(CPS)
ha
v
e
been
taking
increasingly
significant
roles
[
1
]–[
4
].
The
netw
orks
of
such
systems
are
becoming
more
and
more
tightly
inte
grated,
and
sensors-based
monitoring,
real-time
data
acquisition,
and
automatic
control
play
a
v
ery
im
portant
role
[
5
],
[
6
].
But
this
added
comple
xity
and
interconnections
also
bring
about
ne
w
challenges,
such
as
security
,
reliability
,
and
anomaly
detection
[7],
[8].
Modern
w
ater
systems
incorporate
internet
of
things
(IoT)
technologies
to
monitor
v
arious
parameters
such
as
w
ater
flo
w
,
pressure,
chemical
concentration,
and
operational
status
[
9
].
These
IoT
-enabled
infrastructures
generate
lar
ge
v
olumes
of
time-series
data
that
require
scalable
and
intelligent
processing
to
detect
abnormal
beha
vior
[
10
],
[
11
].
Anomal
ies
may
arise
from
system
f
aults,
sensor
malfunctions,
or
intentional
c
yberattacks
[
12
].
Undetected,
such
anomalies
can
lead
to
significant
operational
disruptions,
w
ater
quality
de
gradation,
or
security
breaches
[
13
],
[
14
].
In
dynamic
and
data-rich
situations,
traditional
anomaly
detection
J
ournal
homepage:
http://ijai.iaescor
e
.com
Evaluation Warning : The document was created with Spire.PDF for Python.
4636
r
ISSN:
2252-8938
techniques
that
rely
on
rule-based
systems
or
basic
statistical
thresholds
frequently
f
ail.
In
contrast,
deep
learning
approaches,
particularly
those
based
on
autoencoder
(AE)
architectures,
of
fer
a
promising
sol
u
t
ion
[
15
],
[
16
].
These
models
are
capable
of
learning
comple
x
patterns
from
normal
operating
data
and
ident
ifying
de
viations
without
requiring
labeled
anomaly
data
[17].
Detecting
anomalies
in
CPS
has
emer
ged
as
a
vital
research
focus
due
to
the
gro
wing
dependence
on
automated
and
interconnected
sys
tems,
such
as
those
used
in
w
ater
treatment,
ener
gy
distrib
ution,
and
industrial
control
mechanisms.
Historically
,
anomaly
detection
has
depended
on
rule-based
techniques,
thresholding,
and
statistical
methods
[
18
],
[
19
].
Although
these
strate
gies
pro
vide
ease
of
use,
the
y
frequently
f
all
short
in
terms
of
fle
xibility
and
scalability
necessar
y
for
contemporary
CPS,
particularly
when
managi
ng
high-dimensional,
real-time
sensor
data.
W
ith
the
introduction
of
IoT
technologies
in
CPS,
the
amount
and
di
v
ersity
of
data
collected
ha
v
e
sur
ged,
necessitating
the
de
v
elopment
of
intelligent,
data-dri
v
en
approaches
[
20
],
[
21
].
Machine
learning
methods,
especially
deep
learning
models,
ha
v
e
g
arnered
interest
for
their
capacity
to
capture
intricate
nonlinear
patterns
in
time-series
data
without
the
need
for
labeled
anomaly
e
xamples
[22].
AE
ha
v
e
been
commonly
utilized
in
this
domai
n,
particularly
for
unsupervised
anomaly
detection.
Adv
ersarial
autoencoder
(AAE)
is
a
neural
netw
ork
designed
to
recreate
its
input.
W
hen
trained
on
data
representati
v
e
of
normal
operations,
it
aims
to
reduce
reconstruction
errors
f
or
e
xpected
beha
viors
[
23
],
[
24
].
Consequently
,
high
reconstruction
errors
from
ne
w
inputs
could
signify
anomalies.
Classical
autoencoder
(CAE)
ha
v
e
demonstrated
encouraging
performance
in
industrial
settings,
including
manuf
acturing
systems,
smart
b
uildings,
and
supervisory
control
and
data
acquisition
(SCAD
A)
netw
orks.
T
o
enhance
generalization
and
resilience,
v
ariational
autoencoder
(V
AE)
brings
a
probabilistic
latent
space
into
the
equation
[
21
].
V
AEs
are
better
equipped
to
manage
uncertainty
and
demonstrate
greater
rob
ustness
to
data
v
ariations,
which
is
especially
adv
antageous
in
the
dynamic
en
vironments
of
CPS.
AAE
b
uilds
on
the
CAE
concept
by
adding
a
generati
v
e
adv
ersarial
component
that
helps
to
re
gularize
the
latent
space
[22].
This
aids
the
model
in
learning
more
or
g
anized
representations,
potentially
increasing
the
distincti
on
between
normal
and
abnormal
patterns.
T
echniques
based
on
AAEs
ha
v
e
been
implemented
in
netw
ork
intrusion
detection
and
industrial
quality
control,
yielding
promising
outcomes.
The
secure
w
ater
treatment
(SW
aT)
dataset
is
widely
recognized
as
a
standard
benchmark
for
assessing
anomaly
detection
techniques
in
CPS.
It
replicates
a
w
ater
treat
ment
procedure
and
features
labeled
attac
k
scenarios,
making
it
particularly
suitable
for
v
erifying
unsupervised
models
[
22
],
[
23
].
Pre
vious
studies
emplo
ying
the
SW
aT
dataset
ha
v
e
concentrated
on
specific
model
types,
yet
fe
w
ha
v
e
pro
vided
systematic
e
v
aluations
across
v
arious
AE
architectures
within
a
unified
e
xperimental
frame
w
ork.
This
study
aims
to
fill
that
v
oid
by
performing
a
comparati
v
e
analysis
of
CAE,
V
AE,
and
AAE
models
within
the
frame
w
ork
of
IoT
-enabled
CPS,
utilizing
consistent
e
v
aluation
metrics
and
processing
protocols
to
e
v
aluate
their
relati
v
e
ef
ficac
y
in
identifying
anomalies
[25].
In
this
conte
xt,
this
study
propose
deep
w
a
ter
anomaly
detection
(DeepW
AD),
a
modular
and
comparati
v
e
frame
w
ork
for
unsupervised
anomal
y
detection.
DeepW
AD
inte
grates
real-time
IoT
data
acquisition,
big
data
preprocessing,
and
deep
learning
through
three
types
of
AE
models:
CAE,
V
AE,
and
AAE.
Rather
than
combining
the
outputs
of
these
models,
DeepW
AD
e
v
aluates
them
independently
to
identify
the
most
suitable
architecture
for
CPS
anomaly
detection
based
on
detection
accurac
y
,
rob
ustness,
and
training
ef
ficienc
y
.
Using
the
SW
aT
dataset,
the
frame
w
ork
is
v
erified,
a
widely
used
benchmark
that
simulates
real-w
orld
operations
of
a
w
ater
treatment
plant.
By
applying
and
comparing
the
three
models
within
a
c
onsistent
processing
pipeli
ne,
DeepW
AD
contrib
utes
v
aluable
insights
for
practitioners
seeking
to
enhance
anomaly
detection
capabilities
in
CPS
en
vironments.
The
rest
of
the
paper
is
or
g
anized
as
follo
ws.
Section
1
pro
vides
the
introduction
and
related
w
orks
by
re
vie
wi
ng
the
most
recent
literat
ure
on
the
use
of
AEs
for
CPS
anomaly
detection.
Section
2
pro
vides
a
detailed
presentation
of
the
methodology
,
where
the
system
architecture,
CAE,
V
AE,
and
AAE
models
are
emplo
yed,
and
the
data
processing
pipeline
is
presented.
Section
3
describes
results
and
disc
u
s
sion,
can
v
assing
model
perf
o
r
mance
in
t
erms
of
reconstruction
loss,
anomaly
scoring,
and
recei
v
er
operating
characteristic
(R
OC)
curv
es.
Finally
,
section
4
concludes
the
study
,
summarizing
k
e
y
findings
and
identifying
directions
for
future
research
and
real-w
orld
deplo
yment
of
the
DeepW
AD
frame
w
ork.
2.
METHOD
This
section
outlines
the
method
used
for
identifying
anomalies
in
a
smart
w
ater
treatment
syst
em
by
emplo
ying
deep
learning
techniques
and
data
from
IoT
sensors.
The
suggested
frame
w
ork,
named
Int
J
Artif
Intell,
V
ol.
15,
No.
5,
October
2026:
4635–4644
Evaluation Warning : The document was created with Spire.PDF for Python.
Int
J
Artif
Intell
ISSN:
2252-8938
r
4637
DeepW
AD,
as
sho
wn
in
F
igure
1
consists
of
four
main
components:
i)
g
athering
data
from
the
SW
aT
system,
ii)
data
pre
p
r
ocessing
and
feature
transformation,
iii)
training
three
dif
f
erent
AE
models
(CAE,
V
AE,
and
AAE),
and
i
v)
e
v
aluation
and
detection
through
reconstruction
error
analysis.
Figure
1.
DeepW
AD
frame
w
ork
Each
phase
is
designed
to
replicate
a
realistic
industrial
setting
where
training
is
conducted
e
xclusi
v
ely
on
normal
operational
data.
The
DeepW
AD
frame
w
ork
f
acilitates
comprehensi
v
e
anomaly
detection
within
a
CPS
en
vironment
that
utilizes
IoT
technology
.
It
comprises
se
v
eral
components:
data
g
athering
layer
,
where
real-time
sensor
data
is
collected
from
the
SW
aT
system,
monitoring
f
actors
lik
e
flo
w
rates,
tank
le
v
els,
pump
operations,
and
chemical
concentrations;
data
processing
layer
,
where
incoming
data
is
cleaned,
normalized,
and
se
gmented
into
time
windo
ws
usi
ng
a
sliding
windo
w
technique,
preserving
temporal
patterns
for
sequence
modeling;
model
layer
,
where
each
of
the
three
AEs
(CAE,
V
AE,
and
AAE)
is
trained
independently
on
the
processed
data.
This
modular
design
allo
ws
DeepW
AD
to
e
v
aluate
the
performance
of
each
architecture
indi
vidually
,
and
the
detection
layer
,
where
anomalies
are
detect
ed
by
e
v
aluating
t
he
reconstruction
error
during
testing.
Thresholds
are
used
to
flag
abnormal
windo
ws,
enabling
real-time
anomaly
identification
in
the
smart
w
ater
treatment
conte
xt.
The
SW
aT
dat
aset,
which
contains
11
days
of
t
ime-series
data
from
sensors
and
actuators
in
a
simulated
w
ater
treatment
plant,
is
used
as
the
foundation
for
training
and
testing.
The
first
7
days
contain
only
normal
beha
vior
and
are
used
for
training,
while
the
remaining
4
days
include
multiple
types
of
attack
scenarios
and
serv
e
as
the
test
set.
T
o
prepare
the
data
for
input
to
the
deep
learning
models,
the
follo
wing
preprocessing
steps
are
applied
as
summarized
in
T
able
1.
T
able
1.
Data
preprocessing
steps
applied
to
the
SW
aT
dataset
Step
Description
Data
cleaning
Remo
v
e
missing
v
alues
and
corrupted
sensor
readings
Feature
normalization
Apply
min-max
scaling
to
bring
all
features
to
a
[0,
1]
range
T
ime
windo
wing
Se
gment
the
continuous
time-series
into
o
v
erlapping
windo
ws
(e.g.,
100
steps)
Label
assignment
Labels
(normal/attack)
are
added
only
for
e
v
aluation,
not
for
training
Each
AE
models
(CAE,
V
AE,
and
AAE)
is
trained
independently
using
only
the
normal
part
of
the
SW
aT
dataset.
The
models
are
optimized
using
the
Adam
optimizer
o
v
er
25
epochs,
with
mean
squared
error
A
utoencoder
-based
anomaly
detection
in
water
cyber
-physical
systems
(Sar
a
T
ahiri)
Evaluation Warning : The document was created with Spire.PDF for Python.
4638
r
ISSN:
2252-8938
(MSE)
as
the
primary
reconstruction
loss.
The
training
process
aims
to
minimize
this
reconstruction
loss
for
normal
sequences.
During
inference,
each
time
series
se
gment
is
passed
through
the
trained
model.
Anomaly
scores
are
computed
based
on
reconstruction
error
,
and
a
threshold
is
applied
to
classify
the
se
gment
as
normal
or
anomalous.
The
complete
procedure
is
outlined
in
Algorithm
1.
Algorithm
1:
T
raining
and
inference
procedure
for
anomaly
detection
Requir
e:
Normal
training
data
X
train
,
test
data
X
test
,
windo
w
size
w
Ensur
e:
Anomaly
score
v
ector
S
1:
Pr
epr
ocessing:
2:
Normalize
features
in
X
train
and
X
test
3:
Se
gment
X
train
into
windo
ws
of
size
w
4:
Model
training:
5:
f
or
epoch
=
1
to
N
do
6:
Feed
training
windo
ws
into
the
AE
7:
Compute
reconstruction
loss
L
=
k
x
^
x
k
2
8:
Backpropag
ate
and
update
weights
9:
end
f
or
10:
Anomaly
detection:
11:
Se
gment
X
test
into
windo
ws
12:
f
or
each
test
windo
w
x
do
13:
Reconstruct
^
x
using
trained
model
14:
Compute
anomaly
score
s
=
k
x
^
x
k
2
15:
Append
s
to
S
16:
end
f
or
17:
r
etur
n
S
Each
AE
model’
s
performance
is
e
v
aluated
using
a
number
of
quantitati
v
e
metrics.
The
model’
s
capacity
to
dif
f
erentiate
between
normal
and
anomalous
windo
ws
is
measured
by
the
area
under
the
curv
e
(A
UC),
which
is
the
most
significant.
The
classification
performance
is
further
assessed
using
precision,
recall,
and
F1-score
follo
wing
the
applica
tion
of
a
decision
threshold.
T
o
determine
the
ideal
threshold
that
optimizes
the
F1-score,
a
grid
search
is
performed
on
the
v
alidation
set.
This
threshold
is
then
applied
to
the
anomaly
scores
of
the
test
data
for
final
classification.
The
threshold-based
classification
process
is
outlined
in
Algorithm
2.
Algorithm
2:
Threshold-based
anomaly
classification
Requir
e:
Anomaly
score
v
ector
S
,
Ground
truth
labels
Y
,
Threshold
search
space
T
Ensur
e:
Classification
labels
^
Y
,
Optimal
threshold
t
1:
Initialize
best
F1-score
F
1
=
0
2:
f
or
each
threshold
t
in
T
do
3:
Assign
predicted
label
^
y
i
=
1
if
s
i
>
t
,
else
0
4:
Compute
precision,
recall,
F1-score
5:
if
F1-score
>
F
1
then
6:
Update
F
1
F1-score
7:
Update
t
t
8:
end
if
9:
end
f
or
10:
Final
Classification:
11:
f
or
each
s
i
in
S
do
12:
^
y
i
=
1
if
s
i
>
t
,
else
0
13:
end
f
or
14:
r
etur
n
^
Y
,
t
3.
RESUL
TS
AND
DISCUSSION
This
section
presents
t
he
e
xperimental
results
obtained
from
applying
the
proposed
DeepW
AD
frame
w
ork
to
the
S
W
aT
dataset
for
anomaly
detection.
The
e
v
aluation
focuses
on
three
AEs-based
CAE,
V
AE,
and
AAE
which
are
assessed
based
on
their
training
dynamics,
reconstruction
accurac
y
,
anomaly
scoring
beha
vior
,
and
classification
ef
fecti
v
eness.
Each
model
w
as
trained
e
xclusi
v
ely
on
normal
operational
data
for
25
epochs,
and
their
training
and
v
alidation
loss
curv
es
were
analyzed
to
understand
con
v
er
gence
patterns
and
stability
.
Figure
2
presents
the
training
and
v
alidation
loss
curv
es
of
the
three
e
v
aluated
architectures.
As
sho
wn
in
Figure
2(a),
t
he
CAE
achie
v
ed
rapid
and
stable
con
v
er
gence
with
minimal
signs
of
o
v
erfitting,
indicating
Int
J
Artif
Intell,
V
ol.
15,
No.
5,
October
2026:
4635–4644
Evaluation Warning : The document was created with Spire.PDF for Python.
Int
J
Artif
Intell
ISSN:
2252-8938
r
4639
ef
ficient
learning
of
normal
patterns.
The
V
AE
as
sho
wn
in
Figure
2(b),
due
to
its
stochas
tic
latent
representation,
e
xhibited
moderate
v
ariability
during
training,
while
the
AAE
as
sho
wn
in
Figure
2(c)
encountered
instability
stemming
from
adv
ersarial
interactions
between
its
encoder
and
discriminator
components.
(a)
(b)
(c)
Figure
2.
T
raining
and
v
alidation
loss
curv
es
for:
(a)
CAE,
(b)
V
AE,
and
(c)
AAE
T
o
further
e
v
aluate
model
performance,
anomaly
scores
were
computed
using
the
mean
square
d
reconstruction
error
across
the
test
dataset.
Figure
3
illustrates
the
distrib
ution
of
these
scores,
re
v
ealing
that
CAE
pro
vided
a
clear
separation
between
normal
and
anomalous
samples,
with
tightly
clustered
normal
scores
and
a
br
oader
spread
for
attack
data.
The
V
AE
benefited
from
its
latent
v
ariability
,
producing
a
smoother
and
A
utoencoder
-based
anomaly
detection
in
water
cyber
-physical
systems
(Sar
a
T
ahiri)
Evaluation Warning : The document was created with Spire.PDF for Python.
4640
r
ISSN:
2252-8938
more
distinguishable
distrib
ution,
whereas
the
AAE
generated
noisier
and
less
distinct
score
patterns.
Figure
3
presents
the
anomaly-score
distrib
utions
obtained
from
the
reconstruction
errors.
Figure
3(a)
corresponds
to
the
CAE
model,
Figure
3(b)
corresponds
to
the
V
AE
model,
and
Figure
3(c)
correspond
to
the
AAE
model.
(a)
(b)
(c)
Figure
3.
Anomaly
score
distrib
utions
based
on
reconstruction
error
for:
(a)
CAE,
(b)
V
AE,
and
(c)
AAE
Int
J
Artif
Intell,
V
ol.
15,
No.
5,
October
2026:
4635–4644
Evaluation Warning : The document was created with Spire.PDF for Python.
Int
J
Artif
Intell
ISSN:
2252-8938
r
4641
Lastly
,
the
models’
classification
capabilities
were
assessed
through
R
OC
curv
es
and
their
corresponding
A
UC
v
alues,
as
depicted
in
Figure
4
and
summarized
in
T
able
2.
These
metrics
quantitati
v
ely
reflect
each
model’
s
ability
to
discriminate
between
normal
and
anomalous
data,
pro
viding
a
comprehensi
v
e
comparison
of
their
detection
ef
f
ecti
v
eness
within
the
DeepW
AD
frame
w
ork.
R
OC
curv
e
s
used
to
assess
performance
of
the
anomaly
detection
for
each
AE
architecture
of
the
three
models
are
illustrated
in
Figure
4.
Specifically
,
Fi
gure
4(a)
corresponds
to
the
CAE,
Figure
4
(b)
to
the
V
AE,
and
Figure
4(c)
to
the
AAE.
These
curv
es
enable
a
direct
visual
comparison
of
the
trade-of
f
between
true
positi
v
e
rate
and
f
alse
positi
v
e
rate
across
the
dif
f
erent
architectures.
Such
comparison
f
acilitates
the
assessment
of
relati
v
e
anomaly
detection
performance
among
the
three
models.
T
able
2.
A
UC
scores
for
each
AE
model
e
v
aluated
within
the
DeepW
AD
frame
w
ork
Model
A
UC
score
CAE
0.787
V
AE
0.791
AAE
0.782
(a)
(b)
(c)
Figure
4.
R
OC
curv
es
illustrating
anomaly
detection
performance
for:
(a)
CAE,
(b)
V
AE,
and
(c)
AAE
T
able
3
summarizes
the
k
e
y
characteristics
and
observ
ations
for
each
AE
model
based
on
performance,
stability
,
and
suitability
.
The
obtained
results
are
consistent
with
pre
vious
studies
on
reconstruction-based
anomaly
detection
in
CPS.
Similar
to
the
findings
reported
by
Malhotra
et
al.
[
16
]
and
F
¨
ahrmann
et
al.
[
22
],
AE-based
models
demonstrate
strong
capability
in
learning
normal
operational
beha
vior
without
requiring
labeled
attack
data.
The
proposed
DeepW
AD
frame
w
ork
achie
v
es
competiti
v
e
A
UC
scores
while
maintaining
a
computationally
ef
ficient
architecture,
making
it
suitable
for
real-time
CPS
deplo
yment.
A
utoencoder
-based
anomaly
detection
in
water
cyber
-physical
systems
(Sar
a
T
ahiri)
Evaluation Warning : The document was created with Spire.PDF for Python.
4642
r
ISSN:
2252-8938
T
able
3.
Comparati
v
e
summary
of
AE
models
used
in
the
DeepW
AD
frame
w
ork
Criteria
CAE
V
AE
AAE
T
raining
stability
High
Moderate
Lo
w
(adv
ersarial
dynamics)
Con
v
er
gence
speed
F
ast
Moderate
Slo
wer
Detection
accurac
y
(A
UC)
0.787
0.791
0.782
Generalization
Moderate
High
High
Rob
ustness
to
noise
Moderate
High
V
ariable
Interpretability
Easy
Medium
Lo
w
Computational
cost
Lo
w
Medium
High
Best
use
case
Real-time,
resource-constrained
en
vironments
Comple
x,
dynamic
systems
Structured
anomaly
detection,
feature-rich
data
4.
CONCLUSION
This
w
ork
introduced
a
deep
learning
approach,
DeepW
AD,
for
anomaly
detection
in
c
yber
-ph
ysical
infrastructure
system
s
in
the
w
ater
treatment
dom
ain.
Three
AEs
(CAE,
V
AE,
and
AAE)
are
applied
on
time
series
sensor
data
for
operational
anomaly
detection.
The
frame
w
ork
w
as
e
v
aluated
on
the
SW
aT
dataset,
and
results
indicated
that
all
considered
models
can
accurately
detect
anomalies,
and
V
AE
achie
v
es
a
good
trade-of
f
between
detection
and
rob
ustness.
While
the
CAE
sho
wed
its
rob
ust
con
v
er
gence
and
ef
fi
cienc
y
,
V
AE
achie
v
ed
the
best
ef
f
ecti
v
eness
in
anomaly
discrimination
via
its
probabilistic
property
,
and
AAE
had
to
be
carefully
tuned.
The
core
detection
engine
w
as
chosen
to
be
the
V
AE
model.
De
epW
AD
is
also
modular
,
and
other
v
ariants
of
AE
can
be
used,
depending
on
specific
requirements.
This
w
ork
will
address
real-time
deplo
yment,
be
it
latenc
y
and
scalability
optimization,
or
h
ybrid
models/attention
augmentation,
as
future
w
ork
to
further
refine
the
detection
accurac
y
.
FUNDING
INFORMA
TION
Authors
state
no
funding
in
v
olv
ed.
A
UTHOR
CONTRIB
UTIONS
ST
A
TEMENT
This
journal
uses
the
Contrib
utor
Roles
T
axonomy
(CRediT)
to
recognize
indi
vidual
author
contrib
utions,
reduce
authorship
disputes,
and
f
acilitate
collaboration.
Name
of
A
uthor
C
M
So
V
a
F
o
I
R
D
O
E
V
i
Su
P
Fu
Sara
T
ahiri
X
X
X
X
X
X
X
X
X
X
X
Mouad
Choukhairi
X
X
X
X
X
X
Y
oussef
F
akhri
X
X
X
X
X
X
X
Amnai
Mohamed
X
X
X
X
C
:
C
onceptualization
I
:
I
n
v
estig
ation
V
i
:
V
i
sualization
M
:
M
ethodology
R
:
R
esources
Su
:
Su
pervision
So
:
So
ftw
are
D
:
D
ata
Curation
P
:
P
roject
Administration
V
a
:
V
a
lidation
O
:
Writing
-
O
riginal
Draft
Fu
:
Fu
nding
Acquisition
F
o
:
F
o
rmal
Analysis
E
:
Writing
-
Re
vie
w
&
E
diting
CONFLICT
OF
INTEREST
ST
A
TEMENT
Authors
state
no
conflict
of
interest.
D
A
T
A
A
V
AILABILITY
The
SW
aT
dataset
analyzed
in
this
study
is
pro
vided
by
iT
rust,
Centre
for
Research
in
Cyber
Security
,
Sing
apore
Uni
v
ersity
of
T
echnology
and
Design
(SUTD)
at
https://www
.sutd.edu.sg/itrust/itrust-labs/datasets/dataset-characteristics/sw
at/.
Access
is
subject
to
iT
rust’
s
terms
of
usage.
Researchers
may
request
access
at
https://www
.sutd.edu.sg/itrust/request-for
-datasets/.
Int
J
Artif
Intell,
V
ol.
15,
No.
5,
October
2026:
4635–4644
Evaluation Warning : The document was created with Spire.PDF for Python.
Int
J
Artif
Intell
ISSN:
2252-8938
r
4643
REFERENCES
[1]
A.
Jones,
Z.
K
ong,
and
C.
Belta,
“
Anomaly
detection
in
c
yber
-ph
ysical
systems:
a
formal
methods
approach,
”
in
53r
d
IEEE
Confer
ence
on
Decision
and
Contr
ol
,
Dec.
2014,
pp.
848–853,
doi:
10.1109/CDC.2014.7039487.
[2]
D.
Abshari
and
M
.
Sridhar
,
“
A
surv
e
y
of
anomaly
detection
in
c
yber
-ph
ysical
systems,
”
Feb
.
2026,
arXiv:2502.13256v1
.
[3]
A.
A.
Cook,
G.
Misirli,
and
Z.
F
an,
“
Anomaly
detection
for
IoT
time-series
data
:
a
surv
e
y
,
”
IEEE
Internet
of
Things
J
ournal
,
v
ol.
7,
no.
7,
pp.
6481–6494,
Jul.
2020,
doi:
10.1109/JIO
T
.2019.2958185.
[4]
Q.
Xu,
S.
Ali,
and
T
.
Y
ue,
“Digital
twin-based
anomaly
detection
in
c
yber
-ph
ysical
systems,
”
in
2021
14th
IEEE
Confer
ence
on
Softwar
e
T
esting
,
V
erification
and
V
alidation
(ICST)
,
Apr
.
2021,
pp.
205–216,
doi:
10.1109/ICST49551.2021.00031.
[5]
R.
Geetha
and
T
.
Thilag
am,
“
A
re
vie
w
on
the
ef
f
ecti
v
eness
of
machine
learning
and
deep
learning
algorithms
for
c
yber
security
,
”
Ar
c
hives
of
Computational
Methods
in
Engineering
,
v
ol.
28,
no.
4,
pp.
2861–2879,
Jun.
2021,
doi:
10.1007/s11831-020-09478-2.
[6]
G.
P
ang,
C.
Shen,
L.
Cao,
and
A.
V
.
D.
Hengel,
“Deep
learning
for
anomaly
detect
ion:
a
re
vie
w
,
”
A
CM
Computing
Surve
ys
,
v
ol.
54,
no.
2,
pp.
1–38,
Mar
.
2022,
doi:
10.1145/3439950.
[7]
B.
Sharma,
L.
Sharma,
and
C.
Lal,
“
Anomaly
detection
techniques
using
deep
learning
in
IoT
:
a
surv
e
y
,
”
in
2019
International
Confer
ence
on
Computational
Intellig
ence
and
Knowledg
e
Economy
(ICCIKE)
,
Dec.
2019,
pp.
146–149,
doi:
10.1109/ICCIKE47802.2019.9004362.
[8]
R.
Kabore,
A.
K
ouassi,
R.
N’goran,
O.
Asseu,
Y
.
K
ermarrec,
and
P
.
Lenca,
“Re
vie
w
of
anomaly
detection
systems
in
industrial
control
systems
using
deep
feature
learning
approach,
”
Engineering
,
v
ol.
13,
no.
1,
pp.
30–44,
2021,
doi:
10.4236/eng.2021.131003.
[9]
A.
Chatterjee
and
B.
S.
Ahmed,
“IoT
anomaly
detection
methods
and
applications:
a
surv
e
y
,
”
Internet
of
Things
,
v
ol.
19,
Aug.
2022,
doi:
10.1016/j.iot.2022.100568.
[10]
Y
.
Luo,
Y
.
Xiao,
L.
Cheng,
G.
Peng,
and
D.
Y
ao,
“Deep
learning-based
anomaly
detection
in
c
yber
-ph
ysical
systems:
progress
and
opportunities,
”
A
CM
Computing
Surve
ys
,
v
ol.
54,
no.
5,
pp.
1–36,
Jun.
2022,
doi:
10.1145/3453155.
[11]
S.
Zia,
N.
Bibi,
S.
Alhazmi,
N.
Muhammad,
a
nd
A.
Alhazmi,
“Enhanced
anomaly
detection
in
IoT
through
transformer
-based
adv
ersarial
perturbations
model,
”
Electr
onics
,
v
ol.
14,
no.
6,
Mar
.
2025,
doi:
10.3390/electronics14061094.
[12]
G.
K
outroulis,
B.
Mutlu,
and
R.
K
ern,
“
A
causality-inspired
approach
for
anomaly
detection
in
a
w
ater
treatm
ent
system,
”
Sensor
s
,
v
ol.
23,
no.
1,
Dec.
2022,
doi:
10.3390/s23010257.
[13]
Z.
Dong,
K.
Liu,
D.
Han,
Y
.
Cao,
and
Y
.
Xia,
“Reconstruction-based
multi-scale
anomaly
detection
for
c
yber
-ph
ysical
systems,
”
in
2022
4th
International
Confer
ence
on
Industrial
Artificial
Intellig
ence
(IAI)
,
Aug.
2022,
pp.
1–6,
doi:
10.1109/IAI55780.2022.9976844.
[14]
M.
Catillo,
A.
Pecchia,
and
U.
V
illano,
“CPS-GU
ARD:
intrusion
detection
for
c
yber
-ph
ysical
systems
and
IoT
de
vices
using
outlier
-a
w
are
deep
autoencoders,
”
Computer
s
&
Security
,
v
ol.
129,
Jun.
2023,
doi:
10.1016/j.cose.2023.103210.
[15]
M.
R.
G.
Raman,
W
.
Dong,
and
A.
Mathur
,
“Deep
autoencoders
as
anomaly
detectors:
method
and
case
study
in
a
distrib
uted
w
ater
treatment
plant,
”
Computer
s
&
Security
,
v
ol.
99,
Dec.
2020,
doi:
10.1016/j.cose.2020.102055.
[16]
P
.
Malhotra,
A.
Ramakrishnan,
G.
Anand,
L.
V
ig,
P
.
Ag
arw
al,
and
G.
Shrof
f
,
“LSTM-based
encoder
-decoder
for
multi-sensor
anomaly
detection,
”
in
ICML
2016
Anomaly
Detection
W
orkshop
,
2016.
[17]
R.
Alguliye
v
,
L.
Sukhostat,
and
A.
Mammado
v
,
“
Anomaly
detection
in
c
yber
-
ph
ysical
s
ystems
based
on
BiGR
U-V
AE,
”
in
2022
IEEE
16th
International
Confer
ence
on
Application
of
Informat
ion
and
Communication
T
e
c
hnolo
gies
(AICT)
,
Oct.
2022,
pp.
1–5,
doi:
10.1109/AICT55583.2022.10013581.
[18]
C.
W
ang,
B.
W
ang,
H.
Liu,
and
H.
Qu,
“
Anomaly
detection
for
industrial
control
system
based
on
autoencoder
neural
netw
ork,
”
W
ir
eless
Communications
and
Mobile
Computing
,
v
ol.
2020,
pp.
1–10,
Aug.
2020,
doi:
10.1155/2020/8897926.
[19]
J.
Goh,
S.
Adepu,
K.
N.
Junejo,
and
A.
Mathur
,
“
A
dataset
to
support
research
in
the
design
of
secure
w
ater
treatment
systems,
”
in
Critical
Information
Infr
astructur
es
Security
(CRITIS
2016)
,
Cham,
Switzerland:
Springer
,
2017,
pp.
88–99,
doi:
10.1007/978-3-319-71368-7
8.
[20]
M.
Kra
vchik
and
A.
Shabtai,
“Detecting
c
yber
attacks
in
industrial
control
systems
using
con
v
olutional
neural
netw
orks,
”
in
2018
W
orkshop
on
Cyber
-Physical
Systems
Security
and
PrivaCy
,
Jan.
2018,
pp.
72–83,
doi:
10.1145/3264888.3264896.
[21]
G.
E.
Hinton
and
R.
R.
Salakhutdino
v
,
“Reducing
t
he
dimensionality
of
data
with
neural
netw
orks,
”
Science
,
v
ol.
313,
no.
5786,
pp.
504–507,
Jul.
2006,
doi:
10.1126/science.1127647.
[22]
D.
F
¨
ahrmann,
N.
Damer
,
F
.
Kirchb
uchner
,
and
A.
K
uijper
,
“Lightweight
long
short-term
memory
v
ariational
auto-encoder
for
multi
v
ariate
time
series
anomaly
detection
in
industrial
control
systems,
”
Sensor
s
,
v
ol.
22,
no.
8,
Apr
.
2022,
doi:
10.3390/s22082886.
[23]
H.
Sun,
Y
.
Huang,
L.
Han,
C.
Fu,
H.
Liu,
and
X.
Long,
“MTS-D
V
GAN:
anomaly
detection
in
c
yber
-ph
ysical
systems
using
a
dual
v
ariational
generati
v
e
adv
ersarial
netw
ork,
”
Computer
s
&
Security
,
v
ol.
139,
Apr
.
2024,
doi:
10.1016/j.cose.2023.103570.
[24]
V
.
Krysano
v
a
and
M.
White,
“
Adv
ances
in
w
ater
resources
assessment
with
SW
A
T—an
o
v
ervie
w
,
”
Hydr
olo
gical
Sciences
J
ournal
,
v
ol.
60,
no.
5,
pp.
771–783,
Apr
.
2015,
doi:
10.1080/02626667.2015.1029482.
[25]
J.
G.
Arnold
et
al.
,
“SW
A
T
:
model
use,
calibration,
and
v
alidation,
”
T
r
ansactions
of
the
ASABE
,
v
ol.
55,
no.
4,
pp.
1491–1508,
2012,
doi:
10.13031/2013.42256.
BIOGRAPHIES
OF
A
UTHORS
Sara
T
ahiri
obtained
her
bachelor’
s
de
gree
(B.Sc.)
in
Mathem
atics
and
Computer
Science
in
2018
and
her
master’
s
de
gree
in
Big
Data
and
Cloud
Computing
in
2020,
both
from
the
F
aculty
of
Sciences,
Ibn
T
of
ail
Uni
v
ersity
,
K
enitra,
Morocco.
Currently
,
she
i
s
pursuing
a
Ph.D.
at
the
Computer
Science
Research
Laboratory
(LaRI),
focusing
on
big
data,
machine
learning,
deep
learning,
and
IoT
.
She
can
be
contacted
at
email:
sara.tahiri@uit.ac.ma.
A
utoencoder
-based
anomaly
detection
in
water
cyber
-physical
systems
(Sar
a
T
ahiri)
Evaluation Warning : The document was created with Spire.PDF for Python.
4644
r
ISSN:
2252-8938
Mouad
Choukhairi
recei
v
ed
his
bachelor’
s
de
gree
(B.Sc.)
in
2018
in
Mathematics
and
Computer
Science
and
hi
s
master’
s
de
gree
in
Big
Data
and
Cloud
Computing
in
2020
from
F
aculty
of
Sciences,
Ibn
T
of
ail
Uni
v
ersity
,
K
enitra,
Morocco.
He
is
cur
rently
a
Ph.D.
student
in
Computer
Science
Research
Laboratory
(LaRI)
in
the
field
of
c
ybersecurity
,
IDS,
big
data,
machine
learning,
deep
learning,
and
IoT
.
He
can
be
contacted
at
email:
mouad.choukhairi@uit.ac.ma.
Y
oussef
F
akhri
obtained
a
Bachelor
of
Science
de
gree
in
Electronics
and
a
Diploma
of
Adv
anced
Scientific
Studies
(DESA)
in
Computer
Science
and
T
elecommunications
from
the
F
aculty
of
Sciences
of
Rabat
(Mohammed
V
Uni
v
ersity
-
Agdal,
Rabat,
Morocco),
in
2001
and
2003
respecti
v
ely
.
He
obtained
a
Ph.D.
Thesis
on
N
o
v
ember
17,
2007
fro
m
the
Uni
v
ersity
Mohammed
V
-
Agdal,
Rabat,
Morocco
in
collaboration
with
the
Polytechnic
Uni
v
ersity
of
Catalonia
(UPC),
Spain.
His
research
topics
are
information
theory
,
signal
processing,
wireless
telecom
munications
(WSN),
and
routing
protocols.
He
is
no
w
a
professor
of
higher
education
in
Computer
Science
at
the
F
aculty
of
Sciences,
Ibn
T
of
ail
Uni
v
ersity
,
K
enitra.
He
is
a
member
of
Research
Laboratory
in
Computer
Science
(LaRI).
He
can
be
contacted
at
email:
f
akhri@uit.ac.ma.
Amnai
Mohamed
obtained
his
bachelor’
s
de
gree
in
2000
in
IEEA
(Computer
Sci
ence,
Electronics,
Electricity
and
Automation)
at
the
Uni
v
ersity
Moulay
Ismail
in
the
city
of
Errachidia.
Then
he
obtained
his
master’
s
de
gree
in
2007,
his
Ph.D.
in
2011
in
T
elecommunications
and
Computer
Science
at
the
Uni
v
ersity
Ibn
T
of
ail
of
K
enitra,
Morocco.
His
current
research
interests
include
QoS
in
wireless
communication,
ad
hoc
netw
orks
and
telecommunication
traf
fi
c.
He
is
also
a
member
of
Research
Laboratory
in
Computer
Science
(LaRI)
and
he
is
currently
w
orking
as
a
Computer
Science
professor
at
the
Uni
v
ersity
Ibn
T
of
ail
of
K
enitra,
Morocco.
He
can
be
contacted
at
email:
mohamed.amnai@uit.ac.ma.
Int
J
Artif
Intell,
V
ol.
15,
No.
5,
October
2026:
4635–4644
Evaluation Warning : The document was created with Spire.PDF for Python.