AI role in anomaly detection