Message Boards Message Boards

[WSSA16] Classification of Cellular Automata via Machine Learning


Rule 110

Cellular Automata Classification Problem using Machine Learning.

Cellular Automata, mathematical systems that are governed by simple behavioral rules, are useful in modeling different physical, biological and chemical processes and are also interesting abstract mathematical objects. There are four types of CA distinguished by their pattern: 1. disappearing with time

2. evolves to the fixed size

3. grows infinitely at fixed speed

 4. grows and contracts irregularly

In my project I have tried to test my theory of how reasonable to take such parameters as information entropy and compressibility for classifying 256 elementary CA rules into these classes using Machine Learning.

Introduction. Cellular Automata are very mysterious mathematical systems.Even though they are descibed by very simple rules it is almost imposible to give strict mathematical criteria for distinguishing their class by their evolution. But human mind somehow manages to do that task. I think that one of the main reasons for that is that human brain always takes a bigger picture of the system and works principally other way than machine do. That is why using Machine Learning which imitates human thinking might be very effective method for solving this problem.

Generating Dataset The very first thing that I have done was generating my CA dataset for my research. It was done by using standart built-in Mathametica function for creating Cellular Automaton with certain rule, initial condition number of evolution steps.

cadata = Flatten[Map[Table[ca[#], {10}] &, Range[255]], 1];

For every Rule there are 10 Cellular Automata with 10 random initial conditions that have format of sequences of "1"s and "0"s. Whole dataset includes 2560 CA for all 256 rules which is enough big to feed classifier function.


Then I have tried to apply entropy function to every element of my dataset but one problem occured. enter image description here

Applying entropy function directly resulted some elements from different classes to have same value of entropy. For example Rule 110 and Rule 30 had exactly same entropy value, but they belong to different classes.

enter image description here

Rule 110 Rule 110

Rule 30 Rule 30

Trying different approach increased precision. Instead of calculating the entropy of whole automaton I have been partitioning it into blocks of {k,k} size and taking the size of the block which has maximum value of entropy forming pairs of two numbers for each automaton {k- size of the of the block that has maximum value of entropy, maximum entropy value itself}.


enter image description here enter image description here


Then I try to give another complexity measure by calculating how much my cellular automata can be compressed.


enter image description here

Clustifier Function So now we have 3 parameteres to feed our classifier function {max entropy of CA parts, dimension of that part, compressibility}.

Each of these tuples is a point in 3D space.

enter image description here

After using Unsupervised Learning the classifier function produced 4 clusters. Result Cluster 1

enter image description here

Cluster 2 enter image description here

Cluster 3

enter image description here

Cluster 4

enter image description here


Although this method isn't very accurate but futher improvemets and adding new macroparameters may give more precise result.

POSTED BY: Sergey Barseghyan
1 year ago

Very nice post. You may find interesting that this is the first part (almost step by step) of a paper I wrote 7 years ago in the Complex Systems journal. With a much further improvement in another paper published in the journal of Bifurcation and Chaos with preprint available here.

POSTED BY: Hector Zenil
1 year ago

Group Abstract Group Abstract