Top Banner
Artificial Neural network model & hidden layers in multilayer artificial neural networks
40

Artificial neural network model & hidden layers in multilayer artificial neural networks

Jul 14, 2015

Download

Education

Muhammad Ishaq
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: Artificial neural network model & hidden layers in multilayer artificial neural networks

Artificial Neural network model & hidden layers in

multilayer artificial neural networks

Page 2: Artificial neural network model & hidden layers in multilayer artificial neural networks

Outline

• Introduction

• Single Layer • Multi Layer• Learning• Backpropogation Algorithm

Page 3: Artificial neural network model & hidden layers in multilayer artificial neural networks

Introduction

• Artificial Neural Network are computational models inspired by biological neural network used for processing large number of inputs which are mostly unknown.

Page 4: Artificial neural network model & hidden layers in multilayer artificial neural networks

What is Problem?

•Our world is full of data. After collection and organization, data, if we are lucky, becomes information. In today's interconnected world, information exists in electronic form that can be stored and transmitted instantly. Challenge is to understand, integrate, and apply information to generate useful knowledge.

Page 5: Artificial neural network model & hidden layers in multilayer artificial neural networks

What is Solution?

• Interpretation requires data acquisition, cleaning (preparing the data for analysis), analysis, and presentation in a way that permits knowledgeable decision making and action. Key is to extract information about data from relationships buried within the data itself.

Page 6: Artificial neural network model & hidden layers in multilayer artificial neural networks

Why Human System?

•Human brain is most powerful pattern recognition engine ever invented.

Page 7: Artificial neural network model & hidden layers in multilayer artificial neural networks

Biological Neuron

Page 8: Artificial neural network model & hidden layers in multilayer artificial neural networks

Artificial Neuron

Page 9: Artificial neural network model & hidden layers in multilayer artificial neural networks

Artificial Neuron

Page 10: Artificial neural network model & hidden layers in multilayer artificial neural networks

History

• 1943: McCulloch–Pitts “neuron”– Started the field

• 1962: Rosenblatt’s perceptron– Learned its own weight values; convergence proof

• 1969: Minsky & Papert book on perceptrons– Proved limitations of single-layer perceptron networks

• 1982: Hopfield and convergence in symmetric networks– Introduced energy-function concept

• 1986: Backpropagation of errors– Method for training multilayer networks

• Present: Probabilistic interpretations, Bayesian and spiking networks

Page 11: Artificial neural network model & hidden layers in multilayer artificial neural networks

Single Layer

• Input Layer

• Output Layer

Page 12: Artificial neural network model & hidden layers in multilayer artificial neural networks

Multi Layer

• Input Layer

• Hidden Layer(s)

• Output Layer

Page 13: Artificial neural network model & hidden layers in multilayer artificial neural networks

Multi Layer

Page 14: Artificial neural network model & hidden layers in multilayer artificial neural networks

• Instead of programming computational system to do specific tasks, teach system how to perform task

• To do this, generate Artificial Intelligence System- AI

• AI systems must be adaptive – able to learn from data on a continuous basis

Page 15: Artificial neural network model & hidden layers in multilayer artificial neural networks

ANN Architecture

a. Single Layer Feed Forward

Page 16: Artificial neural network model & hidden layers in multilayer artificial neural networks

ANN Architecture

Multilayer Feed Forward

Page 17: Artificial neural network model & hidden layers in multilayer artificial neural networks

ANN Architecture

Recurrent Network

Page 18: Artificial neural network model & hidden layers in multilayer artificial neural networks

ANN Architecture

a. Single Layer Feed Forward

Page 19: Artificial neural network model & hidden layers in multilayer artificial neural networks

ANN Architecture

Multilayer Feed Forward

Page 20: Artificial neural network model & hidden layers in multilayer artificial neural networks

ANN Architecture

Recurrent Network

Page 21: Artificial neural network model & hidden layers in multilayer artificial neural networks

Clasification of learning strategies

Page 22: Artificial neural network model & hidden layers in multilayer artificial neural networks

Supervised

• Process of using desired output for training the NN

• It employees a teacher to assist the network by telling the network what the desired response to a given input

• Weights are modified according to the required output

• Not practicable in all cases

Page 23: Artificial neural network model & hidden layers in multilayer artificial neural networks

Understanding Supervised and Unsupervised Learning

ABA

B A

B

Page 24: Artificial neural network model & hidden layers in multilayer artificial neural networks

Two possible Solutions…

A

B

A

B

A

B

A

B A

B

A

B

Page 25: Artificial neural network model & hidden layers in multilayer artificial neural networks

Supervised Learning

• It is based on a labeled training set.

• The class of each piece of data in training set is known.

• Class labels are pre-determined and provided in the training phase.

A

BA

BA

B

ε Class

λ Class

λ Class

λ Class

ε Class

ε Class

Page 26: Artificial neural network model & hidden layers in multilayer artificial neural networks

26

A single perceptron can be used to represent many boolean functions.• AND function :

x1 x2 output

0 0 -10 1 -11 0 -11 1 1

<Training examples> Decision hyperplane :w0 + w1 x1 + w2 x2 = 0-0.8 + 0.5 x1 + 0.5 x2 = 0

x1 x2 � wixi output

0 0 -0.8 -10 1 -0.3 -11 0 -0.3 -11 1 0.2 1

<Test Results>

-

-

-

+

x1

x2

-0.8 + 0.5 x1 + 0.5 x2 = 0

-

-

-

+

x1

x2

-0.8 + 0.5 x1 + 0.5 x2 = 0

Page 27: Artificial neural network model & hidden layers in multilayer artificial neural networks

27

OR function • The two-input perceptron can implement the OR function when

we set the weights: w0 = -0.3, w1 = w2 = 0.5

x1 x2 o utput

0 0 - 1

0 1 11 0 11 1 1

<Train ing e x ample s > Decision hyperplane :w0 + w1 x1 + w2 x2 = 0-0.3 + 0.5 x1 + 0.5 x2 = 0

x1 x2 Σwixi output

0 0 - 0.3 - 1

0 1 0.2 - 11 0 0.2 - 11 1 0.7 1

<Te s t Re s ults >

-

+

+

+

x1

x2

-0.3 + 0.5 x1 + 0.5 x2 = 0

-

+

+

+

x1

x2

-0.3 + 0.5 x1 + 0.5 x2 = 0

Page 28: Artificial neural network model & hidden layers in multilayer artificial neural networks

Unsupervised

• No teacher Required

• Similar to the students learning on their own

• Adaption rules

• Adaption rule generate error signals

Page 29: Artificial neural network model & hidden layers in multilayer artificial neural networks

Reinforced

• A teacher is assumed to b present but right answer is not given to the network

• Network is given an indication whether output is right or wrong

• Network use this indication to improve performance

Page 30: Artificial neural network model & hidden layers in multilayer artificial neural networks

Types of Neuron activation function

1. Heaviside

1 if s>=T

F(s)=

0 if s<T

Page 31: Artificial neural network model & hidden layers in multilayer artificial neural networks

2. Linear

f(s)=s

Page 32: Artificial neural network model & hidden layers in multilayer artificial neural networks

3. Piecewise Linear

1 if s>T

F(s)= s if –T<s<T

-1 if s<-T

Page 33: Artificial neural network model & hidden layers in multilayer artificial neural networks

Hardlimiter

Unipolar Sigmoidal

Bipolar Sigmoidal

Unipolar Multimodal

Radial Bessel’s Function

Page 34: Artificial neural network model & hidden layers in multilayer artificial neural networks

Backpropogation Algorithm

Page 35: Artificial neural network model & hidden layers in multilayer artificial neural networks
Page 36: Artificial neural network model & hidden layers in multilayer artificial neural networks

36

NEURAL NETWORK APPLICATION DEVELOPMENT

The development process for an ANN application has eight steps. • Step 1: (Data collection).• Step 2: (Training and testing data separation For a moderately

sized data set, 80% of the data are randomly selected for training, 10% for testing, and 10% secondary testing.

• Step 3: (Network architecture) Important considerations are the exact number of perceptrons and the number of layers.

Page 37: Artificial neural network model & hidden layers in multilayer artificial neural networks

37

• Step 4: (Parameter tuning and weight initialization)• Step 5: (Data transformation) Transforms the application

data into the type and format required by the ANN. • Step 6: (Training)

Page 38: Artificial neural network model & hidden layers in multilayer artificial neural networks

38

• Step 7: (Testing)– The testing examines the performance of the network using

the derived weights by measuring the ability of the network to classify the testing data correctly.

– Black-box testing (comparing test results to historical results) is the primary approach for verifying that inputs produce the appropriate outputs.

• Step 8: (Implementation) Now a stable set of weights are obtained.

Page 39: Artificial neural network model & hidden layers in multilayer artificial neural networks

Thank You for your Attention..!! . .

Page 40: Artificial neural network model & hidden layers in multilayer artificial neural networks

We welcome any Questions….