With layers of interconnected nodes, artificial neural networks mirror the workings of the human brain. Today, machines have learned to pick stocks, diagnose illnesses, and play games better than humans—but will they ever be able to outperform us in all cognitive tasks?