Before the machines become smart enough to replace humans, as some people fear, they need to be taught