Dynamical feature extraction at the sensory periphery guides chemotaxis.