Artificial Intelligence Chapter 4. Machine Evolution.

Slides:



Advertisements
Similar presentations
Student : Mateja Saković 3015/2011.  Genetic algorithms are based on evolution and natural selection  Evolution is any change across successive generations.
Advertisements

Biologically Inspired AI (mostly GAs). Some Examples of Biologically Inspired Computation Neural networks Evolutionary computation (e.g., genetic algorithms)
EvoNet Flying Circus Introduction to Evolutionary Computation Brought to you by (insert your name) The EvoNet Training Committee The EvoNet Flying Circus.
Institute of Intelligent Power Electronics – IPE Page1 Introduction to Basics of Genetic Algorithms Docent Xiao-Zhi Gao Department of Electrical Engineering.
EvoNet Flying Circus Introduction to Evolutionary Computation Brought to you by (insert your name) The EvoNet Training Committee The EvoNet Flying Circus.
A new crossover technique in Genetic Programming Janet Clegg Intelligent Systems Group Electronics Department.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Tutorial 1 Temi avanzati di Intelligenza Artificiale - Lecture 3 Prof. Vincenzo Cutello Department of Mathematics and Computer Science University of Catania.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
CS 447 Advanced Topics in Artificial Intelligence Fall 2002.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
16 November, 2005 Statistics in HEP, Manchester 1.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Khaled Rasheed Computer Science Dept. University of Georgia
Genetic Algorithms Overview Genetic Algorithms: a gentle introduction –What are GAs –How do they work/ Why? –Critical issues Use in Data Mining –GAs.
Genetic Programming Chapter 6. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Genetic Programming GP quick overview Developed: USA.
Evolutionary Computation Instructor: Shu-Mei Guo Nature Inspired Algorithmic Techniques.
Evolutionary algorithms
Genetic Algorithm.
Genetic Algorithms and Ant Colony Optimisation
Evolutionary Intelligence
Introduction to Genetic Algorithms and Evolutionary Computation
Evolution Strategies Evolutionary Programming Genetic Programming Michael J. Watts
Genetic algorithms Prof Kang Li
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Artificial Intelligence Chapter 4. Machine Evolution Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
What is Genetic Programming? Genetic programming is a model of programming which uses the ideas (and some of the terminology) of biological evolution to.
Introduction to Evolutionary Algorithms Session 4 Jim Smith University of the West of England, UK May/June 2012.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Genetic Algorithms. Evolutionary Methods Methods inspired by the process of biological evolution. Main ideas: Population of solutions Assign a score or.
EvoNet Flying Circus Introduction to Evolutionary Computation Brought to you by (insert your name) The EvoNet Training Committee The EvoNet Flying Circus.
1 Genetic Algorithms and Ant Colony Optimisation.
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Evolutionary Computation: A Tutorial September 2009 Biointelligence Laboratory School of Computer Sci. & Eng. Seoul National University
Chapter 9 Genetic Algorithms.  Based upon biological evolution  Generate successor hypothesis based upon repeated mutations  Acts as a randomized parallel.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
ECE 103 Engineering Programming Chapter 52 Generic Algorithm Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Genetic Programming A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Chapter 6.
Solving Function Optimization Problems with Genetic Algorithms September 26, 2001 Cho, Dong-Yeon , Tel:
Chapter 9 Genetic Algorithms Evolutionary computation Prototypical GA
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Genetic Algorithms. Underlying Concept  Charles Darwin outlined the principle of natural selection.  Natural Selection is the process by which evolution.
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Introduction to Evolutionary Computing II A.E. Eiben Free University Amsterdam with thanks to the EvoNet Training Committee.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
EvoNet Flying Circus Introduction to Evolutionary Computation Brought to you by (insert your name) The EvoNet Training Committee The EvoNet Flying Circus.
EVOLUTIONARY SYSTEMS AND GENETIC ALGORITHMS NAME: AKSHITKUMAR PATEL STUDENT ID: GRAD POSITION PAPER.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
March 1, 2016Introduction to Artificial Intelligence Lecture 11: Machine Evolution 1 Let’s look at… Machine Evolution.
Presented By: Farid, Alidoust Vahid, Akbari 18 th May IAUT University – Faculty.
Genetic Programming.
Evolutionary Algorithms Jim Whitehead
Evolution Strategies Evolutionary Programming
Artificial Intelligence Project 2 Genetic Algorithms
Artificial Intelligence Chapter 4. Machine Evolution
Artificial Intelligence Chapter 4. Machine Evolution
Introduction to Artificial Intelligence Lecture 11: Machine Evolution
Artificial Intelligence Chapter 4. Machine Evolution
Artificial Intelligence Chapter 4. Machine Evolution
A Gentle introduction Richard P. Simpson
Genetic Programming Chapter 6.
Genetic Programming Chapter 6.
Genetic Programming Chapter 6.
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
Beyond Classical Search
Presentation transcript:

Artificial Intelligence Chapter 4. Machine Evolution

(C) 2000, 2001 SNU CSE Biointelligence Lab2 Overview Introduction to Evolutionary Computation  Biological Background  Evolutionary Computation Genetic Algorithm Genetic Programming Summary  Applications of EC  Advantage & disadvantage of EC Further Information

(C) 2000, 2001 SNU CSE Biointelligence Lab3 Biological Basis Biological systems adapt themselves to a new environment by evolution.  Generations of descendants are produced that perform better than do their ancestors. Biological evolution  Production of descendants changed from their parents  Selective survival of some of these descendants to produce more descendants

(C) 2000, 2001 SNU CSE Biointelligence Lab4 Evolutionary Computation What is the Evolutionary Computation?  Stochastic search (or problem solving) techniques that mimic the metaphor of natural biological evolution. Metaphor EVOLUTION Individual Fitness Environment PROBLEM SOLVING Candidate Solution Quality Problem

(C) 2000, 2001 SNU CSE Biointelligence Lab5 General Framework of EC Generate Initial Population Evaluate Fitness Select Parents Generate New Offspring Termination Condition? Yes No Fitness Function Crossover, Mutation Best Individual

(C) 2000, 2001 SNU CSE Biointelligence Lab6 Geometric Analogy - Mathematical Landscape

(C) 2000, 2001 SNU CSE Biointelligence Lab7 Paradigms in EC Evolutionary Programming (EP)  [L. Fogel et al., 1966]  FSMs, mutation only, tournament selection Evolution Strategy (ES)  [I. Rechenberg, 1973]  Real values, mainly mutation, ranking selection Genetic Algorithm (GA)  [J. Holland, 1975]  Bitstrings, mainly crossover, proportionate selection Genetic Programming (GP)  [J. Koza, 1992]  Trees, mainly crossover, proportionate selection

(C) 2000, 2001 SNU CSE Biointelligence Lab8 (Simple) Genetic Algorithm (1) Genetic Representation  Chromosome  A solution of the problem to be solved is normally represented as a chromosome which is also called an individual.  This is represented as a bit string.  This string may encode integers, real numbers, sets, or whatever.  Population  GA uses a number of chromosomes at a time called a population.  The population evolves over a number of generations towards a better solution.

(C) 2000, 2001 SNU CSE Biointelligence Lab9 Genetic Algorithm (2) Fitness Function  The GA search is guided by a fitness function which returns a single numeric value indicating the fitness of a chromosome.  The fitness is maximized or minimized depending on the problems.  Eg) The number of 1's in the chromosome Numerical functions

(C) 2000, 2001 SNU CSE Biointelligence Lab10 Genetic Algorithm (3) Selection  Selecting individuals to be parents  Chromosomes with a higher fitness value will have a higher probability of contributing one or more offspring in the next generation  Variation of Selection  Proportional (Roulette wheel) selection  Tournament selection  Ranking-based selection

(C) 2000, 2001 SNU CSE Biointelligence Lab11 Genetic Algorithm (4) Genetic Operators  Crossover (1-point)  A crossover point is selected at random and parts of the two parent chromosomes are swapped to create two offspring with a probability which is called crossover rate.  This mixing of genetic material provides a very efficient and robust search method.  Several different forms of crossover such as k-points, uniform

(C) 2000, 2001 SNU CSE Biointelligence Lab12 Genetic Algorithm (5)  Mutation  Mutation changes a bit from 0 to 1 or 1 to 0 with a probability which is called mutation rate.  The mutation rate is usually very small (e.g., 0.001).  It may result in a random search, rather than the guided search produced by crossover.  Reproduction  Parent(s) is (are) copied into next generation without crossover and mutation.

(C) 2000, 2001 SNU CSE Biointelligence Lab13 Example of Genetic Algorithm

(C) 2000, 2001 SNU CSE Biointelligence Lab14 Genetic Programming Genetic programming uses variable-size tree- representations rather than fixed-length strings of binary values. Program tree = S-expression = LISP parse tree Tree = Functions (Nonterminals) + Terminals

(C) 2000, 2001 SNU CSE Biointelligence Lab15 GP Tree: An Example Function set: internal nodes  Functions, predicates, or actions which take one or more arguments Terminal set: leaf nodes  Program constants, actions, or functions which take no arguments S-expression: (+ 3 (/ (  5 4) 7)) Terminals = {3, 4, 5, 7} Functions = {+, , /}

(C) 2000, 2001 SNU CSE Biointelligence Lab16 Setting Up for a GP Run The set of terminals The set of functions The fitness measure The algorithm parameters  population size, maximum number of generations  crossover rate and mutation rate  maximum depth of GP trees etc. The method for designating a result and the criterion for terminating a run.

(C) 2000, 2001 SNU CSE Biointelligence Lab17 Crossover: Subtree Exchange + b   ab + b +   aab +  ab   ab + b +  a b 

(C) 2000, 2001 SNU CSE Biointelligence Lab18 Mutation  ab + b /  a +  b + b /  a - ba

(C) 2000, 2001 SNU CSE Biointelligence Lab19 Example: Wall-Following Robot Program Representation in GP  Functions  AND (x, y) = 0 if x = 0; else y  OR (x, y) = 1 if x = 1; else y  NOT (x) = 0 if x = 1; else 1  IF (x, y, z) = y if x = 1; else z  Terminals  Actions: move the robot one cell to each direction { north, east, south, west }  Sensory input: its value is 0 whenever the coressponding cell is free for the robot to occupy; otherwise, 1. { n, ne, e, se, s, sw, w, nw }

(C) 2000, 2001 SNU CSE Biointelligence Lab20 A Wall-Following Program

(C) 2000, 2001 SNU CSE Biointelligence Lab21 Evolving a Wall-Following Robot Experimental Setup  Population size: 5,000  Fitness measure: the number of cells next to the wall that are visited during 60 steps  Perfect score (320) One Run (32)  10 randomly chosen starting points  Termination condition: found perfect solution  Selection: tournament selection

(C) 2000, 2001 SNU CSE Biointelligence Lab22 Creating Next Generation  500 programs (10%) are copied directly into next generation.  Tournament selection 7 programs are randomly selected from the population 5,000. The most fit of these 7 programs is chosen.  4,500 programs (90%) are generated by crossover.  A mother and a father are each chosen by tournament selection.  A randomly chosen subtree from the father replaces a randomly selected subtree from the mother.  In this example, mutation was not used.

(C) 2000, 2001 SNU CSE Biointelligence Lab23 Two Parents Programs and Their Child

(C) 2000, 2001 SNU CSE Biointelligence Lab24 Result (1) Generation 0  The most fit program (fitness = 92)  Starting in any cell, this program moves east until it reaches a cell next to the wall; then it moves north until it can move east again or it moves west and gets trapped in the upper-left cell.

(C) 2000, 2001 SNU CSE Biointelligence Lab25 Result (2) Generation 2  The most fit program (fitness = 117)  Smaller than the best one of generation 0, but it does get stuck in the lower-right corner.

(C) 2000, 2001 SNU CSE Biointelligence Lab26 Result (3) Generation 6  The most fit program (fitness = 163)  Following the wall perfectly but still gets stuck in the bottom- right corner.

(C) 2000, 2001 SNU CSE Biointelligence Lab27 Result (4) Generation 10  The most fit program (fitness = 320)  Following the wall around clockwise and moves south to the wall if it doesn’t start next to it.

(C) 2000, 2001 SNU CSE Biointelligence Lab28 Result (5) Fitness Curve  Fitness as a function of generation number  The progressive (but often small) improvement from generation to generation

(C) 2000, 2001 SNU CSE Biointelligence Lab29 Applications of EC Numerical, Combinatorial Optimization System Modeling and Identification Planning and Control Engineering Design Data Mining Machine Learning Artificial Life

(C) 2000, 2001 SNU CSE Biointelligence Lab30 Advantages of EC No presumptions w.r.t. problem space Widely applicable Low development & application costs Easy to incorporate other methods Solutions are interpretable (unlike NN) Can be run interactively, accommodate user proposed solutions Provide many alternative solutions

(C) 2000, 2001 SNU CSE Biointelligence Lab31 Disadvantages of EC No guarantee for optimal solution within finite time Weak theoretical basis May need parameter tuning Often computationally expensive, i.e. slow

(C) 2000, 2001 SNU CSE Biointelligence Lab32 Further Information on EC Conferences  IEEE Congress on Evolutionary Computation (CEC)  Genetic and Evolutionary Computation Conference (GECCO)  Parallel Problem Solving from Nature (PPSN)  Int. Conf. on Artificial Neural Networks and Genetic Algorithms (ICANNGA)  Int. Conf. on Simulated Evolution and Learning (SEAL) Journals  IEEE Transactions on Evolutionary Computation  Evolutionary Computation  Genetic Programming and Evolvable Machines  Evolutionary Optimization