SlideShare a Scribd company logo
10
Most read
11
Most read
16
Most read
NEURAL NETWORKS USING GENETIC
ALGORITHMS
RAJITHA NELLEPALLI
DEPARTMENT OF MASTER OF COMPUTER APPLICATIONS,SIETK
EMAIL ID:- rajithanellepalli18@gmail.com
ABSTRACT
• Combining neural network with evolutionary algorithms leads to
evolutionary artificial neural network. Evolutionary algorithms like GA
to train neural nets choose their structure or design related aspects
like the functions of their neurons. Along with basic concepts of
neural networks and genetic algorithm this paper includes a flexible
method for solving travelling salesman problem using genetic
algorithm. This offers a solution which includes a genetic algorithm
implementation in order to give a maximal approximation of the
problem with the reduction of cost.
KEYWORDS
 Genetic algorithm, Neural network, Travelling salesman problem
INTRODUCTION
• Genetic algorithm and neural networks are both inspired by
computation in biological system. A good deal of biological neural
architecture is determined genetically. Neural networks and genetic
algorithms are two techniques for optimization and learning, each
having its own strengths process tries to artificially reproduce the
mating process where the DNA of two parents determines the DNA
for the newly born.
Genetic algorithm :
“Genetic algorithms are based on mechanics of natural selection and
natural genetics”. This method combines Darwinian style survival of
the fittest among binary string "artificial creatures" with a structured,
yet randomized information exchange.
Fitness function(def)
In Genetic algorithms, each solution is generally represented as a string
of binary numbers, known as a chromosome.
Genetic algorithm have three main operations :-
 Reproduction(individual strings are copied according to their
fitness. that is having more chances to survive in next generation.)
 Crossover
 Mutation
CROSSOVER & MUTATION
• Here the crossover site is 7.
• After bit 7 the value of p-1 and p-2 get
interchanged, and the results as child 1
and child 2
• Mutation is carried out by flipping some digits
of a string which generates new solutions.
• Here mutation takes place at bit 7.
• Because of flip/swap the value of bit 7
changed from 1 to 0.
NEURAL NETWORK
• Let us review the basics of a neural networks . A neural network is a
Computational model consisting of a number of connected elements
knows as neurons.
• This neuron is a processing unit that receives input from outside the
network and /or from others neurons . Applies a local transformation
to that input and provides a single output signal which is passed on
to others neurons outside the network .
• The main elements or blocks of an artificial neural networks are as
follows:
a)The computing element
b)The connection pattern among the elements
c)The process used for training the neural network
An artificial neural network is composed of many artificial neurons that
are linked together according to specific network architecture. The
objective of the neural network is to transform the inputs into
meaningful outputs.
How to apply GA to Neural Networks
Combining Neural Nets with Evolutionary Algorithms leads to
Evolutionary Artificial Neural Networks (EANNs). One can use
Evolutionary Algorithms like the GA to train Neural Nets, choose their
structure or design related aspects like the function of their neurons.
Using GA to Train Neural Network:
First why one use GA to train Neural Networks: GA will train the
network no matter how it is connected - whether it’s a feed-forward or
a feedback network. Furthermore, it can train general networks which
are a mixture of the two types
Simple Neuro network String/Chromosome
chromosome
 All the weights in the network are
joined to make one string.
 The String is then used in the GA as a
member of the population. String
represents the weights of a complete
network.
• Depicts the value of chromosome
obtained from simple neural
network .
 How to evaluate Fitness
Fitness is measured by calculating the error (target – output) (i.e. fitness= 1/error) - the
lower the error the higher the fitness.
Example
The target for a network with a particular input is 1.The outputs are shown below ,calculate
their fitness.
Population
Member
1
2
3
4
Output
0.4
0.2
1.6
-0.9
Populatio
n
Members
1
2
3
4
Output
0.4
0.2
1.6
-0.9
Error
(T-0)
0.6
0.8
-0.6
1.9
Positive
0.6ss
0.8
0.6
1.9
Fitness
1.67
1.26
1.67
0.53
Implementation of GA in travelling
salesman problem
The genetic algorithms are more appropriately said to be an optimization technique
based on natural evolution. They include the survival of the fittest idea algorithm.
The idea is to first ‘guess’ the solutions and then combining the fittest solution to
create a new generation of solutions which should be better than the previous
generation I
 Methodology:
simple GA works by randomly generating an initial population of string ,which is referred as gene pool
and then apply
Operators to create new, and hopefully ,better population as successive generations.
 The first operator is reproduction where string are copied to the next generation with some probability
based on their
Objective functions value.
 The second operator is crossover where randomly selected pairs of strings are mated , creating new strings.
 The third operator ,mutation , is the occasional random alteration of the value at a string position.
Flow chart
In this flow chart we can see various steps
are following while implementing genetic
Algorithms to travelling salesman problem.
First create initial population, and then
evaluate fitness of all the chromosomes by
Applying fitness function to it.
 Application area of GA/ Neural network
a)Automotive Design
b)Robotics
C)Evolvable Hardware
d)Biomimetics Invention
Pros Cons
1. GA helps to generates better
population from good parents.
2. These results close to global
optimum.
3. Important character of GA , it is
robust.
4. They works well in various filed as:
In pattern matching
speech recognition , text-to-speech
Machines that are able learn
optical character recognition(OCR)
Fraudulent credit card detection(VISA)
1. It remains a “black box ” which
once fed with inputs produces an
output.
2. However ,their excellent result
record might compensate for that
deficiency.
3. A second drawback is that
inputs have to be altered before
being fed to the network.
It fails to depict following:
which network to use?
How many hidden layers?
Conclusion
This paper makes an effort to give a review with respect to
neural networks, genetic algorithm and how they both work
together. Genetic algorithm has three main operators: selection,
mutation and crossover. Neural network is computational model
having number of processing elements called neurons. These
techniques are black box which once fed with inputs produces an
output. As genetics and neural networks have a wide real-world
application area, also suffers from various cons so in future it will try
to work on these limitations. Reference
Questions?
Thank
You !

More Related Content

PDF
Naive Bayes Classifier
PDF
Credit card fraud detection through machine learning
PPTX
PDF
Machine Learning Model Evaluation Methods
PPTX
Image classification using cnn
PPTX
04 Multi-layer Feedforward Networks
PPTX
Hierarchical clustering
PPTX
Travelling Salesman Problem using Partical Swarm Optimization
Naive Bayes Classifier
Credit card fraud detection through machine learning
Machine Learning Model Evaluation Methods
Image classification using cnn
04 Multi-layer Feedforward Networks
Hierarchical clustering
Travelling Salesman Problem using Partical Swarm Optimization

What's hot (20)

PPTX
Soft computing Chapter 1
PDF
L2. Evaluating Machine Learning Algorithms I
PPTX
eScience SHAP talk
PDF
Recurrent neural networks rnn
PPSX
Particle Swarm optimization
PDF
RM 701 Genetic Algorithm and Fuzzy Logic lecture
PPTX
Introduction to Grad-CAM (complete version)
PPTX
Introduction to Spiking Neural Networks: From a Computational Neuroscience pe...
PDF
Forward-Forward Algorithm
PDF
Neural Networks: Introducton
PPTX
Word embeddings, RNN, GRU and LSTM
PPTX
Loss Function.pptx
PDF
Understanding Bagging and Boosting
PDF
Artificial Neural Network Paper Presentation
PPT
CONFUSION MATRIX.ppt
PPT
Action Recognition (Thesis presentation)
PDF
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
PDF
Methods of Optimization in Machine Learning
PDF
Convolutional neural network
DOCX
Neural nw k means
Soft computing Chapter 1
L2. Evaluating Machine Learning Algorithms I
eScience SHAP talk
Recurrent neural networks rnn
Particle Swarm optimization
RM 701 Genetic Algorithm and Fuzzy Logic lecture
Introduction to Grad-CAM (complete version)
Introduction to Spiking Neural Networks: From a Computational Neuroscience pe...
Forward-Forward Algorithm
Neural Networks: Introducton
Word embeddings, RNN, GRU and LSTM
Loss Function.pptx
Understanding Bagging and Boosting
Artificial Neural Network Paper Presentation
CONFUSION MATRIX.ppt
Action Recognition (Thesis presentation)
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Methods of Optimization in Machine Learning
Convolutional neural network
Neural nw k means
Ad

Similar to 2. NEURAL NETWORKS USING GENETIC ALGORITHMS.pptx (20)

PDF
Methods of Combining Neural Networks and Genetic Algorithms
PDF
Model of Differential Equation for Genetic Algorithm with Neural Network (GAN...
PPTX
Genetic Algorithms.pptx on dsa , algorithms , genetic algos
PDF
4: Soft Computing: Genetic Algorithm (GN)
PDF
Introduction to Genetic Algorithms 2014
PPTX
Genetic Algorithm
PPSX
Genetic_Algorithm_AI(TU)
PDF
Introduction to Genetic Algorithms
PDF
generic optimization techniques lecture slides
PDF
09 genetic algorithms by Priyesh Marvi
PDF
genetic algorithms-artificial intelligence
PDF
Genetic algorithms
PPTX
AI_presentation.pptx
PDF
Introduction to Genetic Algorithms and Evolutionary Computation
PPTX
Genetic Algorithm: A Crisp And Concise Introduction [Shakeeb A.]
PPTX
GA of a Paper 2012.pptx
PPT
Genetic Algorithms-1.ppt
PDF
Swarm assignment 1
PDF
Genetic algorithm
PPTX
Genetic algorithm
Methods of Combining Neural Networks and Genetic Algorithms
Model of Differential Equation for Genetic Algorithm with Neural Network (GAN...
Genetic Algorithms.pptx on dsa , algorithms , genetic algos
4: Soft Computing: Genetic Algorithm (GN)
Introduction to Genetic Algorithms 2014
Genetic Algorithm
Genetic_Algorithm_AI(TU)
Introduction to Genetic Algorithms
generic optimization techniques lecture slides
09 genetic algorithms by Priyesh Marvi
genetic algorithms-artificial intelligence
Genetic algorithms
AI_presentation.pptx
Introduction to Genetic Algorithms and Evolutionary Computation
Genetic Algorithm: A Crisp And Concise Introduction [Shakeeb A.]
GA of a Paper 2012.pptx
Genetic Algorithms-1.ppt
Swarm assignment 1
Genetic algorithm
Genetic algorithm
Ad

Recently uploaded (20)

PDF
Pre independence Education in Inndia.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Classroom Observation Tools for Teachers
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Lesson notes of climatology university.
PDF
Sports Quiz easy sports quiz sports quiz
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Institutional Correction lecture only . . .
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Cell Structure & Organelles in detailed.
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
RMMM.pdf make it easy to upload and study
Pre independence Education in Inndia.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Microbial disease of the cardiovascular and lymphatic systems
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Classroom Observation Tools for Teachers
Final Presentation General Medicine 03-08-2024.pptx
Lesson notes of climatology university.
Sports Quiz easy sports quiz sports quiz
2.FourierTransform-ShortQuestionswithAnswers.pdf
Anesthesia in Laparoscopic Surgery in India
O7-L3 Supply Chain Operations - ICLT Program
Institutional Correction lecture only . . .
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
GDM (1) (1).pptx small presentation for students
Insiders guide to clinical Medicine.pdf
Cell Structure & Organelles in detailed.
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
RMMM.pdf make it easy to upload and study

2. NEURAL NETWORKS USING GENETIC ALGORITHMS.pptx

  • 1. NEURAL NETWORKS USING GENETIC ALGORITHMS RAJITHA NELLEPALLI DEPARTMENT OF MASTER OF COMPUTER APPLICATIONS,SIETK EMAIL ID:- rajithanellepalli18@gmail.com
  • 2. ABSTRACT • Combining neural network with evolutionary algorithms leads to evolutionary artificial neural network. Evolutionary algorithms like GA to train neural nets choose their structure or design related aspects like the functions of their neurons. Along with basic concepts of neural networks and genetic algorithm this paper includes a flexible method for solving travelling salesman problem using genetic algorithm. This offers a solution which includes a genetic algorithm implementation in order to give a maximal approximation of the problem with the reduction of cost.
  • 3. KEYWORDS  Genetic algorithm, Neural network, Travelling salesman problem
  • 4. INTRODUCTION • Genetic algorithm and neural networks are both inspired by computation in biological system. A good deal of biological neural architecture is determined genetically. Neural networks and genetic algorithms are two techniques for optimization and learning, each having its own strengths process tries to artificially reproduce the mating process where the DNA of two parents determines the DNA for the newly born.
  • 5. Genetic algorithm : “Genetic algorithms are based on mechanics of natural selection and natural genetics”. This method combines Darwinian style survival of the fittest among binary string "artificial creatures" with a structured, yet randomized information exchange.
  • 6. Fitness function(def) In Genetic algorithms, each solution is generally represented as a string of binary numbers, known as a chromosome. Genetic algorithm have three main operations :-  Reproduction(individual strings are copied according to their fitness. that is having more chances to survive in next generation.)  Crossover  Mutation
  • 7. CROSSOVER & MUTATION • Here the crossover site is 7. • After bit 7 the value of p-1 and p-2 get interchanged, and the results as child 1 and child 2 • Mutation is carried out by flipping some digits of a string which generates new solutions. • Here mutation takes place at bit 7. • Because of flip/swap the value of bit 7 changed from 1 to 0.
  • 8. NEURAL NETWORK • Let us review the basics of a neural networks . A neural network is a Computational model consisting of a number of connected elements knows as neurons. • This neuron is a processing unit that receives input from outside the network and /or from others neurons . Applies a local transformation to that input and provides a single output signal which is passed on to others neurons outside the network .
  • 9. • The main elements or blocks of an artificial neural networks are as follows: a)The computing element b)The connection pattern among the elements c)The process used for training the neural network An artificial neural network is composed of many artificial neurons that are linked together according to specific network architecture. The objective of the neural network is to transform the inputs into meaningful outputs.
  • 10. How to apply GA to Neural Networks Combining Neural Nets with Evolutionary Algorithms leads to Evolutionary Artificial Neural Networks (EANNs). One can use Evolutionary Algorithms like the GA to train Neural Nets, choose their structure or design related aspects like the function of their neurons. Using GA to Train Neural Network: First why one use GA to train Neural Networks: GA will train the network no matter how it is connected - whether it’s a feed-forward or a feedback network. Furthermore, it can train general networks which are a mixture of the two types
  • 11. Simple Neuro network String/Chromosome chromosome  All the weights in the network are joined to make one string.  The String is then used in the GA as a member of the population. String represents the weights of a complete network. • Depicts the value of chromosome obtained from simple neural network .
  • 12.  How to evaluate Fitness Fitness is measured by calculating the error (target – output) (i.e. fitness= 1/error) - the lower the error the higher the fitness. Example The target for a network with a particular input is 1.The outputs are shown below ,calculate their fitness. Population Member 1 2 3 4 Output 0.4 0.2 1.6 -0.9 Populatio n Members 1 2 3 4 Output 0.4 0.2 1.6 -0.9 Error (T-0) 0.6 0.8 -0.6 1.9 Positive 0.6ss 0.8 0.6 1.9 Fitness 1.67 1.26 1.67 0.53
  • 13. Implementation of GA in travelling salesman problem The genetic algorithms are more appropriately said to be an optimization technique based on natural evolution. They include the survival of the fittest idea algorithm. The idea is to first ‘guess’ the solutions and then combining the fittest solution to create a new generation of solutions which should be better than the previous generation I  Methodology: simple GA works by randomly generating an initial population of string ,which is referred as gene pool and then apply Operators to create new, and hopefully ,better population as successive generations.  The first operator is reproduction where string are copied to the next generation with some probability based on their Objective functions value.  The second operator is crossover where randomly selected pairs of strings are mated , creating new strings.  The third operator ,mutation , is the occasional random alteration of the value at a string position.
  • 14. Flow chart In this flow chart we can see various steps are following while implementing genetic Algorithms to travelling salesman problem. First create initial population, and then evaluate fitness of all the chromosomes by Applying fitness function to it.
  • 15.  Application area of GA/ Neural network a)Automotive Design b)Robotics C)Evolvable Hardware d)Biomimetics Invention
  • 16. Pros Cons 1. GA helps to generates better population from good parents. 2. These results close to global optimum. 3. Important character of GA , it is robust. 4. They works well in various filed as: In pattern matching speech recognition , text-to-speech Machines that are able learn optical character recognition(OCR) Fraudulent credit card detection(VISA) 1. It remains a “black box ” which once fed with inputs produces an output. 2. However ,their excellent result record might compensate for that deficiency. 3. A second drawback is that inputs have to be altered before being fed to the network. It fails to depict following: which network to use? How many hidden layers?
  • 17. Conclusion This paper makes an effort to give a review with respect to neural networks, genetic algorithm and how they both work together. Genetic algorithm has three main operators: selection, mutation and crossover. Neural network is computational model having number of processing elements called neurons. These techniques are black box which once fed with inputs produces an output. As genetics and neural networks have a wide real-world application area, also suffers from various cons so in future it will try to work on these limitations. Reference