Expected Similarity Estimation for Large-Scale Batch and Streaming Anomaly Detection