Supervised Learning Networks
1. Introduction
Supervised Learning Networks are artificial neural networks that learn from labeled training data. For every input, the network is provided with the desired or target output. The network compares its predicted output with the target and adjusts its weights to reduce the error.
Exam Definition
Supervised learning is a neural-network learning method in which the network is trained using input-output pairs, where the desired output is known. The network calculates the error between its actual output and target output and adjusts its weights to minimize this error.
2. Basic Concept
Suppose we want a neural network to determine whether a student will Pass or Fail.
Training data might look like:
| Attendance | Study Hours | Actual Result |
|---|---|---|
| 85% | 6 | Pass |
| 90% | 7 | Pass |
| 55% | 2 | Fail |
| 60% | 3 | Fail |
The network receives:
Input + Target Output
↓
Neural Network
↓
Predicted Output
↓
Compare with Target
↓
Calculate Error
↓
Adjust Weights
↓
Learn
3. Main Characteristics
Supervised learning has the following characteristics:
- Labeled data is required.
- Target/desired output is known.
- The network produces a prediction.
- Prediction is compared with the target.
- Error is calculated.
- Weights are adjusted.
- Training is repeated over many examples.
- The objective is generally to minimize prediction error.
4. Mathematical Model
A neuron receives inputs:\[ x_1,x_2,\ldots,x_n \]
with corresponding weights:\[ w_1,w_2,\ldots,w_n \]
The weighted input is:\[ z=\sum_{i=1}^{n}w_ix_i+b \]
The output is:\[ y=f(z) \]
where:
- \(x_i\) = input
- \(w_i\) = weight
- \(b\) = bias
- \(f\) = activation function
- \(y\) = actual/predicted output
If the target is \(t\), then error can be represented as:\[ e=t-y \]
The learning algorithm uses this error to modify the weights.
5. How Supervised Learning Works
The process can be divided into two major stages.
Stage 1 — Forward Pass
Input is passed through the network.
Input
↓
Input Layer
↓
Hidden Layer(s)
↓
Output Layer
↓
Predicted Output
Stage 2 — Learning/Weight Update
Predicted Output
↓
Compare with Target
↓
Calculate Error
↓
Learning Algorithm
↓
Update Weights
This process is repeated until the network achieves satisfactory performance.
6. Complete Training Cycle
Training Example
↓
Input
↓
┌──────────────┐
│ Neural │
│ Network │
└──────────────┘
↓
Predicted Output
↓
Compare with Target
↓
Error/Loss
↓
Weight Adjustment
↓
Next Training Example
↓
Repeat
7. Major Supervised Learning Networks
Important supervised neural networks include:
- Single Layer Perceptron
- Multilayer Perceptron (MLP)
- Backpropagation Network
- Adaline
- MADALINE
For your syllabus, Single Layer Perceptron and Backpropagation Networks are particularly important.
8. Single Layer Perceptron
The Perceptron is one of the simplest supervised neural networks.
It consists of:
- Input neurons
- Output neuron(s)
- Weights
- Bias
- Activation function
There is no hidden layer in a basic single-layer perceptron.
Input Layer Output Layer
x1 ───────┐
│
x2 ───────┼──────────→ ○
│ │
x3 ───────┘ ↓
Output
Mathematical model
\[ z=\sum w_ix_i+b \]
Then:\[ y=f(z) \]
For a binary step activation:\[ y= \begin{cases} 1 & z\geq0\\ 0 & z<0 \end{cases} \]
9. Perceptron Learning Rule
The weight update is:\[ \boxed{\Delta w_i=\eta(t-y)x_i} \]
Therefore:\[ \boxed{w_i^{new}=w_i^{old}+\eta(t-y)x_i} \]
Bias can be updated as:\[ b^{new}=b^{old}+\eta(t-y) \]
where:
- \(\eta\) = learning rate
- \(t\) = target output
- \(y\) = actual output
- \(x_i\) = input
10. Simple Perceptron Example
Suppose:\[ x=1 \]
Target:\[ t=1 \]
Actual output:\[ y=0 \]
Learning rate:\[ \eta=0.1 \]
Current weight:\[ w=0.4 \]
Error:\[ e=t-y=1-0=1 \]
Weight change:\[ \Delta w=0.1(1)(1)=0.1 \]
New weight:\[ w_{new}=0.4+0.1=0.5 \]
The network has adjusted its weight to improve its future prediction.
11. Limitation of Single-Layer Perceptron
A single-layer perceptron can solve linearly separable problems.
For example:
- AND → can be solved
- OR → can be solved
But:
- XOR → cannot be solved by a basic single-layer perceptron
This limitation led to the development and use of multilayer neural networks.
12. Multilayer Perceptron — MLP
A Multilayer Perceptron (MLP) contains one or more hidden layers between the input and output layers.
Input Hidden Output
x1 ────────┐
├──── ○ ─────┐
x2 ────────┤ │
├──── ○ ─────┼──── ○
x3 ────────┤ │
├──── ○ ─────┘
x4 ────────┘
The hidden layers allow the network to learn complex nonlinear relationships.
13. Backpropagation Network
A Backpropagation Network (BPN) is a multilayer feedforward neural network trained using the backpropagation learning algorithm.
It generally contains:
Input Layer
↓
Hidden Layer(s)
↓
Output Layer
Training involves:
Forward propagation
Calculate the output.
Backward propagation
Calculate the error and propagate the error information backward to adjust weights.
14. Backpropagation Process
INPUT
↓
Forward Propagation
↓
Hidden Layer(s)
↓
OUTPUT
↓
Calculate Error
↓
Backward Propagation
↓
Update Weights
↓
Repeat
The process continues over many training examples and epochs.
15. What is an Epoch?
An epoch is generally one complete pass through the entire training dataset during training.
For example, if there are 1,000 training examples:
Epoch 1 → Network sees all 1,000 examples
Epoch 2 → Network sees all 1,000 examples again
Epoch 3 → Network sees all 1,000 examples again
...
The weights are updated during training, so performance may improve over successive epochs.
16. Adaline
ADALINE stands for:
ADAptive LInear NEuron
It was developed by Bernard Widrow and Marcian Hoff.
ADALINE uses a linear neuron and learns by minimizing the error using the LMS/Delta rule.
Basic structure:
Inputs
↓
Weighted Sum
↓
Linear Output
↓
Error
↓
LMS Weight Update
The important point is:
ADALINE learns by minimizing the mean squared error.
17. MADALINE
MADALINE stands for:
Multiple ADAptive LInear NEurons
It consists of multiple ADALINE units.
Inputs
↓
┌─────┼─────┐
↓ ↓ ↓
ADALINE ADALINE ADALINE
└─────┼─────┘
↓
Output
It extends the idea of ADALINE to multiple adaptive neurons.
18. Classification and Regression
Supervised neural networks can be used for two major types of tasks.
A. Classification
Predict a category.
Examples:
Email → Spam / Not Spam
Image → Cat / Dog
Student → Pass / Fail
Customer → Churn / No Churn
B. Regression
Predict a numerical value.
Examples:
House → ₹75 lakh
Sales → ₹5,50,000
Temperature → 32.5°C
Demand → 4,500 units
19. Classification Example
Suppose a neural network predicts whether an email is spam.
Email Features
↓
Neural Network
↓
Probability
↓
Spam / Not Spam
For example:\[ P(Spam)=0.92 \]
The system may classify the email as Spam.
20. Regression Example
Suppose a network predicts monthly sales.
Inputs:
- Advertising expenditure
- Number of leads
- Website traffic
- Previous sales
Advertising ───┐
Leads ─────────┤
Traffic ───────┤
Previous Sales ┤
↓
Neural Network
↓
Predicted Sales
Output:\[ ₹8,50,000 \]
This is a regression problem because the output is numerical.
21. Supervised vs Unsupervised Learning
This is an important examination question.
| Supervised Learning | Unsupervised Learning |
|---|---|
| Uses labeled data | Uses unlabeled data |
| Target output is known | Target output is unknown |
| Learns input-output relationship | Finds patterns/structure |
| Error can be calculated directly against target | No predefined target |
| Classification and regression | Clustering and feature organization |
| Perceptron | SOM |
| Backpropagation | Competitive learning |
| Adaline | ART |
Easy memory
Supervised = Teacher is available
Unsupervised = No teacher
22. Advantages of Supervised Learning Networks
- Can learn complex input-output relationships.
- Suitable for classification.
- Suitable for prediction and regression.
- Performance can be quantitatively measured.
- Can generalize to previously unseen data.
- Useful for pattern recognition.
- Can model nonlinear relationships using multilayer networks.
23. Limitations
- Requires labeled training data.
- Preparing labeled data can be expensive.
- Performance depends heavily on training-data quality.
- Can suffer from overfitting.
- Training may require considerable computation.
- Poor or biased training data can produce poor predictions.
- Architecture and hyperparameter selection can be challenging.
24. Applications
Supervised neural networks are widely used in:
Healthcare
- Disease classification
- Medical diagnosis
- Medical image analysis
Banking
- Fraud detection
- Credit scoring
- Loan-risk prediction
Marketing
- Lead scoring
- Customer churn prediction
- Sales forecasting
- Customer classification
E-commerce
- Product recommendation
- Purchase prediction
- Customer behavior prediction
Computer Vision
- Face recognition
- Object classification
- Image recognition
NLP
- Sentiment classification
- Spam detection
- Text classification
25. Important Comparison of Supervised Networks
| Network | Architecture | Learning | Main Idea |
|---|---|---|---|
| Perceptron | Single layer | Supervised | Binary/linear classification |
| ADALINE | Single adaptive neuron | Supervised | Minimize error using LMS |
| MADALINE | Multiple ADALINE units | Supervised | Multiple adaptive neurons |
| MLP | Multiple layers | Supervised | Learn nonlinear relationships |
| Backpropagation Network | Multilayer feedforward | Supervised | Error propagated backward |
26. Complete Supervised Learning Architecture
SUPERVISED LEARNING
│
↓
Labeled Training Data
│
┌───────┴───────┐
↓ ↓
Input Target
│ │
└───────┬───────┘
↓
Neural Network
↓
Prediction
↓
Compare with Target
↓
Error
↓
Learning Algorithm
↓
Update Weights
↓
Repeat
27. Key Point for Your Syllabus
For your MCA Artificial Intelligence/Soft Computing syllabus, the sequence should be understood as:
Neural Networks
↓
Learning Rules
↓
Supervised Learning
↓
Perceptron
↓
Single Layer Perceptron
↓
Limitation: XOR
↓
Multilayer Network
↓
Backpropagation
↓
Backpropagation Learning
↓
Variations
This sequence will make the later topics—single-layer perceptrons, backpropagation networks, architecture, and backpropagation learning—much easier to understand.
One-line revision
Supervised Neural Network = Labeled Data + Target Output + Error Calculation + Weight Adjustment + Learning.
