+ All Categories
Home > Documents > Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology,...

Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology,...

Date post: 27-Dec-2015
Category:
Upload: emery-horn
View: 215 times
Download: 1 times
Share this document with a friend
Popular Tags:
25
Authored By :- Authored By :- Rachit Kr. Rastogi Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., Computer Sc. & Engineering Deptt., College Of Technology, College Of Technology, G.B.P.U.A.T. Pantnagar, India G.B.P.U.A.T. Pantnagar, India email: email: [email protected] comper_rachit@rediff.com comper_rachit@rediff.com Web: Web: www.geocities.com/getrachit Artificial Neural Network Artificial Neural Network Simulation Simulation
Transcript
Page 1: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Authored By :- Authored By :-

Rachit Kr. Rastogi Rachit Kr. Rastogi Computer Sc. & Engineering Deptt.,Computer Sc. & Engineering Deptt.,

College Of Technology, College Of Technology, G.B.P.U.A.T. Pantnagar, IndiaG.B.P.U.A.T. Pantnagar, India email: email: [email protected]

[email protected][email protected]

Web:Web: www.geocities.com/getrachit

Artificial Neural Network Artificial Neural Network SimulationSimulation

Page 2: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Key Points -Key Points -

• Computer expert systems aim to go from the crisp Computer expert systems aim to go from the crisp binary conventional control towards the wooly way in binary conventional control towards the wooly way in which humans think.which humans think.

• Artificial Neural Network is a system loosely Artificial Neural Network is a system loosely modeled on the human brain. modeled on the human brain. • The first attempt to build an operational model of The first attempt to build an operational model of the neuron used the simple binary comparator the neuron used the simple binary comparator (known as binary decision neuron).(known as binary decision neuron).

• One major disadvantage is that training is One major disadvantage is that training is required and the amount of training data can be required and the amount of training data can be large.large.• As our aim is to mimic the operation of the As our aim is to mimic the operation of the human brain to some extent it implies building human brain to some extent it implies building Artificial Intelligence.Artificial Intelligence.

Page 3: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

The field goes by many names, such as The field goes by many names, such as connectionism, parallel distributed processing, neuro-connectionism, parallel distributed processing, neuro-computing, natural intelligent systems, machine computing, natural intelligent systems, machine learning algorithmslearning algorithms, and, and artificial neural networks artificial neural networks..

Artificial Neural Networks:Artificial Neural Networks:

Consists of multiple layers of simple processing Consists of multiple layers of simple processing elements called neurons.elements called neurons.

Learning is accomplished by adjusting the varying Learning is accomplished by adjusting the varying strengths of neurons with neighbors that causes the strengths of neurons with neighbors that causes the overall network to output appropriate results.overall network to output appropriate results.

AAn n artificial neural networkartificial neural network (ANN) is an information- (ANN) is an information-processing system that is based on generalizations of processing system that is based on generalizations of human cognition or neural biology.human cognition or neural biology.

Signals are passed between neurons over connection Signals are passed between neurons over connection links.links.

Each connection link has an associated weight, Each connection link has an associated weight, which, in a typical neural net, multiplies the signal which, in a typical neural net, multiplies the signal transmitted. transmitted.

Page 4: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

A Neural Network (NN) is characterized by its A Neural Network (NN) is characterized by its particular:particular:

ArchitectureArchitecture: its pattern of connections between : its pattern of connections between the neurons.the neurons.

Learning AlgorithmLearning Algorithm: its method of determining the : its method of determining the weights on the connections.weights on the connections.

Activation functionActivation function: which determines its output.: which determines its output.

Each neuron has an internal state, called its Each neuron has an internal state, called its activationactivation or or activity levelactivity level which is a function of the which is a function of the inputs it has received.inputs it has received.

A neuron sends its activation as a signal to several A neuron sends its activation as a signal to several other neurons.other neurons.

A neuron can send only one signal at a time, A neuron can send only one signal at a time, although that signal may be broadcast to several although that signal may be broadcast to several other neurons.other neurons.

Page 5: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Analogy to the Brain:Analogy to the Brain: Neural networks have a strong similarity to the Neural networks have a strong similarity to the biological brain and therefore a great deal of the biological brain and therefore a great deal of the terminology is borrowed from neuroscienceterminology is borrowed from neuroscience..

The Biological Neuron:

The most basic element of the human brain is a specific type of cell, which provides us with the abilities to These cells are known as neurons, each of these neurons can connect with up to 200000 other neurons.

The power of the brain comes from the numbers of a specific type cell which provides the ability to remember, think, and apply previous experiences to our every action and the multiple connections between them.

All natural neurons have four basic components, which are dendrites, soma, axon, and synapses.

Page 6: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

A Biological Neuron

Page 7: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Artificial neurons, simulates the four basic functions Artificial neurons, simulates the four basic functions of natural neurons.of natural neurons.

Artificial neurons are much simpler than the Artificial neurons are much simpler than the biological neuron.biological neuron.

Various inputs to the network are represented by the Various inputs to the network are represented by the mathematical symbol, x (n). mathematical symbol, x (n).

Each of these inputs are multiplied by a connection Each of these inputs are multiplied by a connection weight, these weights are represented by w (n). weight, these weights are represented by w (n).

In the simplest case, these products are simply In the simplest case, these products are simply summed, fed through a transfer function to generate a summed, fed through a transfer function to generate a result, and then output.result, and then output.

Page 8: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Basic Block of an Artificial Neuron.Basic Block of an Artificial Neuron.

Page 9: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

The Complex Design issues consists of:The Complex Design issues consists of:

Layers:Layers:

Arranging neurons in various layers.Arranging neurons in various layers.

Deciding the type of connections among neurons for Deciding the type of connections among neurons for different layers, as well as among the neurons within a different layers, as well as among the neurons within a layer.layer.

Deciding the way a neuron receives input and produces Deciding the way a neuron receives input and produces output.output.

Determining the strength of connection within the Determining the strength of connection within the network by allowing the network to learn the appropriate network by allowing the network to learn the appropriate values of connection weights by using a training data set.values of connection weights by using a training data set.

A layer of “input” units is connected to a layer of A layer of “input” units is connected to a layer of “hidden” units, which is connected to a layer of “output” “hidden” units, which is connected to a layer of “output” units.units.

The activity of each hidden unit is determined by the The activity of each hidden unit is determined by the activities of the input units and weights on the connections activities of the input units and weights on the connections between the input and hidden units.between the input and hidden units.

The behavior of the output units depends on the activity The behavior of the output units depends on the activity of the hidden units and the weights between the hidden of the hidden units and the weights between the hidden and output units.and output units.

Biologically, neural networks are constructed in a 3D way Biologically, neural networks are constructed in a 3D way from microscopic components. from microscopic components.

Page 10: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

The input layer consists of neurons that receive input The input layer consists of neurons that receive input form the external environment.form the external environment.The output layer consists of neurons that communicate The output layer consists of neurons that communicate the output of the system to the user or external the output of the system to the user or external environment.environment.Usually a number of hidden layers between these two Usually a number of hidden layers between these two layers.layers.

The input layer receives the input its neurons produce The input layer receives the input its neurons produce output, which becomes input to the other layers of the output, which becomes input to the other layers of the system. The process continues until a certain condition system. The process continues until a certain condition is satisfied. For determining the number of hidden is satisfied. For determining the number of hidden neurons, one are often left out to the method trial and neurons, one are often left out to the method trial and error. error.

Page 11: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Neural Network Architecture:Neural Network Architecture:

Feed forward networks:Feed forward networks: Feed forward ANNs allow Feed forward ANNs allow signals to travel one way only, from input to output.signals to travel one way only, from input to output.

Feedback Networks:Feedback Networks: Feedback networks can have Feedback networks can have signals traveling in both directions by introducing the signals traveling in both directions by introducing the loops in the network.loops in the network.

Page 12: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Communication and types of connections:Communication and types of connections:

Connected via a network of paths carrying the Connected via a network of paths carrying the output of one neuron as input to another neuron. output of one neuron as input to another neuron.

Unidirectional paths. Unidirectional paths.

Neuron receives input from many neurons, but Neuron receives input from many neurons, but produce a single output, which is communicated to produce a single output, which is communicated to other neurons.other neurons.

Neuron in a layer may communicate with each Neuron in a layer may communicate with each other, or they may not have any connections.other, or they may not have any connections.

The neurons of one layer are always connected to The neurons of one layer are always connected to the neurons of at least another layer.the neurons of at least another layer.

Page 13: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Inter-layer connections:Inter-layer connections:

Fully connectedFully connected

Partially connectedPartially connected

Bi-directionalBi-directional

ResonanceResonance

Feed forwardFeed forward

HierarchicalHierarchical

There are different types of connections used between There are different types of connections used between layers, these connections between layers are called layers, these connections between layers are called inter-layer connectionsinter-layer connections. . These are of following types:These are of following types:

Page 14: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Intra-layer connections:Intra-layer connections:In more complex structures the neurons communicate In more complex structures the neurons communicate among themselves within a layer, known as intra-layer among themselves within a layer, known as intra-layer connections. There are of two types:connections. There are of two types:

Recurrent:Recurrent: The neurons within a layer are fully- or The neurons within a layer are fully- or partially connected to one another. They communicate partially connected to one another. They communicate their outputs with one another a number of times before their outputs with one another a number of times before they are allowed to send their outputs to another layer. they are allowed to send their outputs to another layer.

On-center/off surround:On-center/off surround: A neuron within a layer has A neuron within a layer has excitatory connections to itself and its immediate excitatory connections to itself and its immediate neighbors, and has inhibitory connections to other neighbors, and has inhibitory connections to other neurons. Each gang excites itself and its gang members neurons. Each gang excites itself and its gang members and inhibits all members of other gangs. After a few rounds and inhibits all members of other gangs. After a few rounds of signal interchange, the neurons with an active output of signal interchange, the neurons with an active output value will win, and is allowed to update its and its gang value will win, and is allowed to update its and its gang member’s weights. There are two types of connections member’s weights. There are two types of connections between two neurons, excitatory or inhibitory. In the between two neurons, excitatory or inhibitory. In the excitatory connection, the output of one neuron increases excitatory connection, the output of one neuron increases the action potential of the neuron to which it is connected. the action potential of the neuron to which it is connected. In Inhibitory connection the output of the neuron sending a In Inhibitory connection the output of the neuron sending a message would reduce the activity or action potential of message would reduce the activity or action potential of the receiving neuron. the receiving neuron.

Excitatory causes the summing mechanism of the next Excitatory causes the summing mechanism of the next neuron to add while Inhibitory causes it to subtract. neuron to add while Inhibitory causes it to subtract.

Page 15: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Learning:Learning:

Neural networks are sometimes called machine-Neural networks are sometimes called machine-learning algorithms.learning algorithms. Strength of connection between the neurons is Strength of connection between the neurons is stored as a weight-value for the specific connection.stored as a weight-value for the specific connection. System learns new knowledge by adjusting these System learns new knowledge by adjusting these connection weights.connection weights.

Supervised Learning:Supervised Learning: It incorporates an external It incorporates an external teacher, so that each output unit is told what is teacher, so that each output unit is told what is desired response to input signals ought to be. During desired response to input signals ought to be. During the learning process global information may be the learning process global information may be required.required.

Unsupervised Learning:Unsupervised Learning: It uses no external teacher It uses no external teacher and is based upon only local information. It is also and is based upon only local information. It is also referred to as self-organization, in the sense that it referred to as self-organization, in the sense that it self-organizes the data presented to the network and self-organizes the data presented to the network and detect their emergent collective properties.detect their emergent collective properties.

Page 16: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Back propagation:Back propagation: This method is proven highly This method is proven highly successful in training of multilayered neural nets. The successful in training of multilayered neural nets. The network is not just given reinforcement for how it is doing network is not just given reinforcement for how it is doing on a task. Information about errors is also filtered back on a task. Information about errors is also filtered back through the system and is used to adjust the connections through the system and is used to adjust the connections between the layers, thus improving performance. A form of between the layers, thus improving performance. A form of supervised learning.supervised learning.

Reinforcement learning:Reinforcement learning: This method works on This method works on reinforcement from the outside. The connections among reinforcement from the outside. The connections among the neurons in the hidden layer are randomly arranged, the neurons in the hidden layer are randomly arranged, then reshuffled as the network is told how close it is to then reshuffled as the network is told how close it is to solving the problem.solving the problem.

Page 17: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Learning Methods:Learning Methods:

Off-line:Off-line: In the off-line learning methods, once the In the off-line learning methods, once the systems enters into the operation mode, its weights are systems enters into the operation mode, its weights are fixed and do not change any more. Most of the fixed and do not change any more. Most of the networks are of the off-line learning type. networks are of the off-line learning type.

On-line:On-line: In on-line or real time learning, when the In on-line or real time learning, when the system is in operating mode (recall), it continues to system is in operating mode (recall), it continues to learn while being used as a decision tool. This type of learn while being used as a decision tool. This type of learning has a more complex design structure.learning has a more complex design structure.

Page 18: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Learning Laws:Learning Laws:These laws are mathematical algorithms used to These laws are mathematical algorithms used to update the connection weights.update the connection weights.

Hebb’s Rule:Hebb’s Rule: If a neuron receives an input from If a neuron receives an input from another neuron, and if both are highly active another neuron, and if both are highly active (mathematically have the same sign), the weight (mathematically have the same sign), the weight between the neurons should be strengthened.between the neurons should be strengthened.

Hopfield Law:Hopfield Law: It specifies the magnitude of the It specifies the magnitude of the strengthening or weakening. It states, "if the desired strengthening or weakening. It states, "if the desired output and the input are both active or both inactive, output and the input are both active or both inactive, increment the connection weight by the learning rate, increment the connection weight by the learning rate, otherwise decrement the weight by the learning rate.otherwise decrement the weight by the learning rate.

Page 19: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

The Delta Rule:The Delta Rule: The Delta Rule is a further variation The Delta Rule is a further variation of Hebb’s Rule, and it is one of the most commonly of Hebb’s Rule, and it is one of the most commonly used. This rule is based on the idea of continuously used. This rule is based on the idea of continuously modifying the strengths of the input connections to modifying the strengths of the input connections to reduce the difference (the delta) between the desired reduce the difference (the delta) between the desired output value and the actual output of a neuron.output value and the actual output of a neuron.

Activation functions:Activation functions: Various algorithms can be tried Various algorithms can be tried with several choices of activation functions. Some with several choices of activation functions. Some examples of those activation functions are: - sine, examples of those activation functions are: - sine, cosine, linear & hyperbolic tangent.cosine, linear & hyperbolic tangent.

Page 20: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Architecture for XOR problemArchitecture for XOR problem

Problem analysis in Neural Networks:Problem analysis in Neural Networks:

XOR/Parity bit problem:XOR/Parity bit problem: This is a standard This is a standard problem. The network used, had a 2-2-1 problem. The network used, had a 2-2-1 architecture.architecture.

Page 21: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Architecture for 10-5-10 Architecture for 10-5-10 problemproblem

The 10-5-10 encoder decoder problem:The 10-5-10 encoder decoder problem: This This architecture contains 10 inputs, 5 Neurons in architecture contains 10 inputs, 5 Neurons in hidden layer & 10 Outputs.hidden layer & 10 Outputs.

Page 22: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

8 input 3-output classification problem:8 input 3-output classification problem: The 8 The 8 input is 8 different symptoms of diseases. The input is 8 different symptoms of diseases. The network was trained to diagnose the disease. The network was trained to diagnose the disease. The disease was coded as one of the possible 8 binary disease was coded as one of the possible 8 binary combinations. The network used had an 8-6-3 combinations. The network used had an 8-6-3 architecture.architecture.

Architecture for 8 inputs & 3-output Architecture for 8 inputs & 3-output problemproblem

Page 23: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Where are Neural Networks being used:Where are Neural Networks being used:

Pattern recognition training:Pattern recognition training: Automated recognition of Automated recognition of handwritten text, spoken words, facial/fingerprint identification handwritten text, spoken words, facial/fingerprint identification and moving targets on a static background has all been and moving targets on a static background has all been successfully implemented.successfully implemented.

Speech production:Speech production: This involves a neural network This involves a neural network connected to a speech synthesizer. ANN-based algorithms are connected to a speech synthesizer. ANN-based algorithms are used to discover rules for themselves. A most remarkable used to discover rules for themselves. A most remarkable example of this is the program Net-Talk.example of this is the program Net-Talk.

Image processing and pattern recognitionImage processing and pattern recognition form an important form an important area of neural networks.area of neural networks. Character recognition and handwriting recognition.Character recognition and handwriting recognition. AI expert systems are today used in applications where the AI expert systems are today used in applications where the underlying knowledge base does not significantly change with underlying knowledge base does not significantly change with time (e.g. time (e.g. medical diagnostic systemsmedical diagnostic systems).).

ANNs are more suitable when the input dataset can evolve ANNs are more suitable when the input dataset can evolve with time (e.g. with time (e.g. real-time control systemsreal-time control systems). ).

Page 24: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Conclusion:Conclusion:

Artificial neural networksArtificial neural networks offer an ability to perform offer an ability to perform tasks outside the scope of traditional processors. tasks outside the scope of traditional processors.

Neural networks learn, they are not programmed.It is Neural networks learn, they are not programmed.It is for that reason that neural networks are finding for that reason that neural networks are finding themselves in applications where humans are also themselves in applications where humans are also unable to always be right. unable to always be right.

Neural networks need faster hardware. It is then that Neural networks need faster hardware. It is then that these systems will be able to hear speech, read these systems will be able to hear speech, read handwriting, and formulate actions. They will be able to handwriting, and formulate actions. They will be able to become the intelligence behind robots who never tire become the intelligence behind robots who never tire nor become distracted. It is then that they will become nor become distracted. It is then that they will become the leading edge in an age of "the leading edge in an age of "intelligent machines”intelligent machines”..

Page 25: Authored By :- Rachit Kr. Rastogi Computer Sc. & Engineering Deptt., College Of Technology, G.B.P.U.A.T. Pantnagar, India email: getrachit@yahoo.com getrachit@yahoo.com.

Thank You.Thank You.


Recommended