A team at the University of Oxford drew inspiration from Pavlov's dog to design a photonics-based neural network.