









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










An Artificial Neural Network is mathematical model of human neural biology having certain performance characteristics in common with the biological neural system [1]. Neurons are the simple processing elements of a neural net. Neurons in a net are connected to each other by some direct link and each link has an associated weight. Each neuron has its internal state called its activation [1].
Figure 1-1.1: A simple neuron [1]
The figure 1.1 shows a simple neuron Y receiving input from X1, X2, and X3. The activation or output signals are x1, x2 and x3, while weights on the
connections X1, X2 and X3 are w1, w2, and w3. The net input to the neuron can be presented by the equation: y _ in w x 1 1 (^) w x 2 2 (^) w x 3 3 i-e the net input is the sum of the weighted signals from the neurons X1, X2 and X3. The activation y of neuron Y is given by some function of its net input, e-g binary step function [1]: ( ) 1 0 f x if x if x
1.2. Characterization of Neural Networks: Neural networks can be characterized by [1]: Pattern of connections between the neurons (i-e architecture) Method of determining the weights on the connections (i-e its training or learning algorithm) Activation function.
1.2.1 Network Architecture:
1.2.1.1. Single Layer Feed forward Neural Networks:
Neurons are organized in the form of layers in a layered network. In the simplest from we have an input layer of source nodes that project onto an output neurons [2]. Such a network is called a single layer network as depicted in the figure 1.2:
1.2.1.3. Recurrent Neural Networks: A recurrent neural network has at least one feedback loop. For example, a recurrent network may consist of a single layer of neurons with each neuron feeding its out signal back to the inputs of all other neurons [2].
Figure 1-4 : Recurrent neural network [4]
1.2.2. Methods of Determining the Weights:
1.2.2.1. Supervised Training:
In common terms it may be called as learning with teacher. Training is accomplished by a providing the neural network with input patterns each having an associated target. The weights on each connection are updated according to the algorithm [1].
1.2.2.2. Unsupervised Training:
In this type of learning neural nets group similar input without having the prior knowledge and without any target values. The weights are updated such that the similar input vectors have the same output unit [1].
1.2.2.3. Fixed weight nets:
In this type network no learning is involved. Weights are set to represent the constraint and quantity to be maximized or minimized.
1.2.3. Activation Functions: Some common activation functions are [1]: i. Identity function: f x ( ) x for all x ii. Binary step function (with threshold Ө): ( ) 1 0 f x if x if x
iii. Binary Sigmoid:
( )
f x (^1) e x iv. Bipolar Sigmoid:
( )
g x f x (^1) e x
1.3. Applications of Artificial Neural Networks:
Artificial Neural Networks are being used in the following areas [1]:
1.4. The McCulloch-Pitts Neuron:
The McCulloch-Pitts neuron is the earliest artificial neuron having the having several important features found in neural networks. The McCulloch–Pitts neuron can receive signal from any neuron. Connection path can be either excitatory (having weight w>0) or inhibitory (having weight w > -p, where p>0). The activation function is [1]:
(1) Initialize all weights Wi=0 (i=1 to n) (2) For each input training vector and target output pair s:t, do steps 3-5. (3) Set activations for input units: xi=si (i=1:n) (4) Set activation for output unit: Y=t (5) Adjust the weights for w (^) i ( new ) wi ( old ) xiy (i=1 to n) Adjust the bias: b ( new ) b ( old ) y
1.5.2. Pros and Cons:
Although Hebbian learning is simple and effective for the binary data but in some cases it fails even if the data is of binary type. Moreover the weight change rule is not so efficient. Thus it’s not a better choice for pattern classification [1].
1.6. Single Layer Perceptron:
Perceptron is more powerful and effective learning rule as compared to Hebb rule. Original perceptron had three layers of neurons: i-e sensory, associator and response units. A simple perceptron uses binary activation for sensory and associator and an activation of +1, 0 and -1 for response. Weight changes if an error occurred for a particular pattern according to the formula:
Where α is learning rate and t is target having values +1 and -1 [1].
Figure 1-6: Simple Perceptron for pattern classification [1]
1.6.1. Training Algorithms:
The algorithm of Single Layer Perceptron (Multiple Inputs Single Output) is as follows [1]: (1) Initialize weights and bias (For simplicity, set weights and bias to zero). Set
(2) While stopping condition is false, do step 3-7. (3) For each input training vector and target output pair s:t, do steps 4-6. (4) Set activations for input units: xi=si (i=1:n) (5) Compute response of output unit: y _ in b i xi wi ;
y
y in
y in
y in
, _
Xn
Xn +m
w 1
wi
wn
b
If no weights changed in step3, stop; else, continue.
1.6.2. Testing Algorithm:
Testing algorithm to verify the training of the single layer perceptron is as follow [1]: (1) Apply training algorithm to find out weights (2) For each input vector x to be classified, do steps 3- (3) Set activations of input units (4) Compute response of output units: y _ inj bj i xiwij.
y j
y in
y in
y in
, _
1.6.3. Pros and Cons:
The advantages of Single Layer Perceptron are [1]:
1.7. Multilayer Perceptron:
Single layer can only deal with the linear separable problems but in real life most of the problems are not linearly separable. So for that problems Multilayer perceptron are devised.
1.7.1. Feed Forward Backpropagation Neural Networks:
Feed Forward Bacakpropagatopn Neural Network consists of multiple layers. Two layers are input and output and other than these it has hidden layers. One such neural network is shown in the figure below:
Figure 1-7: Backpropagation neural network [1]
Training in the backpropagation networks consists of three stages: feed forward of input training pattern, backpropagation of the associator error and adjustment of weights.
1.7.1. Training Algorithm:
Training algorithm of backpropagation is as follows[1]: (1) Initialize weights and bias (set to small random values). (2) While stopping condition is false, do step 3-10. (3) For each input training vector and target output pair s:t, do steps 4-9.
vij jxi , and bias correction term as, v (^0) j j. Update weights and biases: (9) Each output unit (Yk, k=1 to m), updates its weights and biases as (j=0 to p), w (^) jk ( new ) wjk ( old ) wjk Each hidden unit (Zj, j=1 to p), updates its weights and biases as (i=0 to n), vij ( new ) vij ( old ) vij.
(10) Check stopping condition.
1.7.2. Testing Algorithm:
The testing algorithm is given below [1]: (1) Apply training algorithm to find out weights (2) For each input vector x to be classified, do steps 3- (3) Set activations of input units (4) Compute response of hidden units as
n j j i i ij z in v xv (^01)
z (^) j f ( z _ inj ) Compute response of output units as
p k k j j jk y in w z w (^01)
yk f ( y _ ink )
1.7.3. Pros and Cons:
The advantages and disadvantages of backpropagation algorithm are depicted below [5]:
A lack of explanation of what has been learned These networks are great at prediction and classification
These network are slow compared to other learning algorithms, but reasonable for a neural network
[1]. Laurene Fausett, “ Fundamentals of Neural Networks: Architectures, Algorithms and Applications” , 1/E, Prentice – Hall (1994). [2]. Simon Haykin, “Neural Networks: A comprehensive foundation”, 2/E, Pearson Education, Singapore (2001). [3]. Wikipedia, “Artificial Neural Networks”. URL: http://en.wikipedia.org/wiki/Image:Artificial_neural_network.svg [4]. Wikipedia, “Hopfield Net”. URL: http://en.wikipedia.org/wiki/Image:Hopfield-net.png [5]. “Backpropagation Neural Networks” URL: http://grb.mnsu.edu/grbts/doc/manual/Backpropagation_Neural_Netw.htm [6]. UCI Machine Learning Repository, “Hepatitis Data Set” URL: http://archive.ics.uci.edu/beta/datasets/Hepatitis