British theoretical physicist Stephen Hawking has warned that development of artificial intelligence could mean the end of humanity.