Anomaly detection with density estimation