pattern recognition in manufacturing defects