EU prepares to impose rules on artificial intelligence