Lecture 7 - Neural Networks
Lecture 7 - Neural Networks
• Biological Neuron
• Activation functions
• Receptor system
Converts stimuli from the human body or external environment into
electrical pulses which convey the intended information to the brain
(neural network)
• Effector system
Converts the electrical impulses generated by the neural network
(output of the brain) into discernible responses as system output
The Biological Neuron
Input x1 x2 … xm
Output y
The Artificial Neuron
............
input xm x2 x1
weights wm ..... w2 w1
output y
Not all inputs are equal
The Artificial Neuron
............
input xm x2 x1
weights wm ..... w2 w1
processing ∑
Transfer Function
(Activation Function)
output y
• Now on your own, go through the same exercise and find the
weights and bias at the end of one epoch but using the
following conditions;
• Linear networks
• Linearity from input to output makes the network linear
regardless of the number of neurons or layers in network.
• Nonlinear networks
• Networks whose activation function performs non-
linearity operation >> how weights of network affect
output.
• The input source is not a layer and does not have neurons
Multi Layer Neural Network Models
Bias for hidden layer neurons: [𝒃𝒉𝟏 , 𝒃𝒉𝟐 ] = [1,1] and bias for output
neurons: [𝒃𝒐𝟏 , 𝒃𝒐𝟐 ] = [1, 1].
First Layer:
Multi Layer Neural Network Example 1
Output Layer:
Backpropagation Learning Concept
• Backward Pass(Backpropagation):
• The backpropagation algorithm involves propagating the error
backward through the network to update the weights.
• The gradient of the loss with respect to each weight in the
network is computed using the chain rule of calculus.
Neural Network Architectures
2nd Convolutional
layer
1st Convolutional
layer
Input Image
Neural Network Architectures
• Convolutional neural network architecture