Prof Stuart Russell wrote the book on artificial intelligence back in 1995, when the next few decades of AI were uncertain. Sitting down with Ian Sample, he talks about his latest book, which warns of a dystopian future in which humans are outsmarted by machines. But how did we get here?