A laser can kill a weed. The harder trick is teaching a machine which plant deserves to live - and making the answer pay for a farmer.