Modeling of quality deterioration during food processing and storage