A biomedical engineer reports that a brain-computer interface, a form of artificial intelligence, can sense when its user is expecting a reward by examining the interactions between single-neuron activities and the information flowing to these neurons. The work represents a significant step forward for prosthetics that perform more naturally.