arXiv:2512.15779cs.CRcs.LG2025-12

调参优化后SVM在入侵检测中准确率达99.12%

Hyperparameter Tuning-Based Optimized Performance Analysis of Machine Learning Algorithms for Network Intrusion Detection

  • 用网格与随机搜索调参,提升分类器性能
  • 优化后SVM准确率99.12%,误报率仅0.0091
  • 适合网络安全领域研究者参考

网络入侵检测系统(NIDS)对识别和缓解网络攻击至关重要。随着攻击手段日益复杂,传统NIDS需升级以应对新型威胁与异常行为。本研究基于1999年KDD CUP数据集,评估并优化多种机器学习算法:支持向量机(SVM)、朴素贝叶斯(MNB、BNB)、随机森林(RF)、k-近邻(k-NN)、决策树(DT)、AdaBoost、XGBoost、逻辑回归(LR)、岭分类器、被动攻击分类器、Rocchio分类器、人工神经网络(ANN)和感知机(PPN)。未经调参时性能不佳,表明参数优化至关重要。通过网格搜索与随机搜索调优后,SVM达到99.12%准确率,误报率0.0091,显著优于默认配置(98.08%准确率,0.0123误报率)及所有其他模型。十折交叉验证结合递归特征消除(RFE)进一步提升了精度与效率。结果表明,经优化的机器学习模型在入侵检测中兼具可靠性与适应性。

原文摘要 · Abstract (English)

Network Intrusion Detection Systems (NIDS) are essential for securing networks by identifying and mitigating unauthorized activities indicative of cyberattacks. As cyber threats grow increasingly sophisticated, NIDS must evolve to detect both emerging threats and deviations from normal behavior. This study explores the application of machine learning (ML) methods to improve the NIDS accuracy through analyzing intricate structures in deep-featured network traffic records. Leveraging the 1999 KDD CUP intrusion dataset as a benchmark, this research evaluates and optimizes several ML algorithms, including Support Vector Machines (SVM), Naïve Bayes variants (MNB, BNB), Random Forest (RF), k-Nearest Neighbors (k-NN), Decision Trees (DT), AdaBoost, XGBoost, Logistic Regression (LR), Ridge Classifier, Passive-Aggressive (PA) Classifier, Rocchio Classifier, Artificial Neural Networks (ANN), and Perceptron (PPN). Initial evaluations without hyper-parameter optimization demonstrated suboptimal performance, highlighting the importance of tuning to enhance classification accuracy. After hyper-parameter optimization using grid and random search techniques, the SVM classifier achieved 99.12% accuracy with a 0.0091 False Alarm Rate (FAR), outperforming its default configuration (98.08% accuracy, 0.0123 FAR) and all other classifiers. This result confirms that SVM accomplishes the highest accuracy among the evaluated classifiers. We validated the effectiveness of all classifiers using a tenfold cross-validation approach, incorporating Recursive Feature Elimination (RFE) for feature selection to enhance the classifiers accuracy and efficiency. Our outcomes indicate that ML classifiers are both adaptable and reliable, contributing to enhanced accuracy in systems for detecting network intrusions.

入侵检测机器学习调参优化SVM

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。