The development of full artificial intelligence could spell the end of the human race.