Artificial-intelligence experts generally follow one of two schools of thought – it will either improve our lives enormously or destroy us all. And that is why this week’s European Parliament debate on how the technology is regulated is so important. But how could AI be made safe? Here are five of the challenges ahead.