Text this: Design optimization of ANN-based pattern recognizer for multivariate quality control