Adaptive intrusion detection in distributed environments: An ensemble-based approach