A multi-task based deep learning approach for intrusion detection