Cellular Automata Evolution : Theory and Applications in Pattern Recognition and Classification Niloy Ganguly.

Slides:



Advertisements
Similar presentations
Enhanced matrix multiplication algorithm for FPGA Tamás Herendi, S. Roland Major UDT2012.
Advertisements

Cellular Automata (CA) - Theory & Application
Ali Husseinzadeh Kashan Spring 2010
CS6800 Advanced Theory of Computation
Embedded Algorithm in Hardware: A Scalable Compact Genetic Algorithm Prabhas Chongstitvatana Chulalongkorn University.
Generating Random Numbers
1 Neural networks. Neural networks are made up of many artificial neurons. Each input into the neuron has its own weight associated with it illustrated.
Using Parallel Genetic Algorithm in a Predictive Job Scheduling
DYNAMICS OF RANDOM BOOLEAN NETWORKS James F. Lynch Clarkson University.
CSCI 347 / CS 4206: Data Mining Module 07: Implementations Topic 03: Linear Models.
Copyright 2005, Agrawal & BushnellVLSI Test: Lecture 21alt1 Lecture 21alt BIST -- Built-In Self-Test (Alternative to Lectures 25, 26 and 27) n Definition.
Case Injected Genetic Algorithms Sushil J. Louis Genetic Algorithm Systems Lab (gaslab) University of Nevada, Reno
1 Learning to Detect Objects in Images via a Sparse, Part-Based Representation S. Agarwal, A. Awan and D. Roth IEEE Transactions on Pattern Analysis and.
Study of a Paper about Genetic Algorithm For CS8995 Parallel Programming Yanhua Li.
Introduction to Neural Networks John Paxton Montana State University Summer 2003.
Design for Testability Theory and Practice Lecture 11: BIST
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
Pattern Recognition. Introduction. Definitions.. Recognition process. Recognition process relates input signal to the stored concepts about the object.
CS 4700: Foundations of Artificial Intelligence
Nawaf M Albadia Introduction. Components. Behavior & Characteristics. Classes & Rules. Grid Dimensions. Evolving Cellular Automata using Genetic.
Software Testing Sudipto Ghosh CS 406 Fall 99 November 9, 1999.
Incremental Support Vector Machine Classification Second SIAM International Conference on Data Mining Arlington, Virginia, April 11-13, 2002 Glenn Fung.
Genetic Algorithm.
Computer Implementation of Genetic Algorithm
Efficient Model Selection for Support Vector Machines
Theory and Applications of GF(2 p ) Cellular Automata P. Pal Chaudhuri Department of CST Bengal Engineering College (DU) Shibpur, Howrah India (LOGIC ON.
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
CS 484 – Artificial Intelligence1 Announcements Lab 4 due today, November 8 Homework 8 due Tuesday, November 13 ½ to 1 page description of final project.
Investigation of the Effect of Neutrality on the Evolution of Digital Circuits. Eoin O’Grady Final year Electronic and Computer Engineering Project.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Boltzmann Machine (BM) (§6.4) Hopfield model + hidden nodes + simulated annealing BM Architecture –a set of visible nodes: nodes can be accessed from outside.
An Iterative Heuristic for State Justification in Sequential Automatic Test Pattern Generation Aiman H. El-MalehSadiq M. SaitSyed Z. Shazli Department.
Design of an Evolutionary Algorithm M&F, ch. 7 why I like this textbook and what I don’t like about it!
1 Chapter 13 Artificial Life: Learning through Emergent Behavior.
Soft Computing Lecture 14 Clustering and model ART.
1/27 Discrete and Genetic Algorithms in Bioinformatics 許聞廉 中央研究院資訊所.
Fuzzy Genetic Algorithm
So Far……  Clustering basics, necessity for clustering, Usage in various fields : engineering and industrial fields  Properties : hierarchical, flat,
Linear Feedback Shift Register. 2 Linear Feedback Shift Registers (LFSRs) These are n-bit counters exhibiting pseudo-random behavior. Built from simple.
1 A New Method for Composite System Annualized Reliability Indices Based on Genetic Algorithms Nader Samaan, Student,IEEE Dr. C. Singh, Fellow, IEEE Department.
G ENETIC P ROGRAMMING Ranga Rodrigo March 17,
Introduction to State Machine
Niloy Ganguly Biplab K Sikdar P Pal Chaudhuri Presented by Niloy Ganguly Indian Institute of Social Welfare and Business Management. Calcutta
Cellular Automata Machine For Pattern Recognition Pradipta Maji 1 Niloy Ganguly 2 Sourav Saha 1 Anup K Roy 1 P Pal Chaudhuri 1 1 Department of Computer.
Reactive Tabu Search Contents A brief review of search techniques
Cellular Automata Based Hamming Hash Family : Synthesis and Application CELLULAR AUTOMATA BASED HAMMING HASH FAMILY : SYNTHESIS AND APPLICATION Niloy Ganguly.
Digital Communications I: Modulation and Coding Course Term Catharina Logothetis Lecture 9.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Design of a Robust Search Algorithm for P2P Networks
Genetic algorithms: A Stochastic Approach for Improving the Current Cadastre Accuracies Anna Shnaidman Uri Shoshani Yerach Doytsher Mapping and Geo-Information.
May 2003 SUT Color image segmentation – an innovative approach Amin Fazel May 2003 Sharif University of Technology Course Presentation base on a paper.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
 Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems n Introduction.
Chapter 12 Case Studies Part B. Control System Design.
Genetic Algorithms.
Evolutionary Algorithms Jim Whitehead
Hiroki Sayama NECSI Summer School 2008 Week 3: Methods for the Study of Complex Systems Cellular Automata Hiroki Sayama
On Routine Evolution of Complex Cellular Automata
Ch7: Hopfield Neural Model
Factor Graphs and the Sum-Product Algorithm
Lectures on Network Flows
VLSI Testing Lecture 14: Built-In Self-Test
A Fault-Tolerant Routing Strategy for Fibonacci-Class Cubes
Sidharth Mishra Dr. T.Y. Lin CS 257 Section 1 MH 222 SJSU - Fall 2016
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Packet Classification with Evolvable Hardware Hash Functions
Aiman H. El-Maleh Sadiq M. Sait Syed Z. Shazli
Boltzmann Machine (BM) (§6.4)
Case Injected Genetic Algorithms
Algorithm Course Algorithms Lecture 3 Sorting Algorithm-1
Presentation transcript:

Cellular Automata Evolution : Theory and Applications in Pattern Recognition and Classification Niloy Ganguly

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Aim of the Dissertation Additive CA – An important modeling tool Extremely interesting state transition behavior Can mimic complex operations Problem – How to find the exact CA rules which will model a particular application This thesis builds up the general framework and applies it to the special application of Pattern Recognition

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Coverage Additive Cellular Automata (CA) ? Analysis Synthesis Evolution Pattern Recognition/Classification  Associative Machine  Pattern Classifier  Classifying Prohibited Pattern Sets for VLSI Testing Associative Memory – More general class of CA

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Cellular Automata 50’s - J von Nuemann 80’s - Wolfram Work round the world America - Santafe Institute of Complexity Study Europe - Stephen Bandini, Bastein Chopard VLSI Domain India under Prof. P.Pal.Chaudhuri Late 80’s - Work at IIT KGP Late 90’s - Work at BECDU  Book - Additive Cellular Automata Vol I

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Cellular Automata  A computational Model with discrete cells updated synchronously ……….. output Input Combinatio nal Logic Clock From Left Neighbor From Right Neighbor 0/1 2 - State 3- Neighborhood CA Cell

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Cellular Automata Combinational Logic can be of 256 types each type is called a rule ……….. Each cell can have 256 different rules Q CL K D Combinatio nal Logic Clock From Left Neighbor From Right Neighbor 2 - State 3- Neighborhood CA Cell

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Cellular Automata Combinational Logic can be of 256 types each type is called a rule ……….. Each cell can have 256 different rules cell CA with different rules at each cell

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA CA - State Transition

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA State Transition Diagram

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Additive Cellular Automata Combinational Logic can be of 15 types ……….. Each cell can have 15 different rules i-1ii+1 XNOR / XOR

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Additive Cellular Automata 15

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Additive Cellular Automata T = T = F = Linear CA Additive CA

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Additive Cellular Automata - Analysis CA Rules Cycle Structure

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Additive Cellular Automata - Analysis CA Rules Cycle Structure and Depth

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Linear Cellular Automata - Analysis CA Rules T = Characteristic Polynomial (x + 1). (x +1) 2. (x 2 +x + 1) [1(1), 1(1)] x [1(1), 1(1),1(2)] x [1(1), 1(3)] = [4(1), 2(2), 4(3), 2(6)] Elementary Divisor – (irreducible polynomial) p Primary Cycles (odd) – 1, 3. Secondary Cycles 2 p.k – (2, 4..), (6, 12,..). PFCS, PCS

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Additive Cellular Automata - Analysis Similarity between ACA and LCA The cycle structure of an Additive CA differs from its Linear Counterpart only if the characteristic polynomial contains a (x +1) factor T = F = CS = [2(4), 2(12))]

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Additive Cellular Automata - Analysis Compute the cycle structure of LCA. Characteristic Polynomial - (x + 1). (x +1) 2. (x 2 +x + 1) CS = [4(1), 2(2), 4(3), 2(6)] If factor (x+1) p is present Check the nature of F vector. If F vector belongs to Null Space of (x+1) p (here (x +1) 2 ), then merge all the cycles k to 2 p.k (here p = 2) k = 1 4 x x 2 = 8 = 2(4), k = 3 4 x x 6 = 24 = 2(12) Null Space (T + I) p. F = 0, (T + I) p-1. F ≠ 0

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Additive Cellular Automata - Synthesis CS = [4(1), 2(2), 4(3), 2(6)] Steps – Linear Cellular Automata 1.Express the CS as product of 2 PFCS [1(1), 3(1), 2(2)] x [1(1),1(3)] 2.Express PFCS as product of PCS (1,1) 1 x (1,1) 2 x (1,3) 1 3.Construct the elementary divisor of each PCS. (x+1). (x+1) 2. (x 2 +x+1) - characteristic polynomial. 4.Corresponding to each individual elementary divisor construct a submatrix and join the submatrix by placing them in Block Diagonal Form [1 ] |1 1| |0 1| |1 1| |1 0| T = (x+1) (x+1) 2 (x 2 +x+1) [1(1), 1(1), 1(2)]

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Additive Cellular Automata - Synthesis Steps – Additive Cellular Automata 1.Synthesis of T Matrix 2.Synthesis of F Vector Synthesis of T Matrix Find the corresponding linear cycle structure from the additive cycle structure CS = [2(4), 2(12))] CS = [4(1), 2(2), 4(3), 2(6)] Synthesize the T Matrix Synthesis of F Vector – Probabilistic approach, Randomly pick a F vector and check whether it falls in the respective Null Space

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA General Framework for CA evolution. 1. Form Population of (say) 50 CA Linear Cellular Automata - Evolution 4 cell CA needs 32 bit chromosome 3. Select 10 best solution … … 5. Crossover between solutions and form 35 new solutions Mutate 5 best chromosome Arrange the chromosomes with respect to their fitness value

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA General Framework for CA evolution. 1. Form Population of (say) 50 CA Linear Cellular Automata - Evolution 4 cell CA needs 32 bit chromosome … …. Population of 50 chromosomes at Generation … …. Population of 50 chromosomes at Generation 1

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA General Framework for CA evolution. 1. Form Population of (say) 50 CA Linear Cellular Automata - Evolution 4 cell CA needs 32 bit chromosome Problem – Huge search space 4 cell CA – search space = cell CA – search space = !!! For linear CA 100 cell CA – search space = !!! Solution – Analytically reduce the search space. Identify a subclass of CA fit for the particular job and evolve it. Subclass – Group CA, Max-length CA, LCA with same characteristic polynomial

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Special class of Linear CA Characteristic polynomial x n-m (1+x) m Min. Polynomial x d (1+x) d - depth Multiple Attractor Cellular Automata (MACA) Basin

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Select 10 best solution … … Crossover between solutions and form 35 new solutions Mutate 5 best chromosome Problem in using conventional genetic algorithm to arrive at the correct configuration of MACA Same rules in different sequence doesn’t produce the MACA MACANot an MACA MACA - Evolution

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA  A special methodology of Genetic Algorithm is used  Consideration - After mutation and cross-over, the resultant is also a MACA  Pseudo Chromosome Format is introduced  All members of chromosomes has the characteristic polynomial x n-m (1+x) m  The characteristic polynomial of all MACA is x n-m (1+x) m MACA - Evolution

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Char Poly = x 3 (1+x) 2 Distribute the factors - x 2 (1+x) x (1+x) Resultant Matrix T102 x2x2 (1 + x) x T =102 Pseudo Chromosome Format MACA - Evolution

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Each x d is represented by d followed by d -1 zeros Each (1+x) represented by x2x2 (1 + x) x T =102 Pseudo Chromosome Format MACA - Evolution

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA MACA - Evolution Crossover Technique MACA - 1 MACA - 2 MACA d followed by d-1 zero

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA MACA - Evolution Mutation Technique MACA - 1 Mutated MACA d followed by d-1 zero

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Multiple Attractor Cellular Automata - Applications Associative Memory Model Pattern Classifier AB C…ZAB C…Z Bookman Old Style A Comic Sans MS Conventional Approach - Compares input patterns with each of the stored patterns learn

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA The Problem A Comic Sans MS A A B AB C…ZAB C…Z Bookman old Style Grid by Grid Comparison

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA The Problem A A B Grid by Grid Comparison No of Mismatch = 3

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA The Problem A A B Grid by Grid Comparison No of Mismatch = 9

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Associative Memory Time to recognize a pattern - Proportional to the number of stored patterns ( Too costly with the increase of number of patterns stored ) Solution - Associative Memory Modeling Entire state space - Divided into some pivotal points. State close to pivot - Associated with that pivot. Time to recognize pattern - Independent of number of stored patterns.

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Time to recognize a pattern - Proportional to the number of stored patterns ( Too costly with the increase of number of patterns stored ) Solution - Associative Memory Modeling Two Phase : Learning and Detection Time to learn is higherDriving a car Difficult to learn but once learnt it becomes natural Densely connected Network - Problems to implement in Hardware Solution - Cellular Automata (Sparsely connected machine) - Ideally suitable for VLSI application Associative Memory

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA MACA – Can be made to act as an Associative Memory A B C D Hamming Hash Family - Patterns close to each other is more likely to fall in the same basin What follows – (for example) Different variations of A falls in same attractor basin MACA as Associative Memory

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Performance – Memorizing Capacity Given a set of patterns to be learned – P1, P2, ….Pk, Evolve an MACA which can classify the patterns in different attractor basin Pattern Size (n) Hopfield Network Capacity – Theoretical Capacity – Experimental

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Performance – Recognition Capacity Recognition Capacity - The machine can identify 90% of all the patterns which are within one hamming distance from pivot point. The recognition capacity can be made perfect by using multiple MACA each classifying the same set of patterns.

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Classifying Several Related Patterns into one class Vehicle Another Vehicle !! Pattern Classification

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Human Brain Pattern Classification

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA MACA - A NATURAL CLASSIFIER Class I Class II MACA Based Classification Strategy for Two Class Classifier Pattern Classification

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA MACA - A NATURAL CLASSIFIER. MACA Based Classification Strategy for Two Class Classifier Forms Natural Cluster Closeness is measured in terms of hamming distance Pattern Classification

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA MACA - A NATURAL CLASSIFIER. MACA Based Classification Strategy for Two Class Classifier Pattern Classification

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Distribution of patterns in class 1 and class2 a a’ bb’ c c’ Experimental Results

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA a a’ Experimental Results

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA bb’ Experimental Results

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA c c’ Experimental Results

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA d d’ Class 1 Class 2 Experimental Results Clusters Detection by two class classifier

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Prohibited Pattern Set Prohibited Pattern Set (PPS) – A set of patterns input of which sents the system into an unstable state. Example : Toggle State of a flip flop Design a TPG with the following features  It avoids the generation of such PPS  It maintains the randomness and fault coverage of a Pseudo Random Pattern Generator  Side by side it doesn’t add to any hardware cost

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Problem Definitions Non Max Length GF(2) Cellular Automata is employed to obtain the design criteria Design the CA in such a way so that it has large cycles free from PPS PPS can be of two types  Prohibited Random Patterns – Small number of patterns  Prohibited Functions – some combination of Primary Input can be detrimental

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Overview of Design Target Cycle(TC ) Redundant Cycle(RC ) Dmax Given PPS Evolve a Non Maxlength CA Criterion for choosing Non-Max Length CA Large cycle of length close to a Max length Cycle Most members of PPS fall in smaller cycles Same Evolution Framework as before, population is built on group CA only

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Experimental Observation-I Real data of PPS is not available PPS randomly generated, no. of prohibited patterns assumed 10, 15 For a particular n, 10 different PPS are considered PPS = 10 PPS = 15 TC FreeSpace #cell

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Experimental Observations -II Study of randomness property Platform used is DiehardC Compared with corresponding maximal length CA Random Testn=24 Max TPG n=32 Max TPG n=48 Max TPG Overlap Sum pass passpass 3D Spherepass fail B’day Spacingfail Overlap 5- permut fail pass DNAfail pass fail Squeezefail passfail pass fail

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Experimental Observations -III Fault coverage of the proposed design (Compared with MaxLength CA) Fault Simulator used : Cadence `verifault’

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Generalized Multiple Attractor CA The State Space of GMACA – Models an Associative Memory Associative Memory and Non-Linear CA

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Generalized Multiple Attractor CA Pivot Points Dist =1Dist =3  The state transition diagram breaks into disjoint attractor basin  Each attractor basin of CA should contain one and only one pattern to be learnt in its attractor cycle  The hamming distance of each state with its attractor is lesser than that of other attractors.

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA GMACA Evolution Fitness Function PjPj L max=4 If P j does not belongs to any attractor cycle after Maximum Iteration L max Fitness Function (F) = 0

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Fitness Function If P j does not belongs to any attractor cycle after Maximum Iteration L max Fitness Function (F) = 0 PjPj else Fitness Function: F = [1 - HD(P i - P j )/N] Desired Pivot Point GMACA Evolution

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Fitness Function Average fitness of 30 randomly chosen state GMACA Evolution

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Performance Observation : GMACA have much higher capacity than Hopfield Net Pattern Size (n) Hopfield Network Capacity – MACA Capacity – GMACA

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Comments  Memorizing Capacity of GMACA - Higher than Hopfield Net but less than MACA  Genetic Algorithm and Reverse Engineering Techniques is employed innovatively  Recognition Capacity higher than MACA  Rules lie in the edge of chaos

Analysis Synthesis Evolution Associative Memory Pattern Classifier PPS Non Linear CA Major Contributions  Analysis  Synthesis  Evolution  Pattern Recognition

Thank you