Advances in artificial intelligence (AI) - a field of computer science in which machines are taught to carry out tasks that require human traits of thought or intelligence - have led some to predict a knock-on catastrophe for jobs.