An uncertainty-managing batch relevance-based approach to network anomaly detection