Image copyright AFP Image caption The World Economic Forum has said robots and AI could replace 5.1 million jobs by 2020 Science fiction has long imagined a future in which humans are ousted from their jobs by machines.