Malicious traffic detection in multi-environment networks using novel S-DATE and PSO-D-SEM approaches