Feature Selection Framework for Efficient Intrusion Detection System
Machine-learning intrusion detection systems (IDS) are usually trained on high-dimensional network-flow records, and many of those features are redundant or carry little information. Using all of them raises training time and computational cost without a matching gain in detection performance. This paper evaluates a lightweight, filter-based feature selection framework for a Random Forest IDS on the CIC-IDS2017 dataset (112,254 cleaned flow records, 78 numeric features, 15 traffic classes). We compare two filters, Pearson correlation and mutual information, under one fixed protocol. Correlation-based selection keeps 34 features (a 56.4% reduction) and matches the all-feature baseline accuracy of 99.22%, while training time drops from 10.14 s to 6.30 s (37.9% faster, a 1.61x speed-up). Mutual information keeps 36 features and reaches 99.21% accuracy, but it does not shorten training. We report weighted F1 (99.16%) and macro F1 (86.46%) side by side, and a per-class analysis traces the gap between them to rare web-attack and infiltration classes. The selected model is served through a FastAPI service with a React dashboard for analysing traffic from CSV files.
Authors
- Kamal Kishor Verma
- Saurabh Shivam
- Aryan
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24687867
- Primary Topic
- Network Security and Intrusion Detection
- Type
- preprint