A spiking network for body size learning inspired by the fruit fly