Automation is not the cause, but an increase in farmers per capita increases resistance to unhealthful or immoral food production practices (crowded, drugged, chemicalled animals; GMO crops, nutrient-depleted vegetables, corn-raised cattle, raw milk bans).
More people getting into farming could really help turn around American food
In general, I'd say that the main factor is that the change of having cheap and abundant food is not followed by a change in diet. It takes some pain and a couple generations (in the best case) to adapt.