Unit I Introduction
Unit I Introduction
UNIT-01
Basic tools of soft Computing:
2
INTRODUCTION TO
ARTIFICIAL NEURAL NETWORKS
(ANN)
Outline
Applications of ANN
lion
bird
What is that?
Neural networks to the rescue…
6
Definition of ANN
“Data processing system consisting of a
large number of simple, highly
interconnected processing elements
(artificial neurons) in an architecture inspired
by the structure of the cerebral cortex of the
brain”
7
Inspiration from Neurobiology
Human Biological Neuron
8
Biological Neural Networks
Biological neuron
Biological Neural Networks
An artificial neuron
12
Artificial Neurons
Wb Y
X2 f()
Wc
X3
15
• Each neuron has an internal state, called
its activation or activity level, which is a
function of the inputs it has received.
Typically, a neuron sends its activation as
a signal to several other neurons.
17
Artificial Neural Network
Synapse Nukleus
x1 w1
y
Axon
x2 w2 Activation Function:
yin = x1w 1 + x2w 2 (y-in) = 1 if y-in >=
and (y-in) = 0
Dendrite
-A neuron receives input, determines the strength or the weight of the input, calculates the total
weighted input, and compares the total weighted with a value (threshold)
- If the total weighted input greater than or equal the threshold value, the neuron will produce the
output, and if the total weighted input less than the threshold value, no output will be produced
18
History
• 1943 McCulloch-Pitts neurons
• 1949 Hebb’s law
• 1958 Perceptron (Rosenblatt)
• 1960 Adaline, better learning rule (Widrow,
Huff)
• 1969 Limitations (Minsky, Papert)
• 1972 Kohonen nets, associative memory
19
• 1977 Brain State in a Box (Anderson)
• 1982 Hopfield net, constraint satisfaction
• 1985 ART (Carpenter, Grossfield)
• 1986 Backpropagation (Rumelhart, Hinton,
McClelland)
• 1988 Neocognitron, character recognition
(Fukushima)
20
Characterization
• Architecture
– a pattern of connections between neurons
• Single Layer Feedforward
• Multilayer Feedforward
• Recurrent
• Strategy / Learning Algorithm
– a method of determining the connection weights
• Supervised
• Unsupervised
• Reinforcement
• Activation Function
– Function to compute output signal from input signal
21
Where can neural network systems help…
• when we can't formulate an algorithmic
solution.
• when we can get lots of examples of the
behavior we require.
‘learning from experience’
• when we need to pick out the structure
from existing data.
22
Who is interested?...
• Electrical Engineers – signal processing,
control theory
• Computer Engineers – robotics
• Computer Scientists – artificial
intelligence, pattern recognition
• Mathematicians – modelling tool when
explicit relationships are unknown
23
Problem Domains
• Storing and recalling patterns
• Classifying patterns
• Mapping inputs onto outputs
• Grouping similar patterns
• Finding solutions to constrained
optimization problems
24
Coronary
Disease
Classification
STOP
01 10
Neural
11
Net 11 10 00 00 Input patterns
00 11
Input layer
Output layer
00 01 10 11
Sorted
00 10 11 patterns
.
00 11 25
Clustering
00 11
10
11 10
00 11
00
01
26
ANN Applications
Medical Applications
Information
Searching & retrieval
Chemistry
Education
Business & Management
Applications of ANNs
• Signal processing
• Pattern recognition, e.g. handwritten
characters or face identification.
• Diagnosis or mapping symptoms to a
medical case.
• Speech recognition
• Human Emotion Detection
• Educational Loan Forecasting
28
Abdominal Pain Prediction
Intensity Duration
Male Age Temp WBC Pain Pain
adjustable
1 20 37 10 1 1
weights
29
Voice Recognition
30
FUZZY LOGIC
Outlook Temp Humidit Windy Decision
(0) (T) y (W) to play
(H) (D)
Sunny High High F N
Sunny High High T N
Cloudy High High F Y
Rain Med High F Y
Rain Cold Low N Y
Rain Cold Low T N
Cloudy Cold Low T Y
To-play-or-not-to-play-tennis data vs. Climatic-Condition from
Ross Quinlan’s paper on ID3 (1986), C4.5 (1993)
Weather Temp Humidit Windy Decision
(0) (T) y (W) (D)
(H)
High Low T F
No Yes No Yes
Rule Base
R1: If outlook is sunny and if humidity is high then
Decision is No.
Definition of fuzzy
Fuzzy – “not clear, distinct, or precise;
blurred”
Slow Fast
Speed = 0 Speed = 1
bool speed;
get the speed
if ( speed == 0) {
// speed is slow
}
else {
// speed is fast
}
FUZZY LOGIC REPRESENTATION
Slowest
For every problem
[ 0.0 – 0.25 ]
must represent in
terms of fuzzy sets.
Slow
What are fuzzy sets? [ 0.25 – 0.50 ]
Fast
[ 0.50 – 0.75 ]
Fastest
[ 0.75 – 1.00 ]
FUZZY LOGIC REPRESENTATION
CONT.
Some Examples
Temperature Controller
Business
Hybrid Modeling
Expert Systems
SUMMARY
• brains neurocomputing
COMPUTATIONAL
INTELLIGENCE
or
SOFT COMPUTING
An Example showing the concept of survival of the fittest and reproduction over
generations.
Evolutionary Computation
• Terminology:
– Chromosome – It is an individual representing a candidate solution of the
optimization problem.
selection
mutation
recombination
The Evolution Mechanism
• Increasing diversity by • Decreasing diversity by
genetic operators selection
– mutation – of parents
– recombination – of survivors
The Evolutionary Cycle
Selection
Parents
Recombination
Population
Mutation
Replacement
Offspring
What is Evolutionary Computation?
Simulation of Darwinian Evolution on a
Computer
A set of
possible Computer How good is
solutions Model each solution?
Next
generation
Survival
of the
Mutation
fittest
Duplicate, Keep a set of
Mutate & the best
Crossover solutions
Domains of Application
• Numerical, Combinatorial Optimisation
• System Modeling and Identification
• Planning and Control
• Engineering Design
• Data Mining
• Machine Learning
• Artificial Life
Performance
• Acceptable performance at acceptable
costs on a wide range of problems
• Intrinsic parallelism (robustness, fault
tolerance)
• Superior to other techniques on
complex problems with
– lots of data, many free parameters
– complex relationships between
parameters
– many (local) optima
Advantages
• No presumptions w.r.t. problem space
• Widely applicable
• Low development & application costs
• Easy to incorporate other methods
• Solutions are interpretable (unlike NN)
• Can be run interactively, accommodate
user proposed solutions
• Provide many alternative solutions
Disadvantages
• No guarantee for optimal solution within
finite time
• Weak theoretical basis
• May need parameter tuning
• Often computationally expensive, i.e. slow
Summary
EVOLUTIONARY COMPUTATION:
• is based on biological metaphors
• has great practical potentials
• is getting popular in many fields
• yields powerful, diverse applications
• gives high performance against low
costs
• AND IT’S FUN !