Ensemble classification for intrusion detection via feature extraction based on deep Learning

Maryam Yousefnezhad, Javad Hamidzadeh, Mohammad Aliannejadi

Abstract

An intrusion detection system is a security system that aims to detect sabotage and intrusions on networks to inform experts of the attack and abuse of the network. Different classification methods have been used in the intrusion detection systems such as fuzzy, genetic algorithms, decision trees, artificial neural networks, and support vector machines. Moreover, ensemble classifiers have shown more robust and effective performance for various tasks in the field. In this paper, we adopt ensemble models in order to improve the performance of intrusion detection and, at the same time, decrease the false alarm rate. We use kNN for multi-class classification, as well as SVM to approach the classification problem in normal-based detection. In order to combine multiple outputs, we use the Dempster-Shafer method in which there is the possibility of explicit retrieval of uncertainty. Moreover, we utilize deep learning for extracting features to train the samples, selected by the sample selection algorithm based on ensemble margin. We compare our results with state-of-the-art methods on benchmarking datasets such as UNSW-NB15, CICIDS2017, and NSLKDD. Our proposed method indicate the superiority in terms of prominent metrics Accuracy, Precision, Recall, and F-measure.

Introduction

As network attacks become increasingly sophisticated, traditional security measures such as firewalls and simple signature-based detection are no longer sufficient to protect modern infrastructure. Signature-based systems rely on a database of known attack patterns, making them ineffective against novel or "zero-day" threats that do not match existing signatures.

Signature-based detection systems compare network activity against a database of known attack signatures to identify threats.

Conversely, anomaly-based detection attempts to identify deviations from a statistical model of normal traffic. While more flexible than signature-based methods, these systems often suffer from high false-alarm rates and struggle with the high dimensionality and noise inherent in raw network data. The authors identify a critical gap: no single training algorithm performs optimally across all network conditions. To address this, they propose a robust IDS that tackles feature complexity, data redundancy, and model uncertainty through a multi-stage ensemble pipeline.

Anomaly-based detection monitors network traffic for discrepancies relative to a statistical model of normal behavior.

Methodology

The proposed system integrates several advanced techniques to enhance detection performance:

  • Sample Selection via Ensemble Margin: An "ensemble margin" algorithm is employed to select the most informative training samples, reducing noise and improving computational efficiency.
  • Deep Feature Extraction: Autoencoders—a type of unsupervised deep neural network—are used to compress high-dimensional raw features (often 41+) into a lower-dimensional representation. This process highlights the key quality features necessary for accurate classification.
  • Diverse Ensemble Classifiers: The system trains eight distinct models: four Support Vector Machines (SVMs) with different kernels (RBF and Hermit) and four probabilistic K-Nearest Neighbor (kNN) models with varying 'k' values.
  • Dempster-Shafer (DS) Fusion: Instead of simple majority voting, the system uses DS evidence theory to combine classifier outputs. This approach treats model predictions as "evidence" with associated degrees of belief, allowing the system to mathematically handle uncertainty and resolve conflicts between base models.

Experimental Results

The model was rigorously evaluated on four prominent benchmarks: KDD Cup 99, NSL-KDD, UNSW-NB15, and CICIDS2017. The proposed method consistently outperformed state-of-the-art models across all metrics:

  • NSL-KDD: Achieved a peak accuracy of 99.80%, effectively addressing the dataset's lack of redundant records.
  • CICIDS2017: Reached 98.97% accuracy, demonstrating effectiveness against modern threats like Heartbleed and Botnets.
  • UNSW-NB15: Achieved 90.98% accuracy, significantly higher than traditional models like CART (88.67%).

Beyond raw accuracy, the system showed superior performance in Precision, Recall, and F-measure. Notably, the ensemble approach dramatically improved detection rates for User-to-Root (U2R) attacks, which are typically difficult to distinguish from normal administrative behavior.

Conclusion

By combining deep learning-based feature extraction with Dempster-Shafer fusion of ensemble classifiers, this research provides a highly accurate and robust framework for network security. While the computational overhead of running multiple models remains a consideration for real-time deployment, the significant reduction in false alarms and the high detection rates for rare attack types mark a substantial advancement in the field. Future work will focus on optimizing base classifier calculations and testing the system in live, high-speed production environments.

Summary updated

BibTeX
@inproceedings{yousefnezhad2021ensemble,
  author = {Maryam Yousefnezhad and Javad Hamidzadeh and Mohammad Aliannejadi},
  title = {{Ensemble classification for intrusion detection via feature extraction based on deep Learning}},
  booktitle = {Research Square},
  year = {2021},
  doi = {10.21203/rs.3.rs-591679/v1},
}
Figure