Ants for inspiration, where it goes beyond metaphor and into analogy, has a nice history in the sciences, including computer science.
1993 is a good example of ants and neurology being compared.
Ants are _the_ inspiration for every Cellular Automata. They may start calling it cells but quickly always refer to ants.
We subconsciously based all of this stuff on ants. But why? We were once ants and never lost those abilities. They just got smaller and incorporated into how our brains work.
You might have a point with that. Still, they learn and also remember. They can also pass the knowledge of what they learned onto other slime molds.
Also, they can anticipate change and mark time.