Skip to main content
QUICK REVIEW

[Paper Review] Autoencoder-based Unsupervised Intrusion Detection using Multi-Scale Convolutional Recurrent Networks

Amardeep Singh, Julian Jang‐Jaccard|arXiv (Cornell University)|Apr 7, 2022
Network Security and Intrusion DetectionComputer Science14 citations
TL;DR

This paper proposes an unsupervised intrusion detection model, MSCNN-LSTM-AE, that combines multi-scale convolutional neural networks for spatial feature extraction and LSTM-based autoencoders for temporal pattern learning in network traffic. The model achieves state-of-the-art performance with high recall (98.81%) and F1-score (98.46%) on the CICDDoS2019 dataset, significantly outperforming existing unsupervised methods through joint spatial-temporal modeling and isolation forest-based error correction.

ABSTRACT

The massive growth of network traffic data leads to a large volume of datasets. Labeling these datasets for identifying intrusion attacks is very laborious and error-prone. Furthermore, network traffic data have complex time-varying non-linear relationships. The existing state-of-the-art intrusion detection solutions use a combination of various supervised approaches along with fused features subsets based on correlations in traffic data. These solutions often require high computational cost, manual support in fine-tuning intrusion detection models, and labeling of data that limit real-time processing of network traffic. Unsupervised solutions do reduce computational complexities and manual support for labeling data but current unsupervised solutions do not consider spatio-temporal correlations in traffic data. To address this, we propose a unified Autoencoder based on combining multi-scale convolutional neural network and long short-term memory (MSCNN-LSTM-AE) for anomaly detection in network traffic. The model first employs Multiscale Convolutional Neural Network Autoencoder (MSCNN-AE) to analyze the spatial features of the dataset, and then latent space features learned from MSCNN-AE employs Long Short-Term Memory (LSTM) based Autoencoder Network to process the temporal features. Our model further employs two Isolation Forest algorithms as error correction mechanisms to detect false positives and false negatives to improve detection accuracy. %Additionally, covariance matrices forms a Riemannian manifold that is naturally embedded with distance metrices that facilitates descriminative patterns for detecting malicious network traffic. We evaluated our model NSL-KDD, UNSW-NB15, and CICDDoS2019 dataset and showed our proposed method significantly outperforms the conventional unsupervised methods and other existing studies on the dataset.

Motivation & Objective

  • Address the challenge of high-dimensional, time-varying, non-linear network traffic data in intrusion detection without relying on costly manual labeling.
  • Overcome the limitation of existing unsupervised models that fail to capture both spatial and temporal correlations in network traffic.
  • Develop a unified autoencoder framework that jointly learns spatial and temporal features in an unsupervised manner.
  • Reduce false positives and false negatives in anomaly detection through a two-stage isolation forest error correction mechanism.
  • Demonstrate superior performance on benchmark datasets, particularly in recall and F1-score, compared to state-of-the-art unsupervised and supervised methods.

Proposed method

  • Employ a Multi-Scale Convolutional Neural Network Autoencoder (MSCNN-AE) to extract spatial patterns from network traffic features in an unsupervised manner.
  • Use a Long Short-Term Memory (LSTM)-based Autoencoder to model temporal dependencies in the latent space learned by MSCNN-AE.
  • Combine MSCNN-AE and LSTM-AE into a unified MSCNN-LSTM-AE architecture to jointly learn spatial-temporal representations without labels.
  • Apply two-stage isolation forest algorithms to correct false positives and false negatives generated by the threshold-based reconstruction error in the autoencoder.
  • Train the autoencoder end-to-end using reconstruction loss to minimize the difference between input and reconstructed traffic data.
  • Use reconstruction error as anomaly score, with isolation forest refining the final classification to improve precision and recall.

Experimental results

Research questions

  • RQ1Can a unified autoencoder architecture effectively capture both spatial and temporal dependencies in unlabeled network traffic data for intrusion detection?
  • RQ2How does the proposed MSCNN-LSTM-AE model compare to existing unsupervised and supervised intrusion detection models in terms of recall and F1-score?
  • RQ3To what extent does the two-stage isolation forest error correction reduce false positive and false negative rates in autoencoder-based anomaly detection?
  • RQ4Does the model generalize well across diverse benchmark datasets such as NSL-KDD, UNSW-NB15, and CICDDoS2019?
  • RQ5Can the model achieve high detection performance without requiring manual labeling or extensive hyperparameter tuning?

Key findings

  • The proposed MSCNN-LSTM-AE model achieved a 99.56% accuracy, 98.91% precision, 98.81% recall, and 98.46% F1-score on the CICDDoS2019 dataset, outperforming all baseline methods listed in the comparison table.
  • On the NSL-KDD dataset, the model achieved 93.30% accuracy, 95.75% precision, 92.33% recall, and 94.01% F1-score, significantly exceeding prior unsupervised models like autoencoder (84.21% accuracy) and LSTM (82.04% accuracy).
  • On the UNSW-NB15 dataset, the model achieved 89% accuracy, 88% precision, 89% recall, and 87% F1-score, surpassing methods such as AdaBoost (86.41% accuracy) and Extra Trees (86.73% accuracy).
  • The integration of isolation forest reduced false positives and negatives, improving the F1-score and recall compared to threshold-based autoencoder detection alone.
  • The model demonstrated robustness across diverse datasets, including DDoS-heavy CICDDoS2019, and showed strong generalization without requiring labeled data or extensive hyperparameter tuning.
  • The results indicate that joint spatial-temporal modeling via MSCNN-LSTM-AE is critical for high-performance unsupervised intrusion detection, especially in detecting rare or complex attack patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.