Lecture 8 - Artificial Neural Networks
Lecture 8 - Artificial Neural Networks
ANALYTICS
LECTURE 8: ARTIFICIAL NEURAL NETWORK (ANN)
Agents
An agent is anything that can be
viewed as perceiving its environment
through sensors and acting upon that
environment through actuators
Human agent: eyes, ears, and other
organs for sensors; hands, legs,
mouth, and other body parts for
actuators
Robotic agent: cameras and infrared
range finders for sensors, various
2
Rational agents
An agent is an entity that perceives and acts
This course is about designing rational
agents
Abstractly, an agent is a function from
percept histories to actions:
[f: P* A]
6
Rational agents
Rationalityis distinct from omniscience (all-
knowing with infinite knowledge)
Agents can perform actions in order to modify
future percepts so as to obtain useful information
(information gathering, exploration)
An agent is autonomous if its behavior is
determined by its own experience (with ability to
learn and adapt)
7
Introduction to ANN
1. Has matured over the years
2. Has now been made more possible because
of the high computing power available in
this day and age
3. Has a high application potential
Introduction
ANN derived from the human brain and nervous
system
The human brain consists of a massive parallel
interconnections of neurons
Brain
allows us to achieve perceptual and
recognition tasks over a small period of time
Inspired
researchers to find out if there was a
way to mimic the nervous system in the form of
a machine
Introduction
w2j
y2
w3j
y3
O
yi
wij
• Each neuron has a threshold value
• Each neuron has weighted inputs from other neurons
• The input signals form a weighted sum
• If the activation level exceeds the threshold, the neuron
“fires”
Severalkey features of the processing
elements in ANN are suggested by the
properties of biological neurons, i.e.
The processing element receives many signals
Signalsmay be modified by a weight at the
receiving synapse.
The processing element sums the weighted input
With
sufficient input, the neuron transmits a single
output
Artificial Neural Networks
Topology of a NN refers to its framework as
well as its interconnection scheme.
Framework is specified by layers;
Input layer
Hidden layer
Output layer
Supervised Training
Both the inputs and the outputs are provided
Thenetwork then processes the inputs and
compares its resulting outputs against the
desired outputs.
Errors
are then propagated back through the
system, causing the system to adjust the
weights which control the network.
This
process occurs over and over as the
weights are continually tweaked.
TYPES OF NEURAL NETWORKS
TYPES OF NEURAL NETWORKS
APPLICATION OF NEURAL
NETWORKS
APPLICATION OF NEURAL
NETWORKS
Pattern Classification by
Artificial Neural Networks
Examples
Artificial Neural Networks Classification
Model
Pattern classification
Eachinput vector (pattern) belongs or does
not belong
Example a single class membership
Membership (1 response )
Non Membership (-1/0 response )
Hebb's Rule
Hebb’s Rule describes how when a cell
persistently activates another nearby cell, the
connection between the two cells becomes
stronger.
Specifically, when Neuron A axon repeatedly
activates neuron B’s axon, a growth process
occurs that increases how effective neuron A
is in activating neuron B.
As a result, the connection between those two
neurons is strengthened over time.
Hebb's Rule
Thefirst, and undoubtedly the best known, learning rule
was introduced by Donald Hebb. The description
appeared in his book The Organization of Behavior in
1949.
Change in Wi=
Inputs AND xit New Wi
x1 x2 x0 t w1 w2 w0 w1 w2 w0
0 0 0
1 1 1 1 1 1 1 1 1 1
1 -1 1 -1 -1 1 -1 0 2 0
-1 1 1 -1 1 -1 -1 1 1 -1
-1 -1 1 -1 1 1 -1 2 2 -2
Example 1
Final weights
Test with inputs
Wi
w1 w2 w0
2 2 -2
Example 2
X and O
# . . . # # # #
. # . # . # . #
. . # . . # . . #
. # . # . # . . #
# . . . # # # #
Example 3
J and P
# # # # # # # # # .
. . . # . # . . . #
. . . # . # # # # .
. . . # . # . . . .
# # # . . # . . . .