notes on anomaly detection