18.03.2014 Views

Recognition of facial expressions - Knowledge Based Systems ...

Recognition of facial expressions - Knowledge Based Systems ...

Recognition of facial expressions - Knowledge Based Systems ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1<br />

If f ( net<br />

j<br />

) is the logistic activation function, then f ( net<br />

j<br />

) = and:<br />

−net<br />

1<br />

j<br />

+ e<br />

− x −1<br />

∂a j<br />

d(1<br />

+ e )<br />

= f ′(<br />

net<br />

j<br />

) =<br />

∂net<br />

dnet<br />

By solving the previous equation, the result is:<br />

d<br />

j<br />

+ e<br />

dnet<br />

− x −1<br />

( 1 )<br />

−x<br />

−2<br />

j<br />

j<br />

−x<br />

e 1<br />

=<br />

−x<br />

−x<br />

1+<br />

e 1+<br />

e<br />

−x<br />

1+<br />

e −1<br />

1<br />

=<br />

− x<br />

1+<br />

e 1+<br />

e<br />

−x<br />

1+<br />

e 1<br />

= ( −<br />

−x<br />

1+<br />

e 1+<br />

e<br />

= (1 − a ) a<br />

j<br />

= ( −1)(1<br />

+ e<br />

−x<br />

−x<br />

1<br />

)<br />

1+<br />

e<br />

− x<br />

)<br />

j<br />

e<br />

− x<br />

( −1)<br />

That means that:<br />

∂a<br />

j<br />

∂net<br />

j<br />

= ( 1−<br />

a ) a<br />

j<br />

j<br />

The first derivative <strong>of</strong> the relation is<br />

∂E<br />

∂<br />

a j<br />

and<br />

E<br />

p<br />

=<br />

1<br />

2<br />

i<br />

( t − a )<br />

i<br />

i<br />

2<br />

The sum is over the output units <strong>of</strong> the network. There are two cases to be considered<br />

for the partial derivative:<br />

- j is an output unit,<br />

- j is not an output unit.<br />

If j is an output unit, the derivative can be computed simply as:<br />

In the relation, for the case that<br />

∂E<br />

∂a<br />

=<br />

j<br />

i<br />

= ( t<br />

i<br />

( t<br />

= −1(<br />

t<br />

∂<br />

=<br />

∂a<br />

∂(<br />

ti<br />

− ai<br />

)<br />

− ai<br />

)<br />

∂a<br />

− a )( −1)<br />

i<br />

i<br />

i<br />

1 ( t )<br />

2<br />

i<br />

− ai<br />

j<br />

2 i<br />

− a )<br />

i<br />

a<br />

j<br />

is not an output unit, the relation is:<br />

j<br />

- 49 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!