Lecture 25 - Artificial Neural Networks
Lecture 25 - Artificial Neural Networks
(ANN)
Outline
Artificial Neuron
Applications of ANN
lion
bird
What is that?
Neural networks to the rescue…
4
Definition of ANN
“Data processing system consisting of a
large number of simple, highly
interconnected processing elements
(artificial neurons) in an architecture inspired
by the structure of the cerebral cortex of the
brain”
5
Inspiration from Neurobiology
Human Biological Neuron
6
Biological Neural Networks
Biological neuron
Biological Neural Networks
An artificial neuron
10
Artificial Neurons
Four basic components of a human biological The components of a basic artificial neuron
neuron
12
Model Of A Neuron
Wa
X1
Wb Y
X2 μ f(μ)
Wc
X3
14
• Each neuron has an internal state, called
its activation or activity level, which is a
function of the inputs it has received.
Typically, a neuron sends its activation as
a signal to several other neurons.
16
Artificial Neural Network
Synapse Nukleus
x1 w1
∑ ƒ
y Axon
x2 w2 Activation Function:
yin = x1w1 + ƒ(y-in) = 1 if y-in >= θ
x2w2 and ƒ(y-in) = 0
Dendrite
-A neuron receives input, determines the strength or the weight of the input, calculates the total
weighted input, and compares the total weighted with a value (threshold)
- If the total weighted input greater than or equal the threshold value, the neuron will produce the
output, and if the total weighted input less than the threshold value, no output will be produced
17
History
• 1943 McCulloch-Pitts neurons
• 1949 Hebb’s law
• 1958 Perceptron (Rosenblatt)
• 1960 Adaline, better learning rule (Widrow,
Huff)
• 1969 Limitations (Minsky, Papert)
• 1972 Kohonen nets, associative memory
18
• 1977 Brain State in a Box (Anderson)
• 1982 Hopfield net, constraint satisfaction
• 1985 ART (Carpenter, Grossfield)
• 1986 Backpropagation (Rumelhart, Hinton,
McClelland)
• 1988 Neocognitron, character recognition
(Fukushima)
19
Characterization
• Architecture
– a pattern of connections between neurons
• Single Layer Feedforward
• Multilayer Feedforward
• Recurrent
• Strategy / Learning Algorithm
– a method of determining the connection weights
• Supervised
• Unsupervised
• Reinforcement
• Activation Function
– Function to compute output signal from input signal
20
Single Layer Feedforward NN
x1 w11
w12 ym
w21
x2 yn
w22
output layer
Input layer
x1 V11
∑ ƒ w11
w12
V1n
w12 y1
x2 z2
∙ ∑ ƒ y2
∙
∙
∙ zn
xm Vmn ∑ ƒ
Input layer Output layer
Hidden layer
Contoh: CCN, GRNN, MADALINE, MLFF with BP, Neocognitron, RBF, RCE
22
Recurrent NN
Input Outputs
Hidden nodes
24
Unsupervised Learning
25
Reinforcement Learning
26
Activation Functions
• Identity
f(x) = x
• Binary step
f(x) = 1 if x >= θ
f(x) = 0 otherwise
• Binary sigmoid
f(x) = 1 / (1 + e-σx)
• Bipolar sigmoid
f(x) = -1 + 2 / (1 + e−σx)
• Hyperbolic tangent
f(x) = (ex – e-x) / (ex + e-x)
27
Exercise
• 2 input AND • 2 input OR
1 1 1 1 1 1
1 0 0 1 0 1
0 1 0 0 1 1
0 0 0 0 0 0
28
x1 w1= 0.5
∑ ƒ y
x2 w2 = 0.3
Activation Function:
yin = x1w1 + Binary Step Function
x2w2 θ = 0.5,
29
Where can neural network systems help…
• when we can't formulate an algorithmic
solution.
• when we can get lots of examples of the
behavior we require.
‘learning from experience’
• when we need to pick out the structure
from existing data.
30
Who is interested?...
• Electrical Engineers – signal processing,
control theory
• Computer Engineers – robotics
• Computer Scientists – artificial
intelligence, pattern recognition
• Mathematicians – modelling tool when
explicit relationships are unknown
31
Problem Domains
• Storing and recalling patterns
• Classifying patterns
• Mapping inputs onto outputs
• Grouping similar patterns
• Finding solutions to constrained
optimization problems
32
Coronary
Diseas
e
Classification
STO
P
0 1
Neura
11
11 1 00 0 00
Ne
l 1 00 11 Input
t 0 patterns
Input layer
Output layer
0 01 1 11
0 0 Sorte
00 1 11 pattern
d.
0 s 33
00 11
Clustering
00 11
1
0 11 1
0
00 11
00
0
1
34
ANN Applications
Medical Applications
Information
Searching & retrieval
Chemistry
Education
Business & Management
Applications of ANNs
• Signal processing
• Pattern recognition, e.g. handwritten
characters or face identification.
• Diagnosis or mapping symptoms to a
medical case.
• Speech recognition
• Human Emotion Detection
• Educational Loan Forecasting
36
Abdominal Pain Prediction
Intensity Duration
Mal Ag Temp WB Pain Pain
e e C adjustabl
1 20 37 10 1 1
eweight
s
37
Voice Recognition
38
Educational Loan Forecasting System
39
Advantages Of NN
NON-LINEARITY
It can model non-linear systems
INPUT-OUTPUT MAPPING
It can derive a relationship between a set of input & output
responses
ADAPTIVITY
The ability to learn allows the network to adapt to changes in
the surrounding environment
EVIDENTIAL RESPONSE
It can provide a confidence level to a given solution
40
Advantages Of NN
CONTEXTUAL INFORMATION
Knowledge is presented by the structure of the network.
Every neuron in the network is potentially affected by the
global activity of all other neurons in the network.
Consequently, contextual information is dealt with naturally in
the network.
FAULT TOLERANCE
Distributed nature of the NN gives it fault tolerant capabilities
NEUROBIOLOGY ANALOGY
Models the architecture of the brain
41
Comparison of ANN with conventional AI methods
42