James Barrat is a documentary filmmaker and author of "Our Final Invention: Artificial Intelligence and the End of the Human Era."