Artificial neural networks modeled on human brain connectivity can effectively perform complex cognitive tasks.