CS 420/594 — Biologically Inspired Computation
NetLogo Simulation

AICA:
Activation-Inhibition Cellular Automaton


This page was automatically generated by NetLogo 4.0.3. Questions, problems? Contact feedback@ccl.northwestern.edu.

The applet requires Java 1.4.1 or higher. It will not run on Windows 95 or Mac OS 8 or 9. Mac users must have OS X 10.2.6 or higher and use a browser that supports Java 1.4. (Safari works, IE does not. Mac OS X comes with Safari. Open Safari and set it as your default web browser under Safari/Preferences/General.) On other operating systems, you may obtain the latest Java plugin from Sun’s Java site.  General information on the models, including instructions for running them on your own computer, is available from the NetLogo Simulation Information Page.  To download this page, do not use "Save As," but right-click (or on Macs control-click) on this link.  You also need to download the NetLogo program, which you can do by right-clicking or control-clicking this link.

powered by NetLogo

view/download model file: AICA.nlogo

WHAT IS IT?

Could it be that a single mechanism underlies such diverse patterns such as the stripes on a zebra, the spots on a leopard, and the blobs on a giraffe? This model is a possible explanation of how the patterns on animals' skin self-organize. If the model is right, then even though the animals may appear to have altogether different patterns, the rules underlying the formation of these patterns are the same and only some of the values (the numbers that the rules work on) are slightly different.

Thinking of the formation of fur in terms of rules also helps us understand how offspring of animals may have the same type of pattern, but not the same exact pattern. This is because what they have inherited is the rules and the values rather than a fixed picture. The process by which the rules and values generate a pattern is affected by chance factors, so each individual's pattern is different, but as long as the offspring receive the same rules and values, their own fur will self organize into the same type of pattern as their parents'.


HOW IT WORKS

We model the animal skin by a square array of many melanocytes (pigment cells) that are each in either of two states: colorful ('D' for differentiated) or not-colorful ('U' for undifferentiated). The state of a cell can flip between D and U. The color cells (the D's) have an activity level of +1 and the uncolored cells (the U's) have and activity level of -1.

Each cell, whether or not it is colorful, is itself the center of its own neighborhood. For now, suppose the neighborhood is a circle. Say this circular neighborhood has a radius of 6 cells. This means that the cell in the center can be affected by other cells that are as far as 6 cells away from it in any direction. So the activity level of a D cell within this circle will affect this central cell (but a D cell 7 cells away will not directly or immediately affect it). Also, each cell has an inner circle of radius, say, 3 cells.

The total activity (+1s and -1s) of the cells within the inner circle each contributes to the activation of the central cell. Between the inner circle and the perimeter of the outer circle we have a ring of cells that are more than 3 cells away from the center but 6 or less cells away from the center. The total activity in this outer ring contributes to the inhibition of the central cell. So at every moment each cell is both activated and inhibited by cells in its circle and the question is: will it ultimately be activated and become colorful or be inhibited and lose its color (or just remain the way it was). The logic is that if the activation power is bigger than the inhibition power then the cell will become colorful and vice versa (and if activation and inhibition are balanced then nothing happens). The idea of "power" is that it's not enough to know total activity of each cell affecting the center cell, but one must multiply each cell by its "power": the total activity of the cells in the inner circle is multiplied by J1 (a positive quantity), giving the activation power; the total activity in the ring of cells is multiplied by J2 (a negative quantity) to give the inhibition power. If the activation exceeds the inhibition in magnitude, the cell becomes activated and D (colored), but if the inhibition is greater in magnitude, the cell becomes U (uncolored). Furthermore, cells may be biased more towards activation or inhibition, so that inhibition has to exceed inhibition be a certain threshold, or vice versa. (A tricky point to notice is that while a certain D-cell is activating a neighboring cell, this same D-cell can be inhibiting a different cell further away.)

Here are the rules that summarize what we've been discussing: add up all the activities (+1 or -1) of the cells in the ring and call this number I (inhibitory activity), and add up all the activities of the cells in the iner circle and call this number A (activating activity). Let H be the bias (which makes activation or inhibition more likely, depending on whether it's positive or negative). Then compute J1*A + J2*I + H (recalling that J2 < 0), and:

- if it is > 0, set activitiy of the central cell to +1
- if it is < 0, set the activity of the central cell to -1
- if it is = 0, leave the central cell unchanged

Note that this computation happens to all cells at the same time. After the first step and once the cells have been set accordingly, the entire business starts over at the next step. Once again, the cells are counted up according to the same rule. The rules have not changed but because some of the D cells are now U and vice versa we might get different counts and because of that -- different results of the "fight" between the activation and inhibition powers.

So what you see is that from step to step the individual cells often change from black (representing D or color cells) to white (representing U or no-color cells) and the overall impression is that the configuration of white and black changes as a whole. But these configurations are not random. You will see how these configurations often take form. Understanding how each cell behaves, as we have explained above, can help understanding how these global patterns take form.


HOW TO USE IT

In order that your first experiment will more-or-less match the explanations above, you should choose to set the initial-density slider to 50% (that gives each cell an equal chance of being white or black to start with and so the whole window will be roughly 50% black), set the R1 (inner radius) slider to 1 and the R2 (outer radius) sliders to 6, set inner interaction strength J1 to 1 and outer interacton strength J2 to -0.1 (which makes inner cells activating and outer cells inhibiting), and set H (bias) to 0. Now press SETUP. (In later experiments you are welcome to change those settings in various combinations.) It will converge in very few cycles (less than 20). If you press STEP the model will advance a single step. If you press GO the model will keep stepping indefinitely.

The program precomputes the neighborhoods. Because of this, only press CALCULATE NBDS when you change the metric or radius sliders. If you only change the INITIAL-DENSITY, J1, J2, and H sliders or if you'd like to run the model again with the same settings, press RESTART instead of CALCULATE NBDS. The SETUP button doesn't ask the patches to recalculate their neighborhoods.

DRAW BLACK and DRAW WHITE allow patches to be colored by hand, while the simulation is running or when it is stopped.


THINGS TO NOTICE

As the model runs, patterns may begin to emerge. Eventually, they stabilize. (Well, sometimes the model will run into an endless flip-flop between two states, but we could call that dynamic stability.) Even when it seems to come to a halt, the model is still running and executing the commands and carrying out the computations, but nothing is changing visibly. This is because for each and every cell the power of activators is equal to that of the inhibitors, so nothing changes.


THINGS TO TRY

Run the model with different INITIAL-DENSITY settings. How, if at all, does the value of the INITIAL-DENSITY affect the emergent pattern? Do you get the same pattern? Do you get a different pattern? Does it take longer?

Note how fragile the self organization of the cells is to slight changes in parameters. If you hold all other factors and slightly change just the RATIO, from trial to trial, you will note that for small ratios you will invariably get completely white fur and for high ratios you will invariably get completely black fur (why is that?). For ratios in between it fluctuates. That happens partially because the initial setting of black/white coloration has a random element to it (see the RESTART procedure in the code).

To see that even when the state has stabilized, the model is still computing it (called a "stationary state" or "dynamic equilibrium"), try the following. Click DRAW BLACK or DRAW WHITE and change some of cells. Notice how the pattern is almost instantly restored (not always exactly, but to a qualitatively similar pattern).

To see the effects of more extensive damage, stop the simulation and use DRAW BLACK and DRAW WHITE to change large areas of cells. Then restart the simulation and see what happens.


EXTENDING THE MODEL

If you find a combination of slider and switch values that consistently give you the fur patterns of a favorite animal, you could create a button, for instance "Zebra," that sets the sliders to those values. That way, if you make several of these, you can go on a virtual safari tour by moving between your favorite animals. One such combination that you could set in a single button could be:

Parameters
R1 3
R2 6
J1 1
J2 -0.1
H 0
INITIAL-DENSITY 50%

You could call this, perhaps, Fish.

The model provides three neighborhood shapes, L1, L2, and L_infinity. Add some other neighborhood shapes. In particular, add oval or oblong shapes, and add sliders so that the user can control their width and height.

How about adding more colors? What could be the logic here? If you introduced, say, red, you would have to decide on specific conditions under which that color would appear. Also, you'd have to decide how that color influences other cells.


RELATED MODELS

The Fur model, in the Biology section, implements a similar model of pattern formation, using diffusing "morphogens" to implement short-range activation and long-range inhibition.

The Voting model, in the Social Science section, is based on simpler rules but generates patterns that are similar in some respects.


CREDITS AND REFERENCES

Developed 2008-09-15 by B. J. MacLennan to be implemented and behave similarly to the activation-inhibition cellular automaton model of pattern formation in Bar Yam (1997, sec. 7.2).

Bar Yam, Y. (1997). Dynamics of Complex Systems. Reading, MA: Perseus. http://www.necsi.org/publications/dcs/.

Much of this documentation and a few lines of code were borrowed from: Wilensky, U. (2003). NetLogo Fur model. http://ccl.northwestern.edu/netlogo/models/Fur. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.

All rights reserved. See http://ccl.northwestern.edu/netlogo/models/Fur for terms of use.



Return to CS 420/594 home page

Return to MacLennan's home page

Send mail to Bruce MacLennan / MacLennan@utk.edu

Valid HTML 4.01! This page is www.cs.utk.edu/~mclennan/Classes/420/NetLogo/AICA.html
Last updated: 2008-09-15.