Create anomaly detection metric