A new kind of computer model--grounded in real biology--helps reveal how the brain both adapts and misfires, laying the groundwork for more precise treatments for mental health disorders.