Towards Real-Time Network Intrusion Detection: An Enhanced Feature Selection Framework Using Variance Analysis and K-Means Clustering

Authors

  • U.A.Baba Modibbo Adama University Author
  • E. J. Garba Modibbo Adama University Author
  • A. S. Ahmadu Modibbo Adama University Author
  • M. Lapina North-Caucasus Federal University image/svg+xml Author

DOI:

https://doi.org/10.67868/2dkjpz49

Keywords:

NIDS, Feature Selection, Random Forest, SVM, XGBoost, UNSW-NB15, NSL-KDD

Abstract

The cybersecurity threat landscape is increasingly dynamic, making Network Intrusion Detection Systems (NIDS) essential to cyber defense. NIDS face challenges such as network traffic imbalance, high false alarm rates, and suboptimal detection accuracy. To address these issues, we integrated variance analysis and k-means clustering, thereby enhancing computational efficiency across seven machine learning models evaluated on the UNSW-NB15 and NSL-KDD datasets. Key metrics included Accuracy, Precision, Recall, F1-Score, Model Training Time (MTT), and Inference Time (IT). Our feature selection technique achieved notably lower MTT and IT than existing methods, particularly with the XGB and RF models, which saw MTT drop by 80% and IT by 60% compared to the baseline. This efficiency is pivotal for real-time intrusion detection and resource-constrained NIDS, enabling swift threat response and optimized resource use. These computational gains emphasize the technique's potential for real-time network security.

Author Biographies

  • U.A.Baba, Modibbo Adama University

    Department of Data Science and AI, Modibbo Adama University, Yola 

  • E. J. Garba, Modibbo Adama University

    Department of Computer Science, Faculty of Computing, Modibbo Adama University, Yola, Adamawa State, Nigeria

  • A. S. Ahmadu, Modibbo Adama University

    Department of Computer Science, Faculty of Computing, Modibbo Adama University, Yola, Adamawa State, Nigeria

  • M. Lapina, North-Caucasus Federal University

    Department of Computational Mathematics and Cybernetics, North-Caucasus Federal University, 355017, Stavropol, Russia

References

Network Intrusion Detection System Architecture

Additional Files

Published

29-06-2026

How to Cite

Towards Real-Time Network Intrusion Detection: An Enhanced Feature Selection Framework Using Variance Analysis and K-Means Clustering. (2026). Nigerian Journal of Operations Research, 3(2), 211-234. https://doi.org/10.67868/2dkjpz49

Similar Articles

You may also start an advanced similarity search for this article.