Skip to main content
QUICK REVIEW

[Paper Review] Network Intrusion Detection based on LSTM and Feature Embedding

Hyeokmin Gwon, Chungjun Lee|arXiv (Cornell University)|Nov 26, 2019
Network Security and Intrusion DetectionComputer Science26 references25 citations
TL;DR

This paper proposes a deep learning-based network intrusion detection system using Long Short-Term Memory (LSTM) networks to model temporal dependencies in network traffic sequences and feature embedding to encode categorical network features. The method achieves a binary classification accuracy of 99.72% on the UNSW-NB15 dataset, significantly outperforming traditional machine learning models by effectively capturing sequential patterns and symbolic feature semantics.

ABSTRACT

Growing number of network devices and services have led to increasing demand for protective measures as hackers launch attacks to paralyze or steal information from victim systems. Intrusion Detection System (IDS) is one of the essential elements of network perimeter security which detects the attacks by inspecting network traffic packets or operating system logs. While existing works demonstrated effectiveness of various machine learning techniques, only few of them utilized the time-series information of network traffic data. Also, categorical information has not been included in neural network based approaches. In this paper, we propose network intrusion detection models based on sequential information using long short-term memory (LSTM) network and categorical information using the embedding technique. We have experimented the models with UNSW-NB15, which is a comprehensive network traffic dataset. The experiment results confirm that the proposed method improve the performance, observing binary classification accuracy of 99.72\%.

Motivation & Objective

  • To address the limitation of existing machine learning-based intrusion detection systems in leveraging temporal sequences and categorical network features.
  • To improve detection accuracy by integrating LSTM networks for sequential pattern modeling in network traffic.
  • To incorporate feature embedding techniques to effectively represent categorical network features such as protocol type and service in neural network models.
  • To evaluate the proposed model on the UNSW-NB15 dataset, a modern benchmark for network intrusion detection.
  • To demonstrate that combining LSTM with feature embedding yields superior performance compared to standalone models or traditional machine learning approaches.

Proposed method

  • LSTM networks are used to model sequential dependencies in network traffic by processing time-ordered packet records as input sequences.
  • Feature embedding is applied to categorical features (e.g., protocol, service, state) to convert symbolic values into dense vector representations suitable for neural networks.
  • Multiple training configurations are evaluated: M2M (many-to-many), M2O (many-to-one), and M2B (multi-class to binary classification) to optimize sequence modeling and output prediction.
  • The model is trained and validated using the UNSW-NB15 dataset, with sequence length and hyperparameters tuned for optimal performance.
  • Performance is evaluated using standard metrics: accuracy, F1 score, and validation curves to assess generalization and stability.
  • Prediction time is measured across varying sequence lengths to assess real-time feasibility.

Experimental results

Research questions

  • RQ1Can LSTM-based models effectively capture temporal dependencies in network traffic sequences for improved intrusion detection?
  • RQ2How does incorporating feature embedding for categorical network features affect the performance of deep learning-based intrusion detection systems?
  • RQ3Does combining LSTM with feature embedding yield a significant performance improvement over traditional machine learning models like MLP, Random Forest, or RepTree?
  • RQ4What is the optimal sequence length and training configuration (M2M, M2O, M2B) for achieving high detection accuracy and stability?
  • RQ5Is the proposed model suitable for real-time deployment based on prediction time measurements?

Key findings

  • The LSTM model with feature embedding (LSTM(M2M + EMB)) achieved the highest binary classification accuracy of 99.72% on the UNSW-NB15 test set, with an F1 score of 99.75%.
  • The LSTM model with feature embedding outperformed the baseline MLP model by approximately 16 percentage points in accuracy, demonstrating the effectiveness of sequence modeling.
  • Feature embedding improved performance by around 1% in binary classification and 2% in multi-classification compared to non-embedded models, indicating its value in capturing categorical feature semantics.
  • The M2M + EMB configuration showed the most stable performance across different sequence lengths, as confirmed by validation curves in Figures 7 and 8.
  • Prediction time increased linearly with sequence length, suggesting that real-time deployment is feasible with optimized sequence length selection.
  • The M2B (multi-class to binary) transformation provided no significant performance gain, indicating that direct binary classification is sufficient for this task.

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.