Anomaly detection in edge networks