Unit 3: Neural networks
Artificial Intelligence & Soft Computing notes · PTU syllabus (PGCA1926)
On this page
- Unit summary
- Soft computing vs hard computing
- Areas and applications of soft computing
- The artificial neuron and activation functions
- Learning rules
- Single-layer perceptrons
- Back-propagation networks
- Associative memory
- Adaptive resonance theory
- Self-organising maps and unsupervised networks
- Key terms
- Quick revision
- Important questions
Unit summary
Soft computing tolerates imprecision to solve hard real-world problems, and neural networks learn from data. This unit covers soft versus hard computing, the areas and applications of soft computing, learning rules and activation functions, single-layer perceptrons, back-propagation networks, associative memory, adaptive resonance theory, self-organising maps and unsupervised learning networks.
After this unit you can
- Compare soft and hard computing and list applications
- Explain learning rules and activation functions
- Train perceptrons and back-propagation networks
- Explain associative memory, ART and self-organising maps
PTU syllabus topics
- Soft computing vs hard computing
- major areas and applications of soft computing
- neural network learning rules and activation functions
- single-layer perceptrons
- backpropagation networks and architecture
- associative memory
- adaptive resonance theory
- self-organizing maps
- unsupervised learning networks
- 1Forward pass
Compute outputs layer by layer
- 2Compute error
Target − output
- 3Backward pass
Propagate error gradients
- 4Update weights
Δw = η × δ × input
- 5Repeat for each epoch
Topic 1
Soft computing vs hard computing
Basis
Precise models, binary logic, exact answers
Approximate reasoning tolerant of imprecision, uncertainty and partial truth
Techniques
Conventional algorithms, numerical analysis
Neural networks, fuzzy logic, genetic algorithms, probabilistic reasoning
Programs
Written explicitly
Often learn or evolve
Example
Payroll calculation
Handwriting recognition, washing machine control
Topic 2
Areas and applications of soft computing
Neural networks
Learning from examples — image and speech recognition
Fuzzy logic
Reasoning with vague concepts — appliance and traffic control
Evolutionary computation
Optimisation — scheduling, design
Probabilistic reasoning
Uncertainty — Bayesian networks
Hybrid systems
Neuro-fuzzy, genetic-fuzzy controllers
Topic 3
The artificial neuron and activation functions
Net input
net = Σ wᵢxᵢ + b
Output
y = f(net)
Binary step
1 if net ≥ θ else 0
Perceptrons
Linear
f(net) = net
ADALINE, regression outputs
Sigmoid (logistic)
1 ÷ (1 + e^(−net)); range 0–1
Back-propagation, probabilities
Tanh (bipolar sigmoid)
Range −1 to 1
Hidden layers
ReLU
max(0, net)
Deep networks
Topic 4
Learning rules
- Hebbian rule
- Δw = η x y — strengthen weights between co-active neurons
- Perceptron rule
- Δw = η (t − y) x — update only on errors
- Delta (Widrow–Hoff, LMS) rule
- Δw = η (t − net) x — minimise squared error; used by ADALINE
- Competitive (winner-take-all)
- Only the winning neuron updates — used in SOMs
- Outer product rule
- W = Σ s tᵀ — stores pattern pairs in associative memory
Topic 5
Single-layer perceptrons
An artificial neuron computes a weighted sum of inputs plus a bias and applies an activation function. The perceptron learns with the rule w ← w + η (t − y) x.
- A single-layer perceptron can learn linearly separable functions like AND and OR, but not XOR — which needs a multi-layer network.
- A support vector machine (SVM) finds the separating line (hyperplane) with the maximum margin between classes; the closest points are support vectors.
Example
AND with bipolar inputs and targets, η = 1, θ = 0, starting weights 0: after one epoch of perceptron updates, w1 = 1, w2 = 1, b = −1 classifies all four patterns correctly.
- ADALINE (adaptive linear neuron) uses the delta rule on the net input; MADALINE combines several ADALINEs to solve non-linear problems such as XOR.
Topic 6
Back-propagation networks
- 1
Initialise small random weights
- 2
Forward pass: compute outputs layer by layer
- 3
Compute output error (target − output)
- 4
Backward pass: compute error terms δ for output and hidden layers
- 5
Update weights Δw = η δ x (optionally with momentum)
- 6
Repeat for all patterns over many epochs until error is small
- Architecture: input layer, one or more hidden layers with sigmoid or ReLU units, output layer; fully connected feed-forward. Issues: local minima, choice of learning rate, overfitting, vanishing gradients in deep nets.
Topic 7
Associative memory
Auto-associative
Patterns associated with themselves
Recovers a complete pattern from a noisy or partial version
Hetero-associative
Pairs of different patterns (s, t)
Gives t when presented s
Hopfield network
Recurrent auto-associative network with symmetric weights
Converges to stored patterns (energy minima)
- Weights are set by the Hebb or outer product rule: W = Σ sᵀt over the stored pairs.
Topic 8
Adaptive resonance theory
- ART (Grossberg and Carpenter) solves the stability–plasticity dilemma: learn new patterns without forgetting old ones. An input is compared with stored category prototypes; if the match exceeds the vigilance parameter, the prototype is updated (resonance); otherwise a new category is created.
- ART1 handles binary inputs; ART2 handles continuous inputs.
Topic 9
Self-organising maps and unsupervised networks
- 1Initialise weight vectors of a grid of neurons
- 2Present an input
- 3Find the winner (closest weight vector)
- 4Update the winner and its neighbours towards the input
- 5Shrink the learning rate and neighbourhood over time
- SOMs map high-dimensional data to a 2D grid preserving topology — for clustering and visualisation. Other unsupervised networks: competitive learning (Maxnet), learning vector quantisation (supervised variant), counter-propagation networks.
Key terms
- Soft computing
- Computing tolerant of imprecision and uncertainty
- Activation function
- Function producing a neuron's output from its net input
- Perceptron
- Single-layer network trained with the perceptron rule
- Back-propagation
- Algorithm propagating errors backwards to update weights
- Vigilance parameter
- ART threshold deciding whether input matches a category
Quick revision
- Hard vs soft computing; components and applications.
- Neuron model; step, linear, sigmoid, tanh, ReLU.
- Hebb, perceptron, delta, competitive, outer product rules.
- Perceptron, ADALINE, MADALINE; XOR needs hidden layers; back-propagation steps.
- Auto- and hetero-associative memory, Hopfield; ART; SOMs.
Important exam questions
Practice questions written to the PTU exam pattern for this unit's syllabus: short answers (Section A style) and long answers (Sections B and C style).
Short-answer questions
- Q1.Distinguish hard and soft computing.
- Q2.Write the sigmoid function.
- Q3.State the Hebbian learning rule.
- Q4.Why can't a single-layer perceptron learn XOR?
- Q5.What is the stability–plasticity dilemma?
- Q6.What is a self-organising map used for?
Long-answer questions
- Q1.Explain soft computing and its applications.
- Q2.Explain learning rules and activation functions.
- Q3.Explain perceptron training and the back-propagation algorithm.
- Q4.Explain associative memory, ART and self-organising maps.
Stuck on this unit?
Message SBS on WhatsApp for help with Artificial Intelligence & Soft Computing, or to ask about studying M.Sc IT at Synetic.
