A legal challenge is being prepared to overturn the Intellectual Property Office’s decision not to recognise a machine as an inventor.