A new machine-learning algorithm has uncovered new neural mechanisms and enhanced the decoding of behaviors directly from brain signaling data.