Autoregressive Models for Anomaly Detection in Predictive Maintenance