Companies are racing to build machines that are more intelligent and more like us