ANN MasterKey
ANN MasterKey
• ReLU (Rectified Linear Unit): f (z) = max(0, z); outputs zero for negative
inputs and linear for positive inputs, giving sparse activations and efficient compu-
tation.[file:4][web:14]
1
Activation functions therefore control information flow, decide neuron firing, avoid satu-
ration of outputs, and enable multilayer networks to have greater representational power
than single–layer linear networks.[file:4][file:2]
Reference: [Link] (Unit 1, Section 1.6 Activation Functions) and
ANN Module 1 Lecture [Link] (Activation functions)[file:4][file:2]
An artificial neural network consists of many simple processing elements (artificial neu-
rons) arranged in layers and interconnected by weighted links to transform input patterns
into meaningful outputs.[file:4][file:1] A typical feed–forward ANN has three main layers:
an input layer that receives raw features, one or more hidden layers where weighted
sums plus activation functions perform non-linear processing, and an output layer that
produces the final decision or prediction.[file:4][file:1] Neurons in adjacent layers are usu-
ally fully connected, so every neuron in one layer sends its output (after activation) as
input to all neurons in the next layer, while the overall knowledge of the network is stored
in the distributed pattern of synaptic weights.[file:4]
In operation, an input vector is applied at the input layer; each hidden neuron com-
putes a weighted sum of its inputs plus a bias term and then passes this through a
non-linear activation function such as logistic or tanh.[file:4] The resulting hidden activa-
tions are again linearly combined and passed through activation functions at the output
layer, giving class labels, probabilities, or real–valued predictions depending on the prob-
lem.[file:4][file:1] Learning rules (e.g., perceptron learning or backpropagation) iteratively
adjust the weights so that the mapping from input layer to output layer approximates
the desired input–output relationship.[file:4]
[Insert Diagram Here – Source: [Link], Unit 1, Fig. 1.1.1 Artificial
Neural Network]
Reference: [Link] (Unit 1, Sections 1.1 and 1.5)[file:4]
The McCulloch–Pitts (MP) neuron is the first mathematical model of a biological neuron
and acts as a logical threshold element with multiple binary inputs and a single binary
output.[file:4][file:2] Each input xi ∈ {0, 1} is scaled by a weight wi , the neuron computes
P
the effective input u = i wi xi , and compares it with a threshold T ; the output is 1
(“fires”) if u ≥ T and 0 otherwise, using a step activation function.[file:4][file:2] Inputs
may be excitatory or inhibitory, and an inhibitory input can veto firing irrespective of
the total excitatory sum.[file:4]
For example, an AND function with two Boolean inputs x1 , x2 can be implemented
by choosing w1 = w2 = 1 and threshold T = 2; only when both inputs are 1 do we
2
get u = 2 ≥ T and output 1, otherwise the neuron outputs 0.[file:2] Similarly, an OR
function can be realised with w1 = w2 = 1 and T = 1, so any single active input
is sufficient to fire the neuron.[file:2] The MP model thus realises basic Boolean logic
but has important limitations: weights and thresholds are analytically chosen rather
than learned, the neuron output is strictly binary (discrete), and a single layer of such
neurons cannot model non–linearly separable problems like XOR.[file:4][file:2] Hence more
powerful neuron models (perceptron, Adaline) and multilayer networks were developed.
Reference: [Link] (Unit 1, Section 1.7) and ANN Module 1 Lecture [Link]
(McCulloch–Pitts model)[file:4][file:2]
Q2
(a) What are the main differences among the three models of artificial neuron,
namely, McCulloch-Pitts, Perceptron and Adaline? [5]
The McCulloch–Pitts neuron, perceptron, and Adaline are all single–neuron models but
differ in activation function, learning rule, and output representation.[file:4][file:2]
3
(b) Explain the structure and working of Biological Neural Network. [5]
A biological neuron (nerve cell) is an electrically excitable cell forming the basic building
block of the brain and nervous system, responsible for sensing, processing, and transmit-
ting information.[file:4][file:2] A typical neuron consists of a cell body (soma) contain-
ing the nucleus for protein synthesis, a tree–like set of dendrites that receive signals
from other neurons, and a single long axon that carries action potentials away from the
soma towards other neurons or effector organs.[file:4][file:2] At the terminal branches of
the axon are synaptic boutons, where neurotransmitters are released across synapses
(small gaps) to dendrites or soma of the next neuron, converting electrical signals to
chemical and back to electrical form.[file:4][file:2]
In a biological neural network, many billions of neurons are interconnected, and infor-
mation flows as sequences of brief electrical pulses called action potentials.[file:4] When
excitatory and inhibitory postsynaptic potentials arriving via dendrites change the mem-
brane voltage at the axon hillock sufficiently to cross a threshold, the neuron “fires” an
action potential that propagates along the axon and can excite or inhibit downstream
neurons at synapses.[file:4][file:2] Such networks are massively parallel, fault tolerant,
adaptive (through synaptic plasticity), and support higher functions like learning and
memory via modification of synaptic strengths over time.[file:4][file:3]
Reference: [Link] (Unit 1, Section 1.3) and ANN Module 1 Lecture [Link]
(Biological neuron structure and functions)[file:4][file:2]
4
(c) Differentiate between Biological Neural Network and Artificial Neural
Network. [5]
Q3
(a) Explain Perceptron Learning Algorithm with an example. [5]
2. For each training pair (x, t), where t ∈ {0, 1} is the desired output, compute the
actual output y using the current weights and activation function.
4. Repeat pattern presentations (epochs) until all training patterns are correctly clas-
sified or a maximum number of iterations is reached.[file:4]
Implementing OR function: The OR function for two binary inputs has the truth
table (0, 0) → 0, (0, 1) → 1, (1, 0) → 1, (1, 1) → 1.[file:4][file:2]
• Choose initial weights w1 = w2 = 0, bias b = 0, learning rate η = 1.
6
(b) Explain the architecture of Multilayered neural network. [5]
(c) Write and explain the steps of Back Propagation Learning algorithm. [5]
1. Initialization: Set all weights and biases in the network to small random values
(positive and negative) so that neurons start in a non-saturated region of their
activation functions.[file:4]
2. Forward pass: For a chosen training pair, apply the input vector to the input layer,
propagate activations layer by layer using weighted sums plus activation functions
to compute the network output.[file:4][file:3]
3. Error computation: Compute the error at each output neuron, usually using
squared error Ep = 21 k (dk − yk )2 for pattern p, where dk is desired and yk actual
P
7
output.[file:4][file:3]
• For each output neuron, compute its local gradient (delta) based on the deriva-
tive of the activation function and the error (dk − yk ).[file:4]
• For each hidden neuron, compute its delta as the derivative of its activation
multiplied by the weighted sum of deltas from the neurons it feeds into.[file:4][file:3]
5. Weight update: Adjust each weight wij proportional to the negative gradient
using
∂E
∆wij = −η = η δ j xi
∂wij
where η is learning rate, δj is local gradient at neuron j, and xi is the input to
weight wij .[file:4][file:3]
6. Iteration over patterns: Repeat forward and backward passes for all train-
ing pairs (one epoch), then cycle over epochs until the mapping error over the
training set falls below an acceptable threshold or a maximum epoch count is
reached.[file:4][file:3]
Q4
(a) Draw the architecture of Back Propagation Network and explain in detail.
[5]
8
and biases are updated according to the backpropagation learning rule.[file:4][file:3] The
network is trained with a large number of input–output pairs, iteratively adjusting weights
until the global error over the training set is acceptably low.[file:4] Typically, logistic or
tanh units are used in hidden layers, identity or logistic units in output layers, and gra-
dient descent (with optional momentum) is employed to speed up convergence and avoid
local minima.[file:4][file:3]
[Insert Diagram Here – Source: [Link], Unit 1, Fig. 1.5.6 and
Fig. 1.5.7 Backpropagation MLP]
Reference: [Link] (Unit 1, Section 1.5 Backpropagation MLP)
and Module-II [Link] (Unit 2, Section 2.7)[file:4][file:3]
(b) Differentiate between Feed forward and Feedback neural network. [5]
Reference: Module-II [Link] (Unit 2, Sections 2.8 Feed Forward Neural Networks
9
and 2.8.1 Feedback Neural Networks) and ANN [Link] (Types of NN)[file:3][file:1]
(c) What is Error Correction and how to minimize these errors? [5]
The error signal drives a control mechanism that adjusts the synaptic weights so that,
in a statistical sense, network outputs approximate desired outputs over the training
set.[file:3][file:4]
To minimize errors, gradient–based rules such as the delta rule, Widrow–Hoff LMS,
or backpropagation are used to move weights in the negative gradient direction of the error
surface.[file:4][file:3] For example, in the LMS rule applied to Adaline, the weight update
for pattern p is ∆wi = η(tp −op )xpi , directly proportional to the product of error and input,
ensuring that weights change most where error and input magnitude are large.[file:4][file:2]
Repeated presentation of many training examples causes the error function to converge
towards a minimum, thereby reducing classification or prediction errors; techniques like
appropriate learning rate selection, momentum, and sufficient training data further help
in minimizing residual errors and avoiding local minima.[file:3][file:4]
[Insert Diagram Here – Source: Module-II [Link], Fig. 2.4.1 Error correction learn-
ing block diagram]
Reference: Module-II [Link] (Unit 2, Section 2.4 Error Correction) and ANN-
[Link] (Unit 1, Adaline and LMS learning)[file:3][file:4]
The role of the activation function is to introduce non-linearity into the neuron model
so that multilayer networks can approximate complex, non–linearly separable decision
boundaries and functions.[file:4] By squashing the weighted sum plus bias into a bounded
range, activation functions stabilise outputs, make gradients finite for learning, and con-
trol whether or not a neuron “fires” strongly for a given input pattern.[file:4][file:2] They
10
also ensure differentiability, which is essential for gradient–based training algorithms like
backpropagation.[file:4][file:3]
The bipolar sigmoid (hyperbolic tangent) function maps net input to the range
[−1, 1] and is defined as
esum − e−sum
f (sum) = tanh(sum) =
esum + e−sum
(b) Why is ReLU the most commonly used Activation Function? [5]
The Rectified Linear Unit (ReLU) activation f (z) = max(0, z) is widely used in modern
deep networks because it combines computational simplicity with favourable gradient
properties.[file:4][web:14] (Source: Internet) Unlike sigmoid and tanh, which saturate for
large |z| and produce very small derivatives leading to vanishing gradients, ReLU has a
constant derivative of 1 for z > 0, thus maintaining strong gradient flow in active regions
and enabling faster and more stable training of deep models.[web:14][web:24] (Source:
Internet) Its implementation is cheap (just a threshold at zero), making it highly efficient
on hardware accelerators.[web:14][web:24] (Source: Internet)
ReLU also produces sparse activations because many neurons output exactly zero
for negative inputs, which effectively prunes the network for a given sample and can reduce
overfitting and improve generalization.[web:16][web:24] (Source: Internet) Empirically,
ReLU–based networks converge faster and achieve better performance on large–scale
vision and language tasks compared with sigmoid/tanh networks, which is why ReLU
(and its variants such as Leaky ReLU and Parametric ReLU) has become the default
choice for hidden layers in deep learning architectures.[file:4][web:14] (Source: Internet)
Reference: [Link] (Unit 1, Section 1.6.3 Tanh and ReLU) and
GeeksforGeeks / other DL resources on ReLU vs Sigmoid/Tanh (Internet Source)[file:4][web:14]
(c) Explain architecture of Artificial Neural Network with a neat diagram. [5]
An artificial neural network consists of many simple processing elements (artificial neu-
rons) arranged in layers and interconnected by weighted links to transform input patterns
into meaningful outputs.[file:4][file:1] A typical feed–forward ANN has three main layers:
11
an input layer that receives raw features, one or more hidden layers where weighted
sums plus activation functions perform non-linear processing, and an output layer that
produces the final decision or prediction.[file:4][file:1] Neurons in adjacent layers are usu-
ally fully connected, so every neuron in one layer sends its output (after activation) as
input to all neurons in the next layer, while the overall knowledge of the network is stored
in the distributed pattern of synaptic weights.[file:4]
In operation, an input vector is applied at the input layer; each hidden neuron com-
putes a weighted sum of its inputs plus a bias term and then passes this through a
non-linear activation function such as logistic or tanh.[file:4] The resulting hidden activa-
tions are again linearly combined and passed through activation functions at the output
layer, giving class labels, probabilities, or real–valued predictions depending on the prob-
lem.[file:4][file:1] Learning rules (e.g., perceptron learning or backpropagation) iteratively
adjust the weights so that the mapping from input layer to output layer approximates
the desired input–output relationship.[file:4]
[Insert Diagram Here – Source: [Link], Unit 1, Fig. 1.1.1 Artificial
Neural Network]
Reference: [Link] (Unit 1, Sections 1.1 and 1.5)[file:4]
Q2
(a) Draw the structure of the biological neuron and explain working of the
same in brief. [5]
A biological neuron (nerve cell) is an electrically excitable cell forming the basic building
block of the brain and nervous system, responsible for sensing, processing, and transmit-
ting information.[file:4][file:2] A typical neuron consists of a cell body (soma) contain-
ing the nucleus for protein synthesis, a tree–like set of dendrites that receive signals
from other neurons, and a single long axon that carries action potentials away from the
soma towards other neurons or effector organs.[file:4][file:2] At the terminal branches of
the axon are synaptic boutons, where neurotransmitters are released across synapses
(small gaps) to dendrites or soma of the next neuron, converting electrical signals to
chemical and back to electrical form.[file:4][file:2]
In a biological neural network, many billions of neurons are interconnected, and infor-
mation flows as sequences of brief electrical pulses called action potentials.[file:4] When
excitatory and inhibitory postsynaptic potentials arriving via dendrites change the mem-
brane voltage at the axon hillock sufficiently to cross a threshold, the neuron “fires” an
action potential that propagates along the axon and can excite or inhibit downstream
neurons at synapses.[file:4][file:2] Such networks are massively parallel, fault tolerant,
adaptive (through synaptic plasticity), and support higher functions like learning and
memory via modification of synaptic strengths over time.[file:4][file:3]
Reference: [Link] (Unit 1, Section 1.3) and ANN Module 1 Lecture [Link]
12
(Biological neuron structure and functions)[file:4][file:2]
[Insert Diagram Here – Source: [Link], Unit 1, Fig. 1.3.1 Schematic
of biological neuron]
(b) Write an algorithm of ADALINE and focus on its upper bound with
largest Eigen Value of its correlation matrix. [10]
Adaline (Adaptive Linear Neuron) is a single–layer network that uses a linear activation
function and adapts its weights using the Widrow–Hoff (delta/LMS) rule to minimize
mean square error between actual and desired outputs.[file:4][file:2] Its architecture is
similar to a perceptron but learning operates on the continuous net output before thresh-
olding, which leads to a convex quadratic error surface.[file:4][file:2]
Adaline training algorithm (using bipolar patterns):[file:2][file:4]
1. Initialization: Set all weights wi and bias b to zero (or small random values) and
choose learning rate α (often initially 1 for hand computation).[file:2]
2. Pattern activation: For each bipolar training pair (s, t) with inputs si ∈ {−1, 1}
and target t ∈ {−1, 1}, assign xi = si for i = 1, . . . , n.[file:2]
4. Linear output: Because Adaline is linear, take y = net as the neuron output
before any external thresholding.[file:4]
6. Weight and bias update: Adjust each weight and bias according to the delta
rule
wi ← wi + α e xi , b ← b + α e,
7. Stopping condition: Repeat steps 2–6 for all training pairs (an epoch) and iterate
epochs until there is no significant change in weights or the maximum weight change
is below a specified tolerance, indicating convergence.[file:2]
From an LMS theory viewpoint, if R is the input correlation matrix, the stability
and convergence speed of Adaline/LMS learning depend on the largest eigenvalue λmax
of R.[file:4] (Source: Internet for eigenvalue focus) To ensure convergence of the mean
13
square error for a fixed–step LMS algorithm, the learning rate α must satisfy an upper
bound of the form
2
0<α< ,
λmax
so that the weight–error dynamics are stable and oscillations are avoided.[web:21] (Source:
Internet) A smaller α yields slower but smoother convergence, while values approaching
the upper bound give faster learning at the risk of instability.[web:21] (Source: Internet)
Reference: ANN Module 1 Lecture [Link] (ADALINE model and training algo-
rithm) and [Link] (Unit 1, Section 1.8.3 ADALINE Network); eigen-
value bound concept from standard LMS theory (Internet Source)[file:2][file:4][web:21]
Q3
(a) What is Error Correction and how to minimize these errors? [5]
The error signal drives a control mechanism that adjusts the synaptic weights so that,
in a statistical sense, network outputs approximate desired outputs over the training
set.[file:3][file:4]
To minimize errors, gradient–based rules such as the delta rule, Widrow–Hoff LMS,
or backpropagation are used to move weights in the negative gradient direction of the error
surface.[file:4][file:3] For example, in the LMS rule applied to Adaline, the weight update
for pattern p is ∆wi = η(tp −op )xpi , directly proportional to the product of error and input,
ensuring that weights change most where error and input magnitude are large.[file:4][file:2]
Repeated presentation of many training examples causes the error function to converge
towards a minimum, thereby reducing classification or prediction errors; techniques like
appropriate learning rate selection, momentum, and sufficient training data further help
in minimizing residual errors and avoiding local minima.[file:3][file:4]
[Insert Diagram Here – Source: Module-II [Link], Fig. 2.4.1 Error correction learn-
ing block diagram]
Reference: Module-II [Link] (Unit 2, Section 2.4 Error Correction) and ANN-
[Link] (Unit 1, Adaline and LMS learning)[file:3][file:4]
14
tions strictly moving from earlier to later layers (no cycles), hence “feed–forward”.[file:4][file:3]
Every hidden neuron receives inputs from all neurons in the previous layer and sends its
output to all neurons in the next layer, typically using sigmoid activation functions to
model non-linear decision surfaces.[file:4]
In a typical MLP, the input layer simply distributes the components of the input
vector to the next layer.[file:4][file:1] Each neuron in a hidden layer computes a weighted
sum of all its inputs plus a bias and passes it through a non-linear activation g(x), usu-
ally logistic or tanh, to produce its activation.[file:4] These hidden units act as feature
detectors that transform raw inputs into an internal representation suitable for solving
the task (e.g., classification or regression).[file:4][file:3] The output layer again computes
weighted sums of hidden activations, followed by an activation function (e.g., logistic for
probabilities, identity for regression), producing the network output.[file:4][file:3] MLPs
can approximate non–linearly separable mappings such as XOR and are trained by back-
propagation with gradient descent, which adjusts all interlayer weights to minimize an
error function over a set of training examples.[file:4][file:3]
[Insert Diagram Here – Source: [Link], Unit 1, Fig. 1.5.4/1.8.2
Multilayer Perceptron]
Reference: [Link] (Unit 1, Sections 1.5 and 1.8) and Module-
II [Link] (Unit 2, Backpropagation and multilayer networks)[file:4][file:3]
(c) Define learning and memory. Explain learning algorithms in details. [5]
In neural networks, learning is the process of adapting synaptic weights and biases so
that the network can implement a desired input–output mapping, while memory refers
to the stored information represented by these learned connection strengths and network
states.[file:3] Biological brains implement associative memory, where patterns that occur
together become associated, and recalling one pattern can trigger the other; artificial
associative memories (auto– and hetero–associative networks) imitate this by mapping
input pattern vectors to stored output vectors.[file:3]
Learning algorithms can be broadly categorized as:[file:4][file:3]
• Supervised learning: Each input pattern is accompanied by a desired target
output; examples include perceptron learning, LMS (delta rule), backpropagation,
and correlation learning.[file:3][file:2] The goal is to minimize a cost function over
labeled data.
15
At a lower level, typical “basic learning laws” discussed in ANN include Hebbian rule
(weights increase when pre– and post–synaptic neurons fire together), perceptron rule
(supervised error–correction for threshold neurons), delta rule/LMS (gradient descent on
mean square error for linear units), and correlation/outstar rules for associative mem-
ories.[file:4][file:2] Together, these algorithms determine how experiences (training data)
are encoded into network memory as distributed weight patterns.
Reference: Module-II [Link] (Unit 2, Section 2.1 Learning and Memory, 2.2 Heb-
bian Learning, 2.3 Competitive Learning, 2.6 Supervised Learning) and ANN-Technical-
[Link] (Unit 1, Section 1.9 Basic Learning Laws)[file:3][file:4]
Q4
(a) What is the difference between Forward propagation and Backward Prop-
agation in Neural Networks? [5]
16
(b) Explain the different types of Gradient Descent in detail. [5]
Gradient descent is an optimization method that adjusts network parameters in the neg-
ative direction of the gradient of a loss function to find its minimum.[file:3] In neural net-
works, different variants trade off computational cost and convergence behaviour:[web:17][web:21]
(Source: Internet)
• Batch (full) Gradient Descent: Computes the gradient of the loss using the
entire training dataset before each update; the parameter update is
w ← w − η∇w J(w)
Modern deep learning typically relies on mini–batch gradient descent combined with
advanced optimizers (Momentum, RMSProp, Adam) that adapt learning rates and in-
corporate momentum terms, but the basic distinction between batch, stochastic, and
mini–batch remains fundamental.[web:17][web:21] (Source: Internet)
Reference: Module-II [Link] (Unit 2, Section 2.5 Gradient Descent Rules) and
GeeksforGeeks – “Different Variants of Gradient Descent” (Internet Source)[file:3][web:21]
(c) Write down Perceptron Learning Algorithm for OR function along with
calculation of each input vector. [5]
17
P
[w1 , . . . , wn ] and bias b, the net input is u = i wi xi + b and the output is typically
y = sgn(u) or a step function mapping to {0, 1}.[file:4][file:2]
Perceptron learning algorithm (supervised error–correction rule):[file:4][file:2]
1. Initialize all weights wi and bias b to small random values (or zero).
2. For each training pair (x, t), where t ∈ {0, 1} is the desired output, compute the
actual output y using the current weights and activation function.
4. Repeat pattern presentations (epochs) until all training patterns are correctly clas-
sified or a maximum number of iterations is reached.[file:4]
Implementing OR function: The OR function for two binary inputs has the truth
table (0, 0) → 0, (0, 1) → 1, (1, 0) → 1, (1, 1) → 1.[file:4][file:2]
After one epoch, the perceptron has learned weights w1 = 0, w2 = 1, b = 1, which correctly
classify all four OR patterns; geometrically, the decision boundary is a line separating
the class (0, 0) from the other three input points.[file:4][file:2]
Reference: [Link] (Unit 1, Sections 1.5 and 1.8) and ANN Module 1 Lecture Not
(Perceptron learning rule and OR example)[file:4][file:2]
18
March 2025 Paper (Artificial Neural Network – In-
sem)
Q1
(a) What is neural network topology? Explain any three topologies in detail.
[6]
Neural network topology refers to the structural arrangement of neurons (nodes) and con-
nections (edges) in a network, including the number of layers, number of neurons per layer,
and the pattern of interconnections and signal flow.[file:1][file:4] Topology determines how
information flows from inputs to outputs and strongly influences the computational ca-
pabilities and learning behaviour of the network.[file:1]
Three important topologies are:
Other specialised topologies include convolutional networks (local receptive fields and
weight sharing for images), radial basis function networks, and self–organizing maps,
but feed–forward and recurrent topologies form the core building blocks of most ANN
architectures.[file:1][file:4]
Reference: ANN [Link] (Neural net architecture and topology of neural net-
work architecture) and [Link] (Unit 1, Section 1.5 Neural Net Archi-
tecture)[file:1][file:4]
19
(b) Explain briefly McCulloch Pitt’s (MP) artificial neuron model. Give its
limitations. [5]
The McCulloch–Pitts (MP) neuron is the first mathematical model of a biological neuron
and acts as a logical threshold element with multiple binary inputs and a single binary
output.[file:4][file:2] Each input xi ∈ {0, 1} is scaled by a weight wi , the neuron computes
P
the effective input u = i wi xi , and compares it with a threshold T ; the output is 1
(“fires”) if u ≥ T and 0 otherwise, using a step activation function.[file:4][file:2] Inputs
may be excitatory or inhibitory, and an inhibitory input can veto firing irrespective of
the total excitatory sum.[file:4]
For example, an AND function with two Boolean inputs x1 , x2 can be implemented
by choosing w1 = w2 = 1 and threshold T = 2; only when both inputs are 1 do we
get u = 2 ≥ T and output 1, otherwise the neuron outputs 0.[file:2] Similarly, an OR
function can be realised with w1 = w2 = 1 and T = 1, so any single active input
is sufficient to fire the neuron.[file:2] The MP model thus realises basic Boolean logic
but has important limitations: weights and thresholds are analytically chosen rather
than learned, the neuron output is strictly binary (discrete), and a single layer of such
neurons cannot model non–linearly separable problems like XOR.[file:4][file:2] Hence more
powerful neuron models (perceptron, Adaline) and multilayer networks were developed.
Reference: [Link] (Unit 1, Section 1.7) and ANN Module 1 Lecture [Link]
(McCulloch–Pitts model)[file:4][file:2]
20
(c) Distinguish between Biological Neural Network and Artificial Neural Net-
works. [4]
Q2
(a) Discuss briefly the structure and function of a biological neuron. [7]
A biological neuron (nerve cell) is an electrically excitable cell forming the basic building
block of the brain and nervous system, responsible for sensing, processing, and transmit-
ting information.[file:4][file:2] A typical neuron consists of a cell body (soma) contain-
ing the nucleus for protein synthesis, a tree–like set of dendrites that receive signals
from other neurons, and a single long axon that carries action potentials away from the
soma towards other neurons or effector organs.[file:4][file:2] At the terminal branches of
the axon are synaptic boutons, where neurotransmitters are released across synapses
(small gaps) to dendrites or soma of the next neuron, converting electrical signals to
chemical and back to electrical form.[file:4][file:2]
In a biological neural network, many billions of neurons are interconnected, and infor-
mation flows as sequences of brief electrical pulses called action potentials.[file:4] When
excitatory and inhibitory postsynaptic potentials arriving via dendrites change the mem-
brane voltage at the axon hillock sufficiently to cross a threshold, the neuron “fires” an
action potential that propagates along the axon and can excite or inhibit downstream
neurons at synapses.[file:4][file:2] Such networks are massively parallel, fault tolerant,
adaptive (through synaptic plasticity), and support higher functions like learning and
memory via modification of synaptic strengths over time.[file:4][file:3]
Reference: [Link] (Unit 1, Section 1.3) and ANN Module 1 Lecture [Link]
(Biological neuron structure and functions)[file:4][file:2]
(b) Obtain the output of the neuron Y for the network shown in figure using
activation function as Binary Sigmoidal and Bipolar Sigmoidal. [8]
The exact numeric output depends on the specific weights, inputs, and bias values in the
given figure, which are not present in the shared resources; however, the procedure for
computing the neuron output using binary and bipolar sigmoidal activation functions is
as follows.[file:4][file:2]
1. Compute net input: For neuron Y with inputs xi , weights wi , and bias b, compute
X
net = wi xi + b.
i
1
ybinary = f (net) = ,
1 + e−net
22
which produces an output in (0, 1) suitable for representing probabilities or normal-
ized activations.[file:4][file:2]
3. Bipolar sigmoidal (tanh) output: Use the bipolar sigmoid (hyperbolic tangent)
function
enet − e−net
ybipolar = f (net) = tanh(net) = net ,
e + e−net
giving an output in (−1, 1).[file:4]
Thus, once the diagram’s parameters are known, one first computes the scalar net
input and then applies each sigmoid function to get the corresponding neuron outputs
under binary and bipolar sigmoidal activations.[file:4][file:2]
Reference: [Link] (Unit 1, Sections 1.6.1–1.6.3 Activation Func-
tions) and ANN Module 1 Lecture [Link] (Binary and bipolar sigmoid definitions)[file:4][file:2]
Q3
(a) Write and explain Hebbian learning Algorithm. [6]
2. For each input pattern, compute neuron outputs using the current weights and
activation functions.[file:3]
3. Update weights according to the Hebbian rule above for all active connections.
4. Repeat for many presentations until weights converge or desired properties (e.g.,
stable associative recall) are achieved.[file:3]
23
Hebbian learning underlies models like linear associators and is used to construct associa-
tive memory networks such as Hopfield and BAM via Hebbian weight matrices.[file:3][file:4]
Reference: Module-II [Link] (Unit 2, Section 2.2 Hebbian Learning) and ANN-
[Link] (Unit 1, Basic learning laws)[file:3][file:4]
(b) What is error correction learning? Explain in detail with diagram. [5]
The error signal drives a control mechanism that adjusts the synaptic weights so that,
in a statistical sense, network outputs approximate desired outputs over the training
set.[file:3][file:4]
To minimize errors, gradient–based rules such as the delta rule, Widrow–Hoff LMS,
or backpropagation are used to move weights in the negative gradient direction of the error
surface.[file:4][file:3] For example, in the LMS rule applied to Adaline, the weight update
for pattern p is ∆wi = η(tp −op )xpi , directly proportional to the product of error and input,
ensuring that weights change most where error and input magnitude are large.[file:4][file:2]
Repeated presentation of many training examples causes the error function to converge
towards a minimum, thereby reducing classification or prediction errors; techniques like
appropriate learning rate selection, momentum, and sufficient training data further help
in minimizing residual errors and avoiding local minima.[file:3][file:4]
[Insert Diagram Here – Source: Module-II [Link], Fig. 2.4.1 Error correction learn-
ing block diagram]
Reference: Module-II [Link] (Unit 2, Section 2.4 Error Correction) and ANN-
[Link] (Unit 1, Adaline and LMS learning)[file:3][file:4]
[Insert Diagram Here – Source: Module-II [Link], Fig. 2.4.1 Error correction learn-
ing]
24
(c) Differentiate between Feed Forward and Feedback neural network. [4]
Reference: Module-II [Link] (Unit 2, Sections 2.8 Feed Forward Neural Networks
and 2.8.1 Feedback Neural Networks) and ANN [Link] (Types of NN)[file:3][file:1]
Q4
(a) Draw the architecture of multilayer feed forward networks. Explain input
layer, hidden layer & output layer computations in multilayer feed forward
networks. [7]
A multilayer feed–forward network consists of an input layer, one or more hidden layers,
and an output layer, with weights only between adjacent layers and no recurrent connec-
tions.[file:4][file:3] Connections go strictly forward from input to output, so the network
can be represented as a layered directed acyclic graph; this is the standard architecture
25
used with backpropagation.[file:3][file:1]
Input layer computations: The input layer has one neuron per input attribute; it
usually performs no computation other than optionally appending a constant bias input
of value 1.[file:4][file:1] The feature vector x is simply presented at this layer and passed
to the first hidden layer as raw signals.
Hidden layer computations: Each hidden neuron j receives outputs xi from all
neurons in the previous layer, computes a net input
X
uj = wij xi + bj
i
and then applies a non-linear activation function yj = f (uj ), often logistic or tanh, to
produce its activation.[file:4][file:3] Hidden layers thus implement non-linear feature trans-
formations of the input space and allow the network to approximate complex functions
such as XOR or general decision boundaries.[file:4]
Output layer computations: Output neurons take hidden activations as inputs and
similarly compute weighted sums plus bias followed by an activation function appropriate
to the task (e.g., logistic/softmax for classification or identity for regression).[file:3][file:4]
The collection of outputs y forms the network’s response; during training, backpropa-
gation uses derivatives of the activation functions to adjust weights from both hidden
and output layers so that the mapping from input to output approximates the desired
targets.[file:3]
[Insert Diagram Here – Source: Module-II [Link], Unit 2, Fig. 2.8.1 Basic structure
of Feed Forward Neural Network]
Reference: Module-II [Link] (Unit 2, Sections 2.7 and 2.8) and ANN-Technical-
[Link] (Unit 1, Sections 1.5 and 1.8 on multilayer feed–forward networks)[file:3][file:4]
1. Initialize all weights wi and bias b to small random values (or zero).
2. For each training pair (x, t), where t ∈ {0, 1} is the desired output, compute the
actual output y using the current weights and activation function.
26
3. If y = t, no change is made; if y ̸= t, update each weight and bias using
4. Repeat pattern presentations (epochs) until all training patterns are correctly clas-
sified or a maximum number of iterations is reached.[file:4]
Implementing OR function: The OR function for two binary inputs has the truth
table (0, 0) → 0, (0, 1) → 1, (1, 0) → 1, (1, 1) → 1.[file:4][file:2]
After one epoch, the perceptron has learned weights w1 = 0, w2 = 1, b = 1, which correctly
classify all four OR patterns; geometrically, the decision boundary is a line separating
the class (0, 0) from the other three input points.[file:4][file:2]
Reference: [Link] (Unit 1, Sections 1.5 and 1.8) and ANN Module 1 Lecture Not
(Perceptron learning rule and OR example)[file:4][file:2]
27