The next stage was add a super-simple "resting" phase algorithm. Because I'm developing the software iteratively and incrementally, I just decided to put a neuron into a rest phase when its waste became bigger than a max threshold and then exit the rest phase when the waste became zero.
In real life, this would be useless, because it would mean that you could not wake up during the night for any reason, even if your house was burning down!
The next phase is to improve the rest phase algorithm to take into account the activity of a cell's neighbors. That way, a cell can wake up if its neighbors are also awake, allowing a brain to quickly awaken if necessary even if the cells have a lot of accumulated metabolic waste.
Here's a plot from phase 3, with the number of awake neurons shown in red.
Comments