Automatic control of food manufacturing processes