Anomaly detection for manufacturing quality