Sensory ecology and perceptual allocation: new prospects for neural networks