Fermentation diagnosis by multivariate statistical analysis