‘It keeps me awake at night’: machine-learning pioneer on AI’s threat to humanity