[Paper Review] Collective Anomaly Detection based on Long Short Term Memory Recurrent Neural Network
This paper proposes a real-time collective anomaly detection model using Long Short Term Memory (LSTM) Recurrent Neural Networks trained exclusively on normal network traffic. By analyzing prediction errors over multiple recent time steps, the method detects collective anomalies—deviations not apparent in individual time steps—achieving reliable detection on the KDD 1999 dataset with improved sensitivity to coordinated attacks.
Intrusion detection for computer network systems becomes one of the most critical tasks for network administrators today. It has an important role for organizations, governments and our society due to its valuable resources on computer networks. Traditional misuse detection strategies are unable to detect new and unknown intrusion. Besides, anomaly detection in network security is aim to distinguish between illegal or malicious events and normal behavior of network systems. Anomaly detection can be considered as a classification problem where it builds models of normal network behavior, which it uses to detect new patterns that significantly deviate from the model. Most of the cur- rent research on anomaly detection is based on the learning of normally and anomaly behaviors. They do not take into account the previous, re- cent events to detect the new incoming one. In this paper, we propose a real time collective anomaly detection model based on neural network learning and feature operating. Normally a Long Short Term Memory Recurrent Neural Network (LSTM RNN) is trained only on normal data and it is capable of predicting several time steps ahead of an input. In our approach, a LSTM RNN is trained with normal time series data before performing a live prediction for each time step. Instead of considering each time step separately, the observation of prediction errors from a certain number of time steps is now proposed as a new idea for detecting collective anomalies. The prediction errors from a number of the latest time steps above a threshold will indicate a collective anomaly. The model is built on a time series version of the KDD 1999 dataset. The experiments demonstrate that it is possible to offer reliable and efficient for collective anomaly detection.
Motivation & Objective
- To address the limitation of traditional anomaly detection methods that analyze individual time steps in isolation.
- To detect collective anomalies—coordinated deviations across multiple time steps—rather than isolated anomalies.
- To improve detection of sophisticated, previously unseen attacks by modeling temporal dependencies in network traffic.
- To develop a real-time, scalable solution using LSTM RNNs trained only on normal data.
- To demonstrate the effectiveness of using prediction error accumulation as a detection signal for collective anomalies.
Proposed method
- A Long Short Term Memory (LSTM) RNN is trained exclusively on normal time series network traffic data from the KDD 1999 dataset.
- The trained LSTM predicts future time steps based on recent input sequences, generating prediction outputs for each time step.
- Prediction errors—differences between actual and predicted values—are computed for each time step.
- A sliding window of recent prediction errors is maintained, and their cumulative magnitude is monitored.
- If the sum of prediction errors over a window exceeds a predefined threshold, a collective anomaly is flagged.
- The method leverages temporal context and sequence modeling to detect subtle, coordinated deviations not detectable via single-step analysis.
Experimental results
Research questions
- RQ1Can LSTM RNNs trained on normal data detect collective anomalies by analyzing prediction error patterns over time?
- RQ2How does aggregating prediction errors across multiple time steps improve detection of coordinated attacks compared to single-step anomaly detection?
- RQ3What thresholding strategy on prediction error accumulation yields optimal detection performance on real-world network traffic?
- RQ4Can the model detect previously unseen attack patterns without prior exposure to anomaly examples?
- RQ5How does the model perform in real-time detection scenarios on the KDD 1999 benchmark dataset?
Key findings
- The model successfully detects collective anomalies by identifying sustained deviations in prediction errors over multiple time steps.
- Aggregating prediction errors across a window of recent time steps significantly improves detection of coordinated attacks compared to per-step anomaly detection.
- The method achieves reliable detection performance on the KDD 1999 dataset, demonstrating robustness to diverse attack patterns.
- The approach does not require labeled anomaly data during training, relying solely on normal data, which enhances generalization.
- The model is capable of real-time inference, making it suitable for deployment in live network monitoring systems.
- The results indicate that collective anomaly detection via LSTM prediction error analysis is a viable and effective strategy for intrusion detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.