Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated...

42
Artificial Neural Networks Francesco DI MAIO, Ph.D., Politecnico di Milano Department of Energy - Nuclear Division IEEE - Italian Reliability Chapter (Chair) STF - China Fellow [email protected]

Transcript of Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated...

Page 1: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Artificial Neural NetworksFrancesco DI MAIO, Ph.D.,

Politecnico di Milano

Department of Energy - Nuclear Division

IEEE - Italian Reliability Chapter (Chair)

STF - China Fellow

[email protected]

Page 2: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Measured

signals

f1

f2

Forcing

functions

Fault Detection, Diagnostics and Prognostics

Page 3: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Normal operation

Diagnostic system

Measured

signals

f1

f2

Forcing

functions

FAULT

DETECTION

(early recognition)

Fault Detection, Diagnostics and Prognostics

Page 4: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

FAULT

CLASSIFICATION

(correct assignment)

f1

f2

Normal operation

Diagnostic system

FAULT

DETECTION

(early recognition)

Measured

signals

f1

f2

Forcing

functions

Fault Detection, Diagnostics and Prognostics

Page 5: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

PROGNOSISLifetime estimation

Prognostic systemFAULT

CLASSIFICATION

(correct assignment)

f1

f2

Normal operation

Diagnostic system

FAULT

DETECTION

(early recognition)

Measured

signals

f1

f2

Forcing

functions

Fault Detection, Diagnostics and Prognostics

Page 6: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

ns

s

s

...

2

1

M

T

T

...

2

1

Plant

Sensors

Data Pre-

Processing

Feature

Selection

Classification

1 2 3 4 5 6 7 8 9 10 -2

-1

0

1

2

3

4

10

9

8

7

6

5

4

3

2

0 32 59 86 113 140 167 194 221 248 275 -1

-0.5

0

0.5

1

1

window {

Mean residual

Maximum wavelet coeff.

Minimum wavelet coeff.

Fault Type

h < n

h

f

f

f

s

s

s

...

2

1

Diagnostic System: Elements

Page 7: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

• Complex Plants and Systems

• Large number of monitored signals with non-linear

dependences

Difficulties in Detecting and Classyfying Faults

We resort to empirical models, rather than to

analytical models

Soft Computing Techniques:Artificial Neural Networks

Support/Relevance Vector Machines

Fuzzy Classifiers

Problem Statement: Challenges

Page 8: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Artificial Neural Networks

Page 9: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Empirical model

built by training

on input/output data

(modeling advantage)

Multivariate, non linear interpolators

Techniques capable of reconstructing the underlying

complex I/O nonlinear relations by combining multiple

simple functions (modeling & computational advantage)

What Are (Artificial) Neural Networks?

Page 10: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

In an artificial neural network, variables are associated with

nodes in a graph.

What Are (Artificial) Neural Networks?

Page 11: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Regression

yy x x , ,x y

deterministic stochastic

ˆ,f x w

regression prediction

yy~ ~

What Artificial Do Neural Networks Do?

Page 12: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Classification

(x, c)

x Discriminant

function

c1

c2

What Do Artificial Neural Networks Do?

Page 13: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

The output (u) of a node is the result of nonlinear

transformations (f) on the input variables (i) transmitted

along the links of the graph.

f

i1 i2 … in

u

What Are (Artificial) Neural Networks?

Page 14: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Neural networks are universal approximators of multivariate

non-linear functions.

KOLMOGOROV (1957):

For any real function continuous in [0,1]n, n2, there

exist n(2n+1) functions ml() continuous in [0,1] such that

),...,,( 21 nxxxf

12

1 1

21 )(),...,,(n

l

n

m

mmlln xxxxf

where the 2n+1 functions l’s are real and continuous.

Thus, a total of (2n+1) functions l () and n(2n+1) functions ml()

of one variable represent a function of n variables

What is the mathematical basis behind Artificial Neural Networks?

Page 15: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Neural networks are universal approximators of multivariate

non-linear functions.

CYBENKO (1989):

Let (•) be a sigmoidal continuous function. The linear combinations

N

j

n

i

jijij wx0 1

are dense in [0,1]n.

In other words, any function f: [0,1]n can be approximated by a

linear combination of sigmoidal functions.

Note that N is not specified.

What is the mathematical basis behind Artificial Neural Networks?

Page 16: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

INPUT

OUTPUTNumber of connections

117+85=117

ARTIFICIAL NEURAL NETWORKS

Page 17: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Multilayered

Feedforward NN

INPUT LAYER:

each k-th node (k=1, 2, …, ni) receives the (normalized) value of the

k-th component of the input vector and delivers the same valuex

HIDDEN LAYER:

each j-th node (j=1, 2, …, nh) receives

in

k

jjkk wwx1

0

and delivers

in

k

jjkkj wwxfz1

0 with f typically sigmoidal

Forward Calculation (input-hidden)

Page 18: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

OUTPUT LAYER:

each l-th node (l=1, 2, …, no) receives

hn

j

lljj wwz1

0

and delivers

hn

j

lljjl wwzfu1

0 f typically linear or sigmoidal

Forward Calculation (hidden-output)

Page 19: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

x1(1), x2

(1) | t(1)

x1(2), x2

(2) | t(2)

x1(p), x2

(p) | t(p)

x1(np), x2

(np) | t(np)

Synapsis

Weights

W

Available input/output patterns

Setting the NN Parameters: Training Phase

Page 20: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Initialize weights to random values

Update weights so as to minimize the average squared

output deviation error (also called Energy Function):

2

1 1

1

2

onnp

o

pl pl

p lp o

E u tn n

Minimization by gradient descent algorithms

Setting The NN Parameters: Error Backpropagation

TRUE l-th output of

the p-th pattern

Computed l-th output

of the p-th pattern

Page 21: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Error Backpropagation (output-hidden)

)1(1

)( nwun

nw lj

h

jl

o

lj

Updating weight wlj (output-hidden connections)

Learning coefficient Momentum

Without loss of generality, set np=1 and define as a user-defined output importance

(usually equal to 1)

being

Page 22: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Error Backpropagation (hidden-input)

Updating weight wjk (hidden-input connections)

Similarly to the updating of the output-hidden weigths,

being

1( ) ( 1)i

jk j j jk

o

w n u w nn

Learning coefficient Momentum

Page 23: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

After training:

• Synaptic weights fixed

• New input retrieval of information in the weights output

Capabilities:

• Nonlinearity of sigmoids NN can learn nonlinear mappings

• Each node independent and relies only on local info (synapses)

Parallel processing and fault-tolerance

Utilization of the Neural Network

Page 24: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

CONCLUSIONS

Advantages:

No physical/mathematical modelling efforts.

Automatic parameters adjustment through a training phase based on available input/output data. Adjustments such as to obtain the best interpolation of the functional relation between input and output.

Disadvantages:

“black box” : difficulties in interpreting the underlying physical model.

Page 25: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Application:

Detection of malfunctions in the secondary system of a nuclear power plant by neural networks

Page 26: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Objective

Build and train a neural network to classify different malfunctions in the secondary system of a boiling water reactor

Page 27: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Boiling Water Reactor

Page 28: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Secondary System

Turbine

PumpsCondenser

Vessel

Page 29: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Outputs

Class 1: Leakage through the second high-pressure preheater

Class 2: Leakage in the first high-pressure preheater to the drain tank

Class 3: Leakage through the first high-pressure preheater drain back-up valve to the condenser

Class 4: Leakage through high-pressure preheaters bypass valve

Class 5: Leakage through the second high-pressure preheater drain back-up valve to the feedwater tank

Page 30: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Transients

Class 1:

Valve EA1

Class 3: Valve VB20

Class 2:Valve EA2

Class 4:

Valve VB7

Class 5:Valve VA25

Page 31: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Variables inputs

Variable Signal Unit

1 Position level for control valve EA1 %

2 Position level for control valve EB1 %

3 Temperature drain before VB3 ºC

4 Temperature feedwater after EA2 train A ºC

5 Temperature feedwater after EB2 train B ºC

6 Temperature drain 6 after VB1 ºC

7 Temperature drain 5 after VB2 ºC

8Position level control valve before EA2

%

9Position level control valve before EB2

%

10 Temperature feedwater before EB2 train B ºC

Page 32: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Sensors position

Measurement: 36 sampling instants in [80, 290]s, one each 6 s

Var 1 (%)

Var 2 (%)

Var 4 (ºC)

Var 8 (%) Var 3 (ºC)

Var 5 (ºC)

Var 9 (%)

Var 10 (ºC)

Var 6 (ºC)Var 7 (ºC)

Page 33: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Input/Output patterns

Input: The class assignment is performed dynamically as a two-step time window of the measured signals shifts to the successive time t+1

Output: number of the class to which the variables belong

Page 34: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Training set

A training set was constructed containing 8 transients for each class.

For a transient of a given class the 35 patterns used to train the network take the following form

classxxxxxx

classtxtxtxtxtxtx

classtxtxtxtxtxtx

classxxxxxx

)35()36()35()36()35()36(

)()1()()1()()1(

)1()()1()()1()(

)1()2()1()2()1()2(

10102211

10102211

10102211

10102211

Page 35: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Network architecure

Nh, η, α optimized with grid optimization

Optimal values

Nh : 17

η: 0.55

α : 0.6

Page 36: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Test results

0.9

1

1.1

Neural Network and True values.TEST DATA

1.9

2

2.1

2.9

3

3.1

cla

ss

3.9

4

4.1

5 10 15 20 25 30 35

4.9

5

5.1

input pattern

3a

3b

3c

3d

3e

Page 37: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Comments

The real-valued outputs provided by the neural network closely approximate the class integer values since early times.

As time progresses, the network output class assignment approaches more and more closely the true class integer.

Page 38: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

New transients

Response of the neural network performance desirable when a new transient is found

Identification that something happens

Classification as don’t know

Page 39: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

New transients

New class

Class 6: Steam line valve to the second high-pressure preheater closing

Class 6:

Valve VA6

Page 40: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

1

2

3

4

5

6

Neural Network and True values.Class 6

Cla

ss

5 10 15 20 25 30 350

1

2

3

4

5

6

input pattern

Cla

ss

4a

4b

New transients

Close to Class 2 but with a larger deviation

Value provided by the neural network close to 0

Page 41: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

New transient

the large output error is due to the fact that some of the inputs which are fed into the network fall outside the ranges of the input values of the training transients

5 10 15 20 25 30 35-6

-5

-4

-3

-2

-1

0

1

input patterns

sig

nal valu

e

second transient

upper training level

lower training level

Temperature drain after VB2

Page 42: Artificial Neural Networks - LASAR · In an artificial neural network, variables are associated with ... What is the mathematical basis behind Artificial Neural Networks? Neural networks

Conclusions

A neural network has been constructed and trainedto classify different malfunctions in the secondarysystem of a boiling water reactor.

The network uses as input patterns the informationprovided by signals that are monitored in the plantand provides as output an estimate of the classassignment.

When a transient belonging to a different class is fedto the network, it is capable of detecting that thepattern does not belong to any of the classes forwhich it was trained