From: A machine-learning phase classification scheme for anomaly detection in signals with periodic characteristics