Abstract
Modern Network Intrusion Detection Systems (IDS) face significant challenges in multi-class classification and class imbalance. This paper introduces a three-stage, multi-layer IDS architecture that decomposes complex multi-class detection into specialized binary classification tasks. By integrating ExtraTrees for attack-specific feature selection, an ensemble of Extreme Learning Machines (ELM), and a Softmax aggregation layer, the proposed system achieves state-of-the-art accuracy (up to 99.76% on KDDcup99) while maintaining the computational efficiency required for real-time GPU-based deployment.
Introduction
Cybersecurity frameworks rely on IDS to identify a wide spectrum of threats, from high-volume Denial of Service (DoS) attacks to stealthy reconnaissance and "fuzzing." However, machine learning models often hit a "complexity wall" when attempting to distinguish between numerous attack categories simultaneously. Furthermore, the extreme prevalence of "normal" traffic relative to malicious packets often leads to biased models that fail to detect rare but critical threats. This research addresses these issues through a modular, ensemble-based approach.
Methodology
The proposed architecture consists of three distinct layers designed to optimize both detection accuracy and processing speed.
Layer 1: Attack-Specific Feature Selection
Rather than applying a global feature set, the system utilizes the ExtraTrees classifier to determine the most relevant network attributes (e.g., protocol, packet size) for each specific attack type. This localized feature selection reduces noise and improves the signal-to-noise ratio for individual classifiers.
Layer 2: Extreme Learning Machine (ELM) Ensemble
The core classification engine comprises $N+1$ ELMs, where $N$ represents the number of attack categories. ELMs are single-hidden-layer feedforward neural networks that utilize random internal weights, allowing for analytical calculation of output weights. This results in extremely fast training times—often under 18 seconds per attack type. Each ELM is trained as a binary classifier (e.g., "Attack Type A vs. All"). To mitigate class imbalance, Weighted ELM (WELM) is employed to assign higher significance to minority attack samples.
Layer 3: Softmax Aggregation
To resolve potential conflicts where multiple binary classifiers might flag the same packet, a Softmax layer aggregates the probabilistic outputs from the ensemble. This final stage produces a unified probability vector, ensuring a definitive and accurate classification.
Experimental Results
The system was evaluated using two primary benchmarks: the classic KDDcup99 dataset and the more contemporary UNSW-NB15 dataset, which features 49 attributes and 9 attack categories.
The proposed method demonstrated superior performance compared to existing state-of-the-art models, including deep learning architectures like ICVAE-DNN and hybrid SVM/Random Forest models. On the UNSW-NB15 dataset, the ExtraTrees+WELM ensemble achieved an accuracy of 98.69%, while reaching 99.83% on KDDcup99.
Ablation studies confirmed the necessity of the Softmax layer, which improved average accuracy on the UNSW dataset from 95.66% to 98.24%. The parallel nature of the ELM ensemble further enables real-time processing on modern GPU hardware.
Conclusion and Future Work
This multi-layer approach effectively simplifies the multi-class intrusion detection problem, providing a high-accuracy, low-latency solution for network security. While the system excels at categorizing known attack types, future research will focus on enhancing detection capabilities for "zero-day" attacks and automating the thresholding process for feature selection to increase system adaptivity.
Summary updated