A Hybrid Genetic Algorithm–Support Vector Machine Framework for Feature Selection and Multiclass Network Intrusion Detection

Tengku Mohd Diansyah(1*), H.R Merdu Wira Jasa(2), Ronal Watrianthos(3), Mazlina Abdul Majid(4),

(1) Computer Science Program, Faculty of Engineering and Computer Science, Universitas Harapan, Medan, Indonesia
(2) Informatics, STIKOM Tunas Bangsa, Pematangsiantar, North Sumatra, Indonesia
(3) Department of Information Technology, Politeknik Negeri Padang, Padang, Indonesia
(4) Faculty of Computing, Universiti Malaysia Pahang Al-Sultan Abdullah, Pahang, Malaysia
(*) Corresponding Author

Abstract


Multiclass network intrusion detection must balance feature complexity against recognition of minority attacks. This study evaluates whether a hybrid genetic algorithm and support vector machine (GA-SVM) improve class-balanced intrusion classification through joint feature and parameter selection. The executed experiment uses 257,673 UNSW-NB15 records, including a training-side development split and 175,341 observations in the test-side file. Five configurations were compared: an all-feature SVM baseline, SVM parameter tuning, random joint feature-and-parameter search, GA feature selection alone, and the proposed joint GA-SVM. The original 42 input columns were reduced to 27 by the feature-selection branches. On the recorded test-side evaluation, the baseline achieved macro-F1 0.381508, whereas joint GA-SVM achieved 0.359207, a decrease of 0.022301. The hybrid lowered accuracy from 0.718098 to 0.710302 and balanced accuracy from 0.384733 to 0.368182. Its macro one-versus-rest ROC-AUC increased slightly, from 0.914785 to 0.916670, and measured inference time fell from 20.223 to 16.573 milliseconds per 1,000 predictions. The main objective did not improve despite a 35.71% reduction in original predictor columns. Notably, the record-based test audit identified 10,279 hashed rows matching training-side records and 74,301 repeated test rows, limiting independent generalization claims. At least one attack class had zero reported recall, and the imported optimizer source was unavailable for complete verification. The evidence supports feature compression but does not establish a stronger multiclass intrusion detector under the recorded protocol.

Full Text:

PDF

References


S. More, M. Idrissi, H. Mahmoud, and A. T. Asyhari, “Enhanced Intrusion Detection Systems Performance with UNSW-NB15 Data Analysis,” Algorithms, vol. 17(2), p. 64, 2024, doi: 10.3390/a17020064.

Z. Zoghi and G. Serpen, “Building an intrusion detection system on UNSW-NB15: Reducing the margin of error to deal with data overlap and imbalance,” Concurr. Comput., vol. 36(25), p. e8242, 2024, doi: 10.1002/cpe.8242.

S. A. Ajagbe, J. B. Awotunde, and H. Florez, “Intrusion Detection: A Comparison Study of Machine Learning Models Using Unbalanced Dataset,” SN Comput. Sci., vol. 5, p. 1028, 2024, doi: 10.1007/s42979-024-03369-0.

J. Li, M. S. Othman, H. Chen, and L. M. Yusuf, “Optimizing IoT intrusion detection system: feature selection versus feature extraction in machine learning,” J. Big Data, vol. 11, p. 36, 2024, doi: 10.1186/s40537-024-00892-y.

E. M. Maseno and Z. Wang, “Hybrid wrapper feature selection method based on genetic algorithm and extreme learning machine for intrusion detection,” J. Big Data, vol. 11, p. 24, 2024, doi: 10.1186/s40537-024-00887-9.

H. Bakir and O. Ceviz, “Empirical Enhancement of Intrusion Detection Systems: A Comprehensive Approach with Genetic Algorithm-based Hyperparameter Tuning and Hybrid Feature Selection,” Arab. J. Sci. Eng., vol. 49, pp. 13025–13043, 2024, doi: 10.1007/s13369-024-08949-z.

B. Bischl et al., “Hyperparameter optimization: Foundations, algorithms, best practices, and open challenges,” WIREs Data Mining and Knowledge Discovery, vol. 13(2), p. e1484, 2023, doi: 10.1002/widm.1484.

A. M. Alsaffar, M. Nouri-Baygi, and H. M. Zolbanin, “Shielding networks: enhancing intrusion detection with hybrid feature selection and stack ensemble learning,” J. Big Data, vol. 11, p. 133, 2024, doi: 10.1186/s40537-024-00994-7.

Y. Yin et al., “IGRF-RFE: a hybrid feature selection method for MLP-based network intrusion detection on UNSW-NB15 dataset,” J. Big Data, vol. 10, p. 15, 2023, doi: 10.1186/s40537-023-00694-8.

M. A. Talukder et al., “Machine learning-based network intrusion detection for big and imbalanced data using oversampling, stacking feature embedding and feature extraction,” J. Big Data, vol. 11, p. 33, 2024, doi: 10.1186/s40537-024-00886-w.

A. Telikani et al., “A Cost-Sensitive Machine Learning Model With Multitask Learning for Intrusion Detection in IoT,” IEEE Trans. Industr. Inform., vol. 20(3), pp. 3880–3890, 2024, doi: 10.1109/TII.2023.3314208.

M. A. Umar, Z. Chen, K. Shuaib, and Y. Liu, “Effects of feature selection and normalization on network intrusion detection,” Data Science and Management, vol. 8(1), pp. 23–39, 2025, doi: 10.1016/j.dsm.2024.08.001.

I. B. Aldallal, A. A. Ibrahim, and S. R. Ahmed, “An Intelligent Multi-Stage GA-SVM Hybrid Optimization Framework for Feature Engineering and Intrusion Detection in Internet of Things Networks,” Computers, Materials & Continua, vol. 87(1), p. 39, 2026, doi: 10.32604/cmc.2025.075212.

Y. K. Saheed, O. H. Abdulganiyu, and T. Ait Tchakoucht, “Modified genetic algorithm and fine-tuned long short-term memory network for intrusion detection in the internet of things networks with edge capabilities,” Appl. Soft Comput., vol. 155, p. 111434, 2024, doi: 10.1016/j.asoc.2024.111434.

M. Mahiuddin and M. S. Islam, “A Fusion and Genetic Optimization-Based Feature Selection Method With GRU for Intrusion Detection System,” Applied Computational Intelligence and Soft Computing, vol. 2026, p. 1937064, 2026, doi: 10.1155/acis/1937064.

A. Kayyidavazhiyil, “Intrusion detection using enhanced genetic sine swarm algorithm based deep meta-heuristic ANN classifier on UNSW-NB15 and NSL-KDD dataset,” Journal of Intelligent & Fuzzy Systems, vol. 45(6), pp. 10243–10265, 2023, doi: 10.3233/JIFS-224283.

A. Saputra, K. Ramli, A. S. Nugroho, I. G. D. Nugraha, and B. Pranggono, “A Novel Hybrid IGL1 Feature Selection Method for High-Performance Intrusion Detection on the UNSW-NB15 Dataset Using Multiple Machine Learning Models,” Big Data and Cognitive Computing, vol. 10(6), p. 182, 2026, doi: 10.3390/bdcc10060182.

O. Ebrahem, S. Dowaji, and S. Alhammoud, “Towards a minimum universal features set for IoT DDoS attack detection,” J. Big Data, vol. 12, p. 88, 2025, doi: 10.1186/s40537-025-01146-1.

S. M. Hashemi Jouybari, A. Janbaz, and A. Esfandiari, “A multivariate filter feature selection and stacking-based ensemble learning algorithm for network intrusion detection,” J. Supercomput., vol. 81, p. 1129, 2025, doi: 10.1007/s11227-025-07609-9.

Y. Huang, G. Chen, J. Gou, Z. Fan, and Y. Liao, “A hybrid feature selection and aggregation strategy-based stacking ensemble technique for network intrusion detection,” Applied Intelligence, vol. 55, p. 28, 2025, doi: 10.1007/s10489-024-06015-7.

H. A. Ahmed, A. Hameed, and N. Z. Bawany, “Network intrusion detection using oversampling technique and machine learning algorithms,” PeerJ Comput. Sci., vol. 8, p. e820, 2022, doi: 10.7717/peerj-cs.820.

T. B. Shana, N. Kumari, M. Agarwal, S. Mondal, and U. Rathnayake, “Anomaly-based intrusion detection system based on SMOTE-IPF, Whale Optimization Algorithm, and ensemble learning,” Intelligent Systems with Applications, vol. 27, p. 200543, 2025, doi: 10.1016/j.iswa.2025.200543.

H. Zouhri and A. Idri, “A novel CTGAN-ENN hybrid approach to enhance the performance and interpretability of machine learning black-box models in intrusion detection and IoT,” Future Generation Computer Systems, vol. 173, p. 107882, 2025, doi: 10.1016/j.future.2025.107882.

R. Jablaoui and N. Liouane, “GA-CNN-BiGRU-IDS: A robust framework for Intrusion Detection System based on GA for data augmentation and hybrid CNN-BiGRU model for spatiotemporal feature extraction,” Computers and Electrical Engineering, vol. 130, p. 110900, 2026, doi: 10.1016/j.compeleceng.2025.110900.

C. Rout, S. Sethi, J. C. Badajena, and R. K. Sahoo, “FSEGM: feature selection and ensemble generative model for adaptive cloud security,” Journal of Cloud Computing, vol. 15, p. 6, 2026, doi: 10.1186/s13677-025-00818-w.

H. Benaddi, M. Jouhari, and O. Elharrouss, “A lightweight hybrid approach for intrusion detection systems using a chi-square feature selection approach in IoT,” Internet of Things, vol. 32, p. 101624, 2025, doi: 10.1016/j.iot.2025.101624.

S. K. R. Mallidi and R. R. Ramisetty, “A multi-level intrusion detection system for industrial IoT using bowerbird courtship-inspired feature selection and hybrid data balancing,” Discover Computing, vol. 28, p. 109, 2025, doi: 10.1007/s10791-025-09632-z.

J. Pospichal, A. Augustin, L. Huraj, P. Strelec, and D. Gabriska, “Random Forest-Based Network Intrusion Detection with Feature Selection and Class Balancing on UNSW-NB15 Traffic,” Information, vol. 17(9), p. 836, 2026, doi: 10.3390/info17090836.

Z. Qin, L. Li, Q. Luo, X. Yu, and Q. Zhang, “Enhancing intrusion detection performance using GCN-LOF: A hybrid graph-based anomaly detection approach,” Computer Networks, vol. 271, p. 111606, 2025, doi: 10.1016/j.comnet.2025.111606.

G. P. Oise et al., “Attention-based intrusion detection using transformer networks on UNSW-NB15,” Sci. Rep., vol. 16, p. 33862, 2026, doi: 10.1038/s41598-026-65710-2.

T. de Menezes e Silva Filho, H. Song, M. Perello-Nieto, R. Santos-Rodriguez, M. Kull, and P. Flach, “Classifier calibration: A survey on how to assess and improve predicted class probabilities,” Mach. Learn., vol. 112(9), pp. 3211–3260, 2023, doi: 10.1007/s10994-023-06336-7.

T. Liu, Y. Fu, K. Wang, X. Duan, and Q. Wu, “A multiscale approach for network intrusion detection based on variance-covariance subspace distance and EQL v2,” Comput. Secur., vol. 148, p. 104173, 2025, doi: 10.1016/j.cose.2024.104173.

S. Mansouri and S. Hosseini, “A Chaos-Enhanced Hybrid Metaheuristic Feature Selection for Intrusion Detection Using Artificial Neural Networks,” International Journal of Computational Intelligence Systems, vol. 19, p. 307, 2026, doi: 10.1007/s44196-026-01417-6.

M. A. Talukder et al., “A dependable hybrid machine learning model for network intrusion detection,” Journal of Information Security and Applications, vol. 72, p. 103405, 2023, doi: 10.1016/j.jisa.2022.103405.

K. Zhang, Y. Wang, and U. A. Bhatti, “Enhanced ransomware attacks detection using feature selection, sensitivity analysis, and optimized hybrid model,” J. Big Data, vol. 12, p. 245, 2025, doi: 10.1186/s40537-025-01289-1.


Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Zahra: Bulletin Big data, Data Science and Artificial Intelligence

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.