AI could wipe out humanity by the end of the decade at the rate things are going, he warns.