Kyrre Glette INF3490 Evolvable Hardware Cartesian Genetic Programming

Similar documents
PARTICLE SWARM OPTIMIZATION (PSO)

ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS

Inertia Weight. v i = ωv i +φ 1 R(0,1)(p i x i )+φ 2 R(0,1)(p g x i ) The new velocity update equation:

Evolutionary Algorithms. CS Evolutionary Algorithms 1

Model Parameter Estimation

CHAPTER 6 HYBRID AI BASED IMAGE CLASSIFICATION TECHNIQUES

GENETIC ALGORITHM VERSUS PARTICLE SWARM OPTIMIZATION IN N-QUEEN PROBLEM

Traffic Signal Control Based On Fuzzy Artificial Neural Networks With Particle Swarm Optimization

The movement of the dimmer firefly i towards the brighter firefly j in terms of the dimmer one s updated location is determined by the following equat

Particle Swarm Optimization

Computer Systems Colloquium (EE380) Wednesday, 4:15-5:30PM 5:30PM in Gates B01

Argha Roy* Dept. of CSE Netaji Subhash Engg. College West Bengal, India.

1 Lab + Hwk 5: Particle Swarm Optimization

Ant Colony Optimization

CT79 SOFT COMPUTING ALCCS-FEB 2014

Solving the Traveling Salesman Problem using Reinforced Ant Colony Optimization techniques

METAHEURISTICS. Introduction. Introduction. Nature of metaheuristics. Local improvement procedure. Example: objective function

1 Lab 5: Particle Swarm Optimization

Swarm Intelligence (Ant Colony Optimization)

SWARM INTELLIGENCE -I

ATI Material Do Not Duplicate ATI Material. www. ATIcourses.com. www. ATIcourses.com

Genetic.io. Genetic Algorithms in all their shapes and forms! Genetic.io Make something of your big data

LECTURE 16: SWARM INTELLIGENCE 2 / PARTICLE SWARM OPTIMIZATION 2

Self-Organization Swarm Intelligence

A *69>H>N6 #DJGC6A DG C<>C::G>C<,8>:C8:H /DA 'D 2:6G, ()-"&"3 -"(' ( +-" " " % '.+ % ' -0(+$,

1 Lab + Hwk 5: Particle Swarm Optimization

An Efficient Analysis for High Dimensional Dataset Using K-Means Hybridization with Ant Colony Optimization Algorithm

Particle Swarm Optimization applied to Pattern Recognition

Simplifying Handwritten Characters Recognition Using a Particle Swarm Optimization Approach

Particle Swarm Optimization

CHAPTER 2 CONVENTIONAL AND NON-CONVENTIONAL TECHNIQUES TO SOLVE ORPD PROBLEM

Using Genetic Algorithms to optimize ACS-TSP

Meta- Heuristic based Optimization Algorithms: A Comparative Study of Genetic Algorithm and Particle Swarm Optimization

Performance Comparison of Genetic Algorithm, Particle Swarm Optimization and Simulated Annealing Applied to TSP

A SURVEY OF COMPARISON BETWEEN VARIOUS META- HEURISTIC TECHNIQUES FOR PATH PLANNING PROBLEM

Application of Improved Discrete Particle Swarm Optimization in Logistics Distribution Routing Problem

SIMULATION APPROACH OF CUTTING TOOL MOVEMENT USING ARTIFICIAL INTELLIGENCE METHOD

Improvement of a car racing controller by means of Ant Colony Optimization algorithms

Heuristic Optimisation

A Hybrid Method to Solve Travelling Salesman Problem

FOREST PLANNING USING PSO WITH A PRIORITY REPRESENTATION

EE 553 Term Project Report Particle Swarm Optimization (PSO) and PSO with Cross-over

International Journal of Digital Application & Contemporary research Website: (Volume 1, Issue 7, February 2013)

[Kaur, 5(8): August 2018] ISSN DOI /zenodo Impact Factor

4/22/2014. Genetic Algorithms. Diwakar Yagyasen Department of Computer Science BBDNITM. Introduction

A MULTI-SWARM PARTICLE SWARM OPTIMIZATION WITH LOCAL SEARCH ON MULTI-ROBOT SEARCH SYSTEM

Evolutionary algorithms in communications

A Genetic Algorithm for Graph Matching using Graph Node Characteristics 1 2

Hardware Neuronale Netzwerke - Lernen durch künstliche Evolution (?)

Generation of Ultra Side lobe levels in Circular Array Antennas using Evolutionary Algorithms

Mutations for Permutations

Ant colony optimization with genetic operations

Lecture 6: Genetic Algorithm. An Introduction to Meta-Heuristics, Produced by Qiangfu Zhao (Since 2012), All rights reserved

Hybrid of Ant Colony Optimization and Gravitational Emulation Based Load Balancing Strategy in Cloud Computing

A Study on Optimization Algorithms for Clustering Gene Expression Data

Particle Swarm Optimization Methods for Pattern. Recognition and Image Processing

Introduction to Multi-Agent Programming

Image Edge Detection Using Ant Colony Optimization

Neural Network Weight Selection Using Genetic Algorithms

Computational Intelligence Applied on Cryptology: a Brief Review

Cell-to-switch assignment in. cellular networks. barebones particle swarm optimization

Introduction to Artificial Intelligence

Optimization of Makespan and Mean Flow Time for Job Shop Scheduling Problem FT06 Using ACO

Comparative Analysis of Swarm Intelligence Optimization Techniques for Cloud Scheduling

Scheduling of Independent Tasks in Cloud Computing Using Modified Genetic Algorithm (FUZZY LOGIC)


RELEVANCE OF ARTIFICIAL BEE COLONY ALGORITHM OVER OTHER SWARM INTELLIGENCE ALGORITHMS

Hybrid of Genetic Algorithm and Continuous Ant Colony Optimization for Optimum Solution

Week 9 Computational Intelligence: Particle Swarm Optimization

Optimal Power Flow Using Particle Swarm Optimization

A New Crossover Technique for Cartesian Genetic Programming

Evolutionary Computation. Chao Lan

Initializing the Particle Swarm Optimizer Using the Nonlinear Simplex Method

Enhanced Generalized Ant Programming (EGAP)

Witold Pedrycz. University of Alberta Edmonton, Alberta, Canada

Particle swarm optimization for mobile network design

An Introduction to Evolutionary Algorithms

intelligence in animals smartness through interaction

Nature Inspired Meta-heuristics: A Survey

Evolutionary Art with Cartesian Genetic Programming

Improved PSO for Feature Selection on High-Dimensional Datasets

Feature weighting using particle swarm optimization for learning vector quantization classifier

Image Enhancement using Ant Colony Optimization

Previous Lecture Genetic Programming

A Modified PSO Technique for the Coordination Problem in Presence of DG

Navigation of Multiple Mobile Robots Using Swarm Intelligence

Genetic Algorithms and Genetic Programming. Lecture 9: (23/10/09)

Robust Descriptive Statistics Based PSO Algorithm for Image Segmentation

Adaptive Ant Colony Optimization for the Traveling Salesman Problem

Applied Cloning Techniques for a Genetic Algorithm Used in Evolvable Hardware Design

Bio-inspired cost-aware optimization for dataintensive

DERIVATIVE-FREE OPTIMIZATION

Jednociljna i višeciljna optimizacija korištenjem HUMANT algoritma

A new improved ant colony algorithm with levy mutation 1

Genetic Algorithms. Genetic Algorithms

Midterm Examination CS540-2: Introduction to Artificial Intelligence

A Comparative Study of Genetic Algorithm and Particle Swarm Optimization

Particle Swarm Optimization Applied to Job Shop Scheduling

International Journal of Current Trends in Engineering & Technology Volume: 02, Issue: 01 (JAN-FAB 2016)

Artificial Intelligence in Robot Path Planning

Transcription:

Kyrre Glette kyrrehg@ifi INF3490 Evolvable Hardware Cartesian Genetic Programming

Overview Introduction to Evolvable Hardware (EHW) Cartesian Genetic Programming Applications of EHW 3

Evolvable Hardware (EHW) Hardware systems designed/ modified automatically by EAs A string of symbols/bits is evolved by an EA and translated into a HW system Offline EHW Solutions are simulated in a PC Online EHW Solutions are tested on target HW 4

EHW FPGA Reconfigurable hardware chip Useful for online EHW On-chip evolution EA running on the target chip, together with solutions Run-time adaptable EHW Evolution can modify the system during operation 5

Applications of EHW Pattern recognition / classification circuits Digital image filters Evolution of analog circuits Cache mapping functions On-the-fly compression for printers Spacecraft antenna 6

CARTESIAN GENETIC PROGRAMMING 7

Cartesian Genetic Programming (CGP) A type of Genetic Programming Allows restrictions compared to general GP: Integer genome Tree nodes are mapped to a grid Connectivity can be restricted Popular in Evolvable Hardware applications But can be used for many other things as well 8

Example structure: Digital circuit 9

CGP genome Internal node genes: Node type: index to lookup table of functions Inputs: index of other nodes Optional: additional parameters Output node gene: Internal node index 10

CGP parameters Columns: n c Rows: n l Levels-back: l How many of the previous columns a node can connect to Columns x rows defines the maximum number of nodes in the graph 11

General structure Genome: node outputs 12 connection gene function gene

Advantages of CGP Easy implementation Fixed genome size and simple representation Simple mutation and crossover Bloat is restricted The number of nodes is restricted Regular structure suitable for e.g. hardware implementation A grid structure with limited connectivity ideal for HW routing 13

Other features of CGP Reuse of parts of the tree is possible Allows multiple outputs Parts of the genome may be non-coding This has an analogy in biology, where only a fraction of the DNA is composed of exons ( coding genes). The other part is called introns (non-coding genes, sometimes called junk DNA). It is however believed that these are useful for something. Likewise, the genetic redundancy (neutrality) in CGP is thought to be positive for the evolutionary search. 14

Genetic operations in CGP Mutation Select randomly a number of genes to mutate Change to new (valid) random values Crossover One-point crossover or other variants directly on the genome Usually only mutations are used Many applications find crossover to have a destructive effect - it disrupts the tree structure too much 15

Evolution in CGP The most popular is a variant of ES called (1+4) ES Choose children which have >= fitness than parent 16

CGP can code: Circuits Mathematical functions / equations Neural networks Programs Machine learning structures 17

Example: Art Inputs: image pixel position x,y Outputs: r,g,b intensities per pixel Or single monochrome intensity r = f1(x,y) g = f2(x,y) b = f3(x,y) 18

Example: Evolvable Hardware 1 Evolution of combinational circuit, e.g. multiplier 2-bit multiplier: 2x2=4 inputs 4 outputs Fitness: # correct output combinations (of 16) 19

Example: Evolvable Hardware 2 Evolution of digital image filters Input: distorted image Output: filtered image Fitness: distance between filtered and original image 20

Example result (Slide from Sekanina) 21

Example: EHW 3 (ROBIN group) Evolution of HW classifiers Input: signal to be classified Output: classification result Fitness: # correctly classified training samples Ensemble model On-chip system 22

Challenges of EHW Scalability It s hard to evolve large systems! General challenge in EC Evolution of larger combinational circuits is difficult Large and difficult search space Time-consuming fitness function 4x4 multiplier is hard On-chip evolution Less flexibility offered by HW Reconfiguration can be challenging 23

Kyrre Glette kyrrehg@ifi INF3490 Swarm Intelligence Particle Swarm Optimization

Overview Introduction to swarm intelligence principles Particle Swarm Optimization (in depth) Stigmergy, pheromones, and ACO (briefly) Swarm robotics (briefly) 3

Swarms in nature http://youtu.be/kdecyxdw9tc 4

Fish, birds, ants, termites, 5

Key features Simple local rules Local interaction Decentralized control Complex global behavior Difficult to predict from observing the local rules Emergent behavior 6

Flocking model boids Separation avoid crowding Alignment steer towards average heading Cohesion steer towards average position Only considering the boid s neighborhood 7

Result - boids Original: http://youtu.be/86iqiv3-3ia Netlogo: Flocking 3D Alternate model 8

Application: Computer graphics http://youtu.be/-jf5saqbp4w 9

Applications in bio-inspired computing Particle swarm optimization Parameter optimization Ant colony optimization Graph-based optimization problems (e.g. TSP) Artificial immune systems Classification, anomaly detection Swarm robotics Achieve complex behavior in robotic swarms through simple local rules 10

Particle Swarm Optimization (PSO) Optimizes a population of solutions A swarm of particles 11

Principle Evaluate your present position Compare it to your previous best and neighborhood best Imitate self and others 12

Simplified PSO algorithm For each particle i in the swarm Calculate fitness Update local best Find neighborhood best Update velocity Update position 13

PSO update formulas For each dimension d in particle i: 1. Velocity update random random inertia 2. Position update direction personal best direction neighborhood best 14

What happens? A particle circles around in a region centered between the bests of itself and its neighbors The bests are updated and the particles cluster around better regions in the search space The way good solutions are propagated depends on how we define the neighborhood 15

Neighborhood topologies gbest: all particles are connected Every particle gets information about the global best value Can converge (too) fast lbest: connected to K nearest neighbors in a wrapped population array Slower convergence, depending on K More areas are searched in parallel Several other topologies exist 16

PSO parameters Particle: Usually a D-dimensional vector of real values Binary variant exists Swarm size: usually 10 < N < 100 Recommended α = 0.7298 Recommended β = 1.4961 17

Parameter experimentation NetLogo Particle Swarm Optimization model Model uses gbest neighborhood Download and try 18

Advantages of PSO Few parameters Gradient free Decentralized control (depends on variant.) Simple to understand basic principle Simple to implement 19

PSO vs. Evolutionary Algorithms Both are population based PSO: No selection all particles survive Information exchange between solutions: PSO: neighborhood best GA: crossover (and selection) 20

PSO applications Similar application areas as EAs Most optimization problems Image and video analysis Electricity network optimization Neural networks 21

Stigmergy Ants deposit a substance called pheromone when walking to and from food sources Other ants can sense this and follow the same path This kind of communication through the environment is called stigmergy 22

Ant Colony Optimisation (ACO) Inspired by ants use of pheromones Ants construct solutions in a graph Probability of choosing a new edge is proportional with its pheromone level Pheromone update on edges (Good) solutions deposit pheromones Old pheromones evaporate 23

ACO applications Telecomunication networks Scheduling problems Vehicle routing (truck fleet)... Further reading: M. Dorigo et al, Ant Colony Optimization Artificial Ants as a Computational Intelligence Technique, IEEE Computational Intelligence Magazine, Nov. 2006 24

Swarm robotics Inspired by nature s swarms Simple rules Local interaction Decentralized control Complex global behavior (soon?) Advantages Cheap components No single point of failure Many configurations possible Possible applications Search and rescue Remote area exploration Construction https://youtu.be/ndjtqq7xbwq 25

Swarm robotics examples Swarmbot http://youtu.be/h-2d-zlu-dq Collaborating robots TERMES http://youtu.be/tcjmg0jnodc Termite-inspired algorithmic self-assembly Kilobot https://youtu.be/xk54bu9hfrw?list=plc7119c2d50bea077 Large scale swarm, very simple control and communication Nano Quadrotors https://youtu.be/uqzul60v9ng Flocking-like rules for formation flying 26