Top Banner
Dr. John MacIntyre Ext 3778 Email [email protected] Biological Inspiration - Brain versus Computer
40

Biological Inspiration - Brain versus Computer

Jan 01, 2016

Download

Documents

olivia-hyde

Biological Inspiration - Brain versus Computer. Dr. John MacIntyre Ext 3778 Email [email protected]. Pattern Recognition. Brain and Machine. The Brain Pattern Recognition Association Complexity Noise Tolerance. The Machine Calculation Precision Logic. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Biological Inspiration - Brain versus Computer

Dr. John MacIntyre

Ext 3778

Email [email protected]

Biological Inspiration -Brain versus Computer

Page 2: Biological Inspiration - Brain versus Computer

Pattern Recognition

Page 3: Biological Inspiration - Brain versus Computer

Brain and Machine• The Brain

– Pattern Recognition– Association– Complexity– Noise Tolerance

•The Machine–Calculation–Precision–Logic

Page 4: Biological Inspiration - Brain versus Computer

The contrast in architecture

• The Von Neumann architecture uses a single processing unit;– Tens of millions of operations per

second– Absolute arithmetic precision

•The brain uses many slow unreliable processors acting in parallel

Page 5: Biological Inspiration - Brain versus Computer

Features of the Brain• Ten billion neurons

• Average several thousand connections

• Hundreds of operations per second

• Reliability low

• Die off frequently (never replaced)

• Compensates for problems by massive parallelism

Page 6: Biological Inspiration - Brain versus Computer

The biological inspiration

• The brain has been extensively studied by scientists.

• Vast complexity prevents all but rudimentary understanding.

• Even the behavior of an individual neuron is extremely complex

Page 7: Biological Inspiration - Brain versus Computer

The biological inspiration

• Single “percepts” distributed among many neurons

• Localized parts of the brain are responsible for certain well-defined functions (e.g.. vision, motion).

• Which features are integral to the brain's performance?

• Which are incidentals imposed by the fact of biology?

Page 8: Biological Inspiration - Brain versus Computer

The Structure of Neurones

Page 9: Biological Inspiration - Brain versus Computer

The Structure of Neurones

–Axons connect to dendrites via synapses.–Electro-chemical signals are propagated from the dendritic input, through the cell body, and down the axon to other neurons

A neurone has a cell body, a branching inputstructure (the dendrIte) and a branching output

structure (th axOn)

Page 10: Biological Inspiration - Brain versus Computer

The Structure of Neurones• A neurone only fires if its input signal

exceeds a certain amount (the threshold) in a short time period.

• Synapses vary in strength– Good connections allowing a large signal– Slight connections allow only a weak signal.– Synapses can be either excitatory or inhibitory.

Page 11: Biological Inspiration - Brain versus Computer

Sj f (Sj) Xj

ao

a1

a2

an

+1wj0

wj1wj2

wjn

A Classic Artifical Neuron

Page 12: Biological Inspiration - Brain versus Computer

Hebbian Learning• Two neurons represent two concepts

– Synaptic strength between them indicates strength of association of concepts;

• Hebbian learning– connections are strengthened whenever two concepts

occur together;

• Pavlovian Conditioning– An animal is trained to associate two events

– i.e. dinner is served after gong rings

Page 13: Biological Inspiration - Brain versus Computer

History of Neural Networks

1950

1960

1970

1980

1990

1943 - McCulloch and Pitts‘A Logical Calculus of Ideas Immanent in Nervous Activity’

Digital Computing Macroscopic Intelligence Microscopic IntelligenceJohn von Neumann

First Digital Computers

Main Frames

Vax Computer(Time Sharing)

Workstations

Microcomputers

DesktopSupercomputers

Marvin Minsky

Black Box AI(LISP etc)

Theorem Solver

Expert Systems

Maturation ofExpert Systems

Frank Rosenblatt

Perceptron

Adaline

Minsky and Papertpublish ‘Perceptrons’

John Hopfield

Rumelhart, McClelland & Hinton

Robert Hecht-Nielsen

Practical Applications of Neural Networks

The Neural‘Dark Ages’

Page 14: Biological Inspiration - Brain versus Computer

Introduction to ArtificialNeural Networks

Page 15: Biological Inspiration - Brain versus Computer

Artificial Neural Networks

• Inspired by the low level structure of the brain.

• Large numbers of simple processors (neurons) joined together by links of various strengths

• Can be built in special hardware

• Normally (to date) simulated on Von Neumann computers

Page 16: Biological Inspiration - Brain versus Computer

Tractable Architectures

• Feedforward Neural Networks– Connections in one direction only– Partial biological justification

• Complex models with constraints (Hopfield and ART).– Feedback loops included– Complex behavior, limited by constraining

architecture

Page 17: Biological Inspiration - Brain versus Computer

Neural Network Taxonomies

Supervised Training Unsupervised Training

Perceptron/Multi-LayerPerceptron

RadialBasis

Function

KohonenSelf-Organising

Map

ART 2

BayesianMethods

Others

Page 18: Biological Inspiration - Brain versus Computer

• Multi-layer feedforward Neural Networks are the most popular architecture in use today.

• They have the following features:– Theoretical capability to solve any

classification problem– Theoretical capability to learn any

classification problem– Stability

Multilayer Perceptron

Page 19: Biological Inspiration - Brain versus Computer

Fig. 1: Multilayer PerceptronOutput Values

Input Signals (External Stimuli)

Output Layer

AdjustableWeights

Input Layer

Page 20: Biological Inspiration - Brain versus Computer

Types of Layer

• The input layer.– Introduces input values into the network.– No activation function or other processing.

• The hidden layer(s).– Perform classification of features– Two hidden layers are sufficient to solve any

problem– Features imply more layers may be better

Page 21: Biological Inspiration - Brain versus Computer

Types of Layer (continued)

• The output layer.– Functionally just like the hidden layers– Outputs are passed on to the world outside the

neural network.

Page 22: Biological Inspiration - Brain versus Computer

A Simple Model of a Neuron

• 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”

w1jw2jw3j

wij

y1

y2

y3

yi

O

Page 23: Biological Inspiration - Brain versus Computer

An Artificial Neuron

• Each hidden or output neuron has weighted input connections from each of the units in the preceding layer.

• The unit performs a weighted sum of its inputs, and subtracts its threshold value, to give its activation level.

• Activation level is passed through a sigmoid activation function to determine output.

w1jw2jw3j

wij

y1

y2

y3

yi

f(x) O

Page 24: Biological Inspiration - Brain versus Computer

Mathematical Definition

• Number all the neurons from 1 up to N

• The output of the j'th neuron is oj

• The threshold of the j'th neuron is j

• The weight of the connection from unit i to unit j is wij

• The activation of the j'th unit is aj

• The activation function is written as (x)

Page 25: Biological Inspiration - Brain versus Computer

Mathematical Definition

• Since the activation aj is given by the sum of the weighted inputs minus the threshold, we can write:

oj = (aj )

aj = ( wijoi ) - ji

Page 26: Biological Inspiration - Brain versus Computer

Activation functions

• Transforms neuron’s input into output.

• Features of activation functions:– A squashing effect is required

• Prevents accelerating growth of activation levels through the network.

– Simple and easy to calculate– Monotonically non-decreasing

• order-preserving

Page 27: Biological Inspiration - Brain versus Computer

Standard activation functions

• The hard-limiting threshold function– Corresponds to the biological paradigm

• either fires or not

• Sigmoid functions ('S'-shaped curves)– The logistic function– The hyperbolic tangent (symmetrical)– Both functions have a simple differential– Only the shape is important

(x) = 1

1 + e -ax

Page 28: Biological Inspiration - Brain versus Computer

Figure 2: Activation Functions

f(x)

x

+1

-1

f(x)

x

f(x)

x

+1

-1

Hard Limiter Ramp Function Sigmoid Function

Page 29: Biological Inspiration - Brain versus Computer

The bias unit• A simplified version of threshold.

• Add an extra unit called the bias unit.– Always has an output of 1.0.– Weights equal to minus the thresholds.– The same as subtracting the thresholds.– The equations can be further simplified:

oj = (aj )

aj = ( wijoi )i

Page 30: Biological Inspiration - Brain versus Computer

Training Algorithms

• Adjust neural network weights to map inputs to outputs.

• Use a set of sample patterns where the desired output (given the inputs presented) is known.

• The purpose is to learn to generalize– Recognize features which are common to good

and bad exemplars

Page 31: Biological Inspiration - Brain versus Computer

Back-Propagation

• A training procedure which allows multi-layer feedforward Neural Networks to be trained;

• Can theoretically perform “any” input-output mapping;

• Can learn to solve linearly inseparable problems.

Page 32: Biological Inspiration - Brain versus Computer

Activation functions and training

• For feedforward networks:– A continuous function can be differentiated

allowing gradient-descent.– Back-propagation is an example of a gradient-

descent technique.– Reason for prevalence of sigmoid

Page 33: Biological Inspiration - Brain versus Computer

Training versus Analysis

• Understanding how the network is doing what it does

• Predicting behavior under novel conditions

Page 34: Biological Inspiration - Brain versus Computer

Applications

• The properties of neural networks define where they are useful.– Can learn complex mappings from inputs to

outputs, based solely on samples– Difficult to analyze: firm predictions about

neural network behavior difficult;• Unsuitable for safety-critical applications.

– Require limited understanding from trainer, who can be guided by heuristics.

Page 35: Biological Inspiration - Brain versus Computer

Engine management

• The behavior of a car engine is influenced by a large number of parameters– temperature at various points– fuel/air mixture– lubricant viscosity.

• A major company have used neural networks to dynamically tune an engine depending on current settings.

Page 36: Biological Inspiration - Brain versus Computer

Signature recognition

• Each person's signature is different.

• There are structural similarities which are difficult to quantify.

• One company have manufactured a machine which recognizes signatures to within a high level of accuracy.– Considers speed in addition to gross shape.– Makes forgery even more difficult.

Page 37: Biological Inspiration - Brain versus Computer

Sonar target recognition

• Distinguish mines from rocks on sea-bed

• The neural network is provided with a large number of parameters which are extracted from the sonar signal.

• The training set consists of sets of signals from rocks and mines.

Page 38: Biological Inspiration - Brain versus Computer

Stock market prediction

• “Technical trading” refers to trading based solely on known statistical parameters; e.g. previous price

• Neural networks have been used to attempt to predict changes in prices.

• Difficult to assess success since companies using these techniques are reluctant to disclose information.

Page 39: Biological Inspiration - Brain versus Computer

Mortgage assessment

• Assess risk of lending to an individual.

• Difficult to decide on marginal cases.

• Neural networks have been trained to make decisions, based upon the opinions of expert underwriters.

• Neural network produced a 12% reduction in delinquencies compared with human experts.

Page 40: Biological Inspiration - Brain versus Computer

Summary

• NNs are based on a highly simplified model of neurons in the human brain.

• Neurons joined together by uni-directional weighted connections, sum passes through activation function.

• Training algorithms allow network weights to be altered based solely upon training patterns.