Anomaly Detection Principles and Algorithms