As labor costs rise, AI is learning to farm