Neuroscientists suggest Hebbian learning. Better known as "neurons that fire together, wire together" which can be roughly rephrased to "neurons identify correlations in the input". They do this in a quasi-layered environment differentially modulated by waves of the materials used to alter their connections (a.k.a. trophic factor).