Escolar Documentos
Profissional Documentos
Cultura Documentos
Introduction to computer
models and neurocomputation
Artificial Neural Network (ANN)
Simplification
Modeling
Artificial neural network vs Computer
Artificial neural network Computer
• Learning • Programming
Based on the idea of how the brain works in the following two senses:
1. The knowledge of the network is acquired through a learning process.
2. Knowledge is stored in the connections between neurons, called synaptic weights.
Artificial Neural Network (ANN)
Output
Inputs
Neuron model of McCulloch-Pitts
Output
Inputs
Transfer functions:
1. A set of connections transmits
• Threshold Function
information from other neurons
𝟏 𝒊𝒇 𝒙 ≥ 𝟎
(Inputs). 𝒇 𝒙 =ቊ
𝟎 𝒊𝒇 𝒙 < 𝟎
2. The processing unit adds the inputs
and performs a non-linear transfer
• Sign function
function. (eg Threshold Function).
𝟏 𝒊𝒇 𝒙 ≥ 𝟎
3. The activation value (Output) is 𝒇 𝒙 =ቊ
−𝟏 𝒊𝒇 𝒙 < 𝟎
sent to other neurons.
Binary neuron model (perceptron)
𝑥1 𝑤1
𝑥2 𝑤2
𝑤3
𝑥3 f(h) Output
𝑤𝑛
𝑥𝑛
Inputs • Weighted addition of inputs
• Non-lineal function
Transfer functions: • Binary output
𝟏 𝒊𝒇 𝒉 ≥ 𝜽
𝒇 𝒉 =ቊ 𝒉 = 𝒙𝟏 ∙ 𝒘𝟏 + 𝒙𝟐 ∙ 𝒘𝟐 + ⋯ + 𝒙𝒏 ∙ 𝒘𝒏
𝟎 𝒊𝒇 𝒉 < 𝜽
θ: threshold
h: synaptic potential
w: synaptic weights
ANN for AND?
X1 X2 AND
𝑥1 𝑤1
Output 0 0 0
f(h) 0 1 0
𝑤2
𝑥2 1 0 0
Inputs 1 1 1
𝑥1
𝑥2
ANN for AND?
X1 X2 AND
𝑥1 𝑤1
Output 0 0 0
f(h) 0 1 0
𝑤2
𝑥2 1 0 0
Inputs 1 1 1
• W1=1
• W2=1
• θ=1.5 𝑥1
𝑥2
ANN for AND?
X1 X2 AND
𝑥1 𝑤1
Output 0 0 0
f(h) 0 1 0
𝑤2
𝑥2 1 0 0
Inputs 1 1 1
• W1=1
• W2=1
• θ=1.5 𝑥1
𝑥2
ANN for OR?
X1 X2 AND
𝑥1 𝑤1
Output 0 0 0
f(h) 0 1 1
𝑤2
𝑥2 1 0 1
Inputs 1 1 1
𝑥1
𝑥2
ANN for XOR?
X1 X2 AND
𝑥1 𝑤1
Output 0 0 0
f(h) 0 1 1
𝑤2
𝑥2 1 0 1
Inputs 1 1 0
𝑥1
𝑥2
Neurons with continuous output
𝑥1 𝑤1
𝑥2 𝑤2
𝑤3
𝑥3 f(h) Output
𝑤𝑛 Continuous output
between 0 an 1
𝑥𝑛
Inputs
Transfer functions:
Sigmoid
1
𝑓 ℎ =ቊ
1 + 𝑒 −𝛽ℎ
Sigmoid function
1
𝑓 ℎ =ቊ
1 + 𝑒 −𝛽ℎ
Transfer functions:
𝑓 ℎ = tanh(𝛽ℎ)
Types of Neural Networks
Inputs Output
𝑤𝑗𝑖1
Inputs
Output Multi-layer
2
𝑤𝑗𝑖1 𝑤𝑘𝑗
3
𝑤𝑙𝑘
Single-layer Inputs
Outpus
Learning paradigms