Feature Representation and Covariance Analysis for Gaussian Mixture Model-Based Multiclass Network Intrusion Detection
Abstract
Network intrusion detection models are often selected by aggregate accuracy, even though rare attacks can remain poorly detected. This study examines whether feature representation and covariance complexity should be selected jointly in a multiclass Gaussian mixture model (GMM)-based intrusion detection system. The official NSL-KDD training and test partitions were processed without leakage. Mutual information, chi-square, and principal component analysis (PCA) produced matched 15-dimensional representations, each evaluated with diagonal and full per-class GMMs over five initialization seeds. PCA with diagonal covariance achieved the highest macro-F1 (0.5594 ± 0.0229), whereas PCA with full covariance achieved the highest accuracy (0.7417 ± 0.0074), showing that accuracy and class-balanced criteria can prefer different configurations. Full covariance improved chi-square macro-F1 but did not improve PCA, while increasing covariance parameters from 45 to 360 per class at d = 15 and K = 3. All fits converged, indicating that model adequacy rather than optimizer failure explained the main differences. Minority performance remained weak: U2R precision was 0.0222, equivalent to about 45 alerts per true detection. For a security operations team, such precision would require analysts to triage dozens of false U2R alarms for each correct detection, increasing alert fatigue and potentially delaying response to genuine incidents. The study contributes a reproducible diagnostic procedure for pairing feature representation with covariance complexity and for screening probabilistic IDS configurations using class-balanced errors, learned-covariance diagnostics, and alert burden before deployment or minority-aware remediation.
Downloads
References
L. Diana, P. Dini, and D. Paolini, “Overview on Intrusion Detection Systems for Computers Networking Security,” Computers, vol. 14, no. 3, Art. no. 87, 2025. https://doi.org/10.3390/computers14030087
N. Sharma and B. Arora, “Machine Learning and Deep Learning Models for Anomaly Intrusion Detection in Networks: A Systematic Review,” SN Computer Science, vol. 6, no. 7, Art. no. 832, 2025. https://doi.org/10.1007/s42979-025-04352-z
H. M. R. U. Rehman, S. Liaquat, M. J. Gul, M. Z. Jhandir, D. Gavilanes, M. M. Vergara, and I. Ashraf, “A Systematic Literature Study of Machine Learning Techniques Based Intrusion Detection: Datasets, Models, Challenges, and Future Directions,” Journal of Big Data, vol. 12, no. 1, Art. no. 264, 2025. https://doi.org/10.1186/s40537-025-01323-2
A. Devarakonda, N. Sharma, P. Saha, and S. Ramya, “Network Intrusion Detection: A Comparative Study of Four Classifiers Using the NSL-KDD and KDD’99 Datasets,” Journal of Physics: Conference Series, vol. 2161, no. 1, Art. no. 012043, 2022. https://doi.org/10.1088/1742-6596/2161/1/012043
F. Folino, G. Folino, M. Guarascio, F. S. Pisani, and L. Pontieri, “On Learning Effective Ensembles of Deep Neural Networks for Intrusion Detection,” Information Fusion, vol. 72, pp. 48–69, 2021. https://doi.org/10.1016/j.inffus.2021.02.007
S. M. Kasongo, “A Deep Learning Technique for Intrusion Detection System Using a Recurrent Neural Networks Based Framework,” Computer Communications, vol. 199, pp. 113–125, 2023. https://doi.org/10.1016/j.comcom.2022.12.010
Z. Ahmad, A. S. Khan, C. W. Shiang, J. Abdullah, and F. Ahmad, “Network Intrusion Detection System: A Systematic Study of Machine Learning and Deep Learning Approaches,” Transactions on Emerging Telecommunications Technologies, vol. 32, no. 1, Art. no. e4150, 2021. https://doi.org/10.1002/ett.4150
D. Pinto, I. Amorim, E. Maia, and I. Praça, “A Review on Intrusion Detection Datasets: Tools, Processes, and Features,” Computer Networks, vol. 262, Art. no. 111177, 2025. https://doi.org/10.1016/j.comnet.2025.111177
L. Zhang, K. Liu, X. Xie, W. Bai, B. Wu, and P. Dong, “A Data-Driven Network Intrusion Detection System Using Feature Selection and Deep Learning,” Journal of Information Security and Applications, vol. 78, Art. no. 103606, 2023. https://doi.org/10.1016/j.jisa.2023.103606
M. U. Rehman, R. Kalakoti, and H. Bahşi, “Comprehensive Feature Selection for Machine Learning-Based Intrusion Detection in Healthcare IoMT Networks,” in Proc. 11th International Conference on Information Systems Security and Privacy (ICISSP), vol. 2, pp. 248–259, 2025. https://doi.org/10.5220/0013313600003899
A. H. Abu Saq, A. Zainal, B. A. S. Al-Rimy, A. Alyami, and H. A. Abosaq, “Intrusion Detection in IoT Using Gaussian Fuzzy Mutual Information-Based Feature Selection,” Engineering, Technology & Applied Science Research, vol. 14, no. 6, pp. 17564–17571, 2024. https://doi.org/10.48084/etasr.8268
M. Al-Sarem, F. Saeed, E. H. Alkhammash, and N. S. Alghamdi, “An Aggregated Mutual Information Based Feature Selection with Machine Learning Methods for Enhancing IoT Botnet Attack Detection,” Sensors, vol. 22, no. 1, Art. no. 185, 2022. https://doi.org/10.3390/s22010185
M. Sarhan, S. Layeghy, N. Moustafa, M. Gallagher, and M. Portmann, “Feature Extraction for Machine Learning-Based Intrusion Detection in IoT Networks,” Digital Communications and Networks, vol. 10, no. 1, pp. 205–216, 2024. https://doi.org/10.1016/j.dcan.2022.08.012
X. Yu, Y. Huang, Y. Zhang, M. Song, and Z. Jia, “Network Intrusion Traffic Detection Based on Feature Extraction,” Computers, Materials & Continua, vol. 78, no. 1, pp. 473–492, 2024. https://doi.org/10.32604/cmc.2023.044999
C. Westphal, S. Hailes, and M. Musolesi, “Feature Selection for Network Intrusion Detection,” in Proc. 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining, vol. 1, pp. 1599–1610, 2025. https://doi.org/10.1145/3690624.3709339
M. A. Faizin, D. T. Kurniasari, N. Elqolby, M. A. R. Putra, and T. Ahmad, “Optimizing Feature Selection Method in Intrusion Detection System Using Thresholding,” International Journal of Intelligent Engineering and Systems, vol. 17, no. 3, pp. 214–226, 2024. https://doi.org/10.22266/ijies2024.0630.18
M. Alalhareth and S.-C. Hong, “An Improved Mutual Information Feature Selection Technique for Intrusion Detection Systems in the Internet of Medical Things,” Sensors, vol. 23, no. 10, Art. no. 4971, 2023. https://doi.org/10.3390/s23104971
G. N. N. Barbosa, M. Andreoni, and D. M. F. Mattos, “Optimizing Feature Selection in Intrusion Detection Systems: Pareto Dominance Set Approaches with Mutual Information and Linear Correlation,” Ad Hoc Networks, vol. 159, Art. no. 103485, 2024. https://doi.org/10.1016/j.adhoc.2024.103485
M. Sanwasih, F. Septian, and R. D. Septiana, “Deteksi Intrusi Jaringan Berbasis Machine Learning Menggunakan Model Boosting dengan Session-Level Feature Representation,” Journal of Information System Research (JOSH), vol. 7, no. 2, pp. 489–498, 2026. https://doi.org/10.47065/josh.v7i2.8775
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,” Computers & Security, vol. 148, Art. no. 104173, 2025. https://doi.org/10.1016/j.cose.2024.104173
B. Yu, Y. Zhang, W. Xie, W. Zuo, Y. Zhao, and Y. Wei, “A Network Traffic Anomaly Detection Method Based on Gaussian Mixture Model,” Electronics, vol. 12, no. 6, Art. no. 1397, 2023. https://doi.org/10.3390/electronics12061397
X. Hong, Z. C. Papazachos, J. M. del Rincón, and P. Miller, “Network Intrusion Detection by Variational Component-Based Feature Saliency Gaussian Mixture Clustering,” in Computer Security—ESORICS 2023 International Workshops, Lecture Notes in Computer Science, vol. 14399, pp. 761–772, 2024. https://doi.org/10.1007/978-3-031-54129-2_45
L. Liu and M. Xu, “A Network Intrusion Detection Method Based on Contrastive Learning and Bayesian Gaussian Mixture Model,” Cybersecurity, vol. 8, no. 1, Art. no. 59, 2025. https://doi.org/10.1186/s42400-025-00364-7
W. He, X. Cai, Y.-P. Lai, and X. Yuan, “ESVI-GaMM: A Fast Network Intrusion Detection Approach Based on the Bayesian Gamma Mixture Model,” Information Sciences, vol. 678, Art. no. 121001, 2024. https://doi.org/10.1016/j.ins.2024.121001
Y. Yang, Y. Gu, and Y. Yan, “Machine Learning-Based Intrusion Detection for Rare-Class Network Attacks,” Electronics, vol. 12, no. 18, Art. no. 3911, 2023. https://doi.org/10.3390/electronics12183911
N. Gupta, V. Jindal, and P. Bedi, “CSE-IDS: Using Cost-Sensitive Deep Learning and Ensemble Algorithms to Handle Class Imbalance in Network-Based Intrusion Detection Systems,” Computers & Security, vol. 112, Art. no. 102499, 2022. https://doi.org/10.1016/j.cose.2021.102499
M. S. Milosevic and V. M. Ciric, “Extreme Minority Class Detection in Imbalanced Data for Network Intrusion,” Computers & Security, vol. 123, Art. no. 102940, 2022. https://doi.org/10.1016/j.cose.2022.102940
A. O. Widodo, B. Setiawan, and R. Indraswari, “Machine Learning-Based Intrusion Detection on Multi-Class Imbalanced Dataset Using SMOTE,” Procedia Computer Science, vol. 234, pp. 578–583, 2024. https://doi.org/10.1016/j.procs.2024.03.042
A. Jyoti, M. Singh, V. K. Banga, J. Kaur, J. Gowrishankar, S. Hota, S. Murugan, A. Bhowmik, and N. Ashok, “Comparative Performance Evaluation of Machine Learning Classifiers for Multi-Class Intrusion Detection on the NSL-KDD Dataset,” Scientific Reports, vol. 16, no. 1, Art. no. 32126, 2026. https://doi.org/10.1038/s41598-026-59610-8
M. Swarnkar and S. S. Rajput, Eds., Artificial Intelligence for Intrusion Detection Systems. Boca Raton, FL, USA: CRC Press, 2024.
I. C. Salisteanu, I. Udroiu, A. C. Gheorghe, I. A. Tudoroiu, and E. M. Diaconu, “Cost-Sensitive Stacking Ensemble with Hybrid Feature Selection for Rare Attack Detection in Network Intrusion Detection Systems,” Electronics, vol. 15, no. 14, Art. no. 3094, 2026. https://doi.org/10.3390/electronics15143094
K. P. Murphy, Probabilistic Machine Learning: An Introduction. Cambridge, MA, USA: MIT Press, 2022.
R. Kaur and N. Gupta, “A Novel Boundary Adaptive Oversampling Approach for Intrusion Detection,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 37, no. 1, pp. 518–529, 2025. https://doi.org/10.11591/ijeecs.v37.i1.pp518-529
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Feature Representation and Covariance Analysis for Gaussian Mixture Model-Based Multiclass Network Intrusion Detection
Pages: 260-272
Copyright (c) 2026 Muhammad Adib Kamali, Qory Afiata Fiddin

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).







