arXiv:2610.33119cs.CROct 2026

Manuscript Offprint

arXiv:2610.33119

Benchmarking Classical and Quantum Machine Learning for Intrusion Detection Across Multiple Datasets

Taha M. Mahmoud, Naima Kaabouch

Taha M. Mahmoud

Artificial Intelligence Research (AIR) Center

University of North Dakota

taha.mahmoud@und.edu

Naima Kaabouch

Artificial Intelligence Research (AIR) Center

University of North Dakota

naima.kaabouch@und.edu

Abstract—Intrusion detection is examined through a comparative benchmark of classical and quantum machine learning models on three datasets: NSL-KDD, UNSW-NB15, and MQTTEEB-D2025. The analysis focuses on how preprocessing decisions, feature selection strategies, and quantum encoding schemes shape model performance on data with differing levels of noise and complexity. A single unified pipeline is applied, covering normalization, class-imbalance handling, dimensionality reduction, and two feature selection methods: Random Forest importance and a quantum-aware approach that combines Quantum Kernel Alignment with Mutual Information (QKA-MI). Four classifiers are compared: Support Vector Machine, Random Forest, Quantum Support Vector Machine, and Pegasos Quantum SVM. The classical models perform consistently across all three datasets, whereas the quantum models depend more strongly on feature representation and kernel alignment. Quantum-aware feature selection yields marked gains for the quantum models, especially on cleaner datasets, while heterogeneous traffic remains difficult. Pegasos Quantum SVM offers a good trade-off between accuracy and computational cost, underscoring the role of preprocessing alignment in practical quantum intrusion detection.

Index Terms—Quantum Machine Learning, Intrusion Detection Systems, Quantum Kernels, Feature Selection, QKA-MI, Cybersecurity Analytics, Quantum Support Vector Machines, Benchmarking Framework

I. INTRODUCTION

Intrusion Detection Systems (IDS) are a key line of defence for modern networks facing fast-changing cyber threats. With network traffic growing in both volume and complexity, classical machine learning (ML) models such as Support Vector Machines (SVM) and Random Forests (RF) remain central to anomaly detection. These models nonetheless struggle with strongly nonlinear patterns, high-dimensional feature spaces, and the intricate correlations common in cybersecurity data. Quantum Machine Learning (QML) has emerged as a promising alternative that may offer richer feature representations by exploiting superposition, entanglement, and expressive quantum kernels.

Research on QML for intrusion detection is still in its infancy. Most studies use a single dataset, test one quantum feature map, or apply only limited preprocessing, which makes it hard to judge how quantum models behave under realistic and varied conditions. Classical and quantum models are also seldom compared under the same preprocessing, sampling, and feature selection settings. Consequently, the literature still lacks a systematic, end-to-end assessment of which preprocessing steps matter most for QML, whether quantum models benefit from the same techniques as classical ones, and how the choice of quantum encoding affects detection accuracy and computational cost.

To address these gaps, a comprehensive benchmarking framework is developed that evaluates classical and quantum IDS models across several datasets and preprocessing pipelines. Three widely used datasets are considered (NSL-KDD, UNSW-NB15, and the fully preprocessed MQTTEEB-D2025), spanning different degrees of feature diversity, noise, class imbalance, and preprocessing demands. Each stage of the pipeline is examined in turn: feature scaling, imbalance correction, Principal Component Analysis (PCA) reduction, sampling, and two feature selection strategies, namely Random Forest (RF) importance and the quantum-aware Quantum Kernel Alignment with Mutual Information (QKA-MI).

In contrast to earlier studies, four quantum feature maps (Pauli, ZZ, Z, and Hybrid Pauli–ZZ) and two quantum classifiers (QSVM and PegasosQSVC) are benchmarked under consistent experimental settings, alongside classical SVM and RF baselines that share the same preprocessing pipeline. Varying the sample size, the number of selected features, the quantum encoding, and the model type yields detailed insight into accuracy, F1-score, recall, training time, and memory usage.

The principal contributions are summarized below:

  • A unified benchmarking framework for comparing classical and quantum IDS models over three datasets and a range of preprocessing configurations.

  • An in-depth analysis of how data preparation, including scaling, PCA, Synthetic Minority Oversampling Technique (SMOTE) balancing, and sample-size variation, affects QML performance.

• The first use of the QKA-MI feature selector in an IDS setting, demonstrating that aligning features with

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

quantum kernel geometry improves quantum model performance.

  • A thorough evaluation of quantum feature maps and classifiers that identifies the conditions under which quantum models approach or exceed classical baselines.

• Practical, evidence-based recommendations for designing robust QML-based IDS across diverse operational scenarios.

The rest of the paper is structured as follows. Section II reviews prior work on quantum machine learning for intrusion detection and identifies open research gaps. Section III describes the unified benchmarking methodology, covering the datasets, preprocessing steps, feature-selection strategies, and quantum feature-map configurations. Section IV presents the experimental results on all datasets, examining how preprocessing, feature dimensionality, quantum encoding, and sample size influence performance and runtime. Section V offers an integrated discussion of the findings together with directions for future improvement, and Section VI closes with the main insights and their implications for quantum-enhanced intrusion detection.