Week 1
Week 1
Neural Network
Week1
By: Dr. Sumaya Sanober
Email :[email protected]
Outline
Neural network Types of Neural networks
Architecture of ANN
Biological Neural Network
Learning algorithms ANN
Biological vs. artificial neural
network Types of learning in neural network
Soma (cell body) - it sums all the incoming signals to generate input.
Axon - when the sum reaches a threshold value, neuron fires and the signal travels
down the axon to the other neurons.
Synapses - the point of interconnection of one neuron with other neurons. The
amount of signal transmitted depend upon the strength (synaptic weights) of the
connections.
How Brain Differs from Computers
Biological (Real) vs Artificial Neural Network
Characteristics Artificial Neural Network Biological(Real) Neural Network
• The artificial neural network receives information from the external world in the
form of pattern and image in vector form. These inputs are mathematically
designated by the notation x(n) for n number of inputs.
• Each input is multiplied by its corresponding weights. Weights are the information
used by the neural network to solve a problem.
• The activation function is set to the transfer function used to get the desired output.
There are linear as well as the Nonlinear activation function.
• In case the weighted sum is zero, bias is added to make the output not- zero or to scale
up the system response. Bias has the weight and input always equal to ‘1'.
• The sum corresponds to any numerical value ranging from 0 to infinity. To limit the
response to arrive at the desired value, the threshold value is set up.
• For this, the sum is passed through activation function. Some of the commonly used
activation function is - binary, sigmoidal (linear) and tan hyperbolic sigmoidal
functions(nonlinear).
Binary - the output has only two values either 0 and 1. For this, the threshold value is set
up. If the net weighted input is greater than 1, an output is assumed one otherwise zero.
Sigmoidal hyperbolic - this function has ‘s’ shaped curve. Here tan hyperbolic function is
used to approximate output from net input.
Structural design of Artificial Neural
Networks
• Input layer - It contains those units (Artificial Neurons) which receive input from the
outside world on which network will learn, recognize about or otherwise process.
• Output layer - It contains units that respond to the information about how it's learned
any task.
• Hidden layer - These units are in between input and output layers. The job of hidden
layer is to transform the input into something that output unit can use in some way.
• Most Neural Networks are fully connected that means to say each hidden neuron is fully
linked to the every neuron in its previous layer(input) and to the next layer (output) layer.
Types of Artificial Neural Network
Parameter Types Description
Feedforward - In which graphs have no
loops.
Based on connection pattern Feed Forward, Recurrent
Recurrent - Loops occur because of
feedback.
Single Layer - Having one hidden layer.
Based on the number of hidden E.g. , Single Perceptron
Single layer, Multi-Layer
layer Multilayer - Having multiple hidden
layers. Multilayer Perceptron
Fixed - Weights are fixed a priori and
not changed at all.
Based on nature of weights Fixed, Adaptive
Adaptive - Weights are updated and
changed during training.
Static - Memory less unit. The current
output depends on the current input.
E.g. , Feed forward network
Based on Memory unit Static, Dynamic Dynamic - Memory unit - The output
depends upon the current input as well
as the current output. E.g. , Recurrent
Neural Network
Neural Network Architectures
Neural Network Architectures
• Perceptron - Neural Network is having two input units and one output units with no
• Radial Basis Function Network - These networks are similar to the feed forward
Neural Network except radial basis function is used as activation function of these
neurons.
• Multilayer Perceptron - These networks use more than one hidden layer of neurons,
unlike single layer perceptron. These are also known as Deep Feed forward Neural
Networks.
• Recurrent Neural Network - Type of Neural Network in which hidden layer neurons
hidden layer neuron receives activation from the lower layer as well as it previous
activation value.
Neural Network Architectures
which memory cell is incorporated inside hidden layer neurons is called LSTM
network.
neuron is connected to every other neuron. The network is trained with input
pattern by setting a value of neurons to the desired pattern. Then its weights are
computed.
Neural Network Architectures
• Boltzmann machine network - these networks are similar to hop field network except
some neurons are input, while other are hidden in nature. The weights are initialized
randomly and learn through back propagation algorithm..
Learning Algorithms used in Neural Network
• Gradient descent - this is the simplest training algorithm used in case of
supervised training model. In case, the actual output is different from target
output, the difference or error is find out. The gradient descent algorithm
changes the weights of the network in such a manner to minimize this mistake.
• Conjugate Gradient Method: This method also avoids the information requirements
associated with the evaluation, storage, and inversion of the hessian matrix, as required
by the newton's method.
The main idea behind the quasi-newton method is to approximate the inverse hessian by
another matrix G, using only the first partial derivatives of the loss function.
Supervised Learning - In supervised learning, the training data is input to the network, and
the desired output is known to the weights that are adjusted until production yields desired
value.
Unsupervised Learning - The input data is used to train the network whose output is
known. The network classifies the input data and adjusts the weight by feature extraction in
input data.
Reinforcement Learning - Here the value of the output is unknown, but the network
provides the feedback whether the output is right or wrong. It is Semi-Supervised Learning.
Algorithm classification
1. Unsupervised Algorithms
Perceptron
Self-organization map
Radial basis function
2. Supervised Algorithms
Back proportion
Auto encoders
Hopfield network
Boltzmann machine
Restricted machine
3. Reinforcement Algorithms
Temporal difference learning
Q learning
Learning automate
Monte Carlo
SARSA
Uses of Neural Networks
• Clustering - The Neural network can be used to identify a unique feature of the
data and classify them into different categories without any prior knowledge of
the data.
• Association - A Neural Network can be trained to remember the particular
pattern, so that when the noise pattern is presented to the network, the network
associates it with the closest one in the memory or discard it. E.g. , Hopfield
• A neural network can perform tasks that a linear program can not.