Machine learning for anomaly detection in physics