The rapid expansion of artificial intelligence (AI) has generated a lot of excitement, but also some (perhaps justified) paranoia. Will computers replace—or even overtake—human beings?