Scientists have built a computer ‘brain circuit’, or artificial neural network, that mirrors human decision-making processes and sheds light on how circuits might be altered in psychiatric diseases.