Learning with supervised data for anomaly detection in smart manufacturing