Advances in neuroscience and engineering are bringing us closer to a reality first described only in great science fiction: artificial intelligence.