ANALISIS SELEKSI FITUR PADA NETWORK INTRUSION DETECTION DENGAN NATURAL LANGUAGE PROCESSING

Authors

DOI:

https://doi.org/10.54314/jssr.v9i4.6883

Keywords:

NIDS, NLP, TF-IDF, Chi-Square, Feature Selection

Abstract

This study proposes a Natural Language Processing (NLP)-based feature selection approach for Network Intrusion Detection Systems (NIDS) using the CICIDS2017 dataset. To address high computational complexity caused by high dimensionality, network flows are normalized using Min-Max Scaling and transformed into textual representations via a consistent sentence template. The text data is then weighted using Term Frequency–Inverse Document Frequency (TF-IDF), followed by Chi-Square (Chi²) feature selection to isolate the most discriminative features. This process yields a dataset comprising 691,406 text documents with 302 textual features. Performance is evaluated using Random Forest, Linear Support Vector Machine (Linear SVM), and Naïve Bayes classifiers. Experimental results show that Random Forest achieves the highest accuracy at 97.3%, followed by Linear SVM at 96.4%, and Naïve Bayes at 83.2%. The confusion matrix further confirms that the vast majority of network traffic instances are correctly classified. These findings demonstrate that transforming tabular network data into textual formats using NLP, combined with TF-IDF and Chi-Square feature selection, successfully produces representative features, enhances intrusion detection performance, and effectively reduces data complexity in NIDS.

Downloads

Download data is not yet available.

References

Yusda, R. A., Sahren, S., Fitri Larasti Sibuea, M., Meutia Arifin, N., & Aditya, B. (2025). Seleksi Fitur Menggunakan Mutual Information Untuk Deteksi Intrusi. Journal of Science and Social Research, 8(3), 3482–3490. http://jurnal.goretanpena.com/index.php/JSSR

Arreche, O., Guntur, T., & Abdallah, M. (2024). XAI-based Feature Selection for Improved Network Intrusion Detection Systems. ArXiv. http://arxiv.org/abs/2410.10050

Cybersecurity Ventures. (2023). Cybersecurity Almanac.

Ma, H., Zhang, W., Zhang, D., & Chen, B. (2025). An IoT intrusion detection framework based on feature selection and large language models fine-tuning. Scientific Reports, 15(1). https://doi.org/10.1038/s41598-025-08905-3

Maasaoui, Z., Battou, A., Merzouki, M., & Lbath, A. (2024, July). Anomaly Based Intrusion Detection using Large Language Models.

Mamikonian, V., & Mamamniashvili, D. (2025). A Lightweight and Optimized BERT-based Intrusion Detection System for Resource-Constrained Network and Logistics Environments. GEORGIAN SCIENTISTS. https://doi.org/10.52340/gs.2025.07.04.49

Ngo, V.-D., Vuong, T.-C., Van Luong, T., & Tran, H. (2023). Machine Learning-Based Intrusion Detection: Feature Selection versus Feature Extraction. ArXiv. http://arxiv.org/abs/2307.01570

Ponemon Institute. (2024). Third Annual Ponemon Institute Report_ Nearly Seven in 10 Healthcare Organizations Experienced Disruption to Patient Care Due to Cyber Attacks _ Proofpoint US.

Sahren, S., & Prijuna Lubis, A. (2024). Intrusion Detection System Berbasis Deep Learning Untuk Peningkatan Mitigasi SQL Injection dan Syn Flood Attack. Journal of Science and Social Research, 7(4), 1866–1874. http://jurnal.goretanpena.com/index.php/JSSR

Sharafaldin, I., Lashkari, A. H., & Ghorbani, A. A. (2018). Toward generating a new intrusion detection dataset and intrusion traffic characterization. ICISSP 2018 - Proceedings of the 4th International Conference on Information Systems Security and Privacy, 2018-January, 108–116. https://doi.org/10.5220/0006639801080116

Sworna, Z. T., Mousavi, Z., & Babar, M. A. (2023). NLP methods in host-based intrusion detection systems: A systematic review and future directions. In Journal of Network and Computer Applications (Vol. 220). Academic Press. https://doi.org/10.1016/j.jnca.2023.103761

Talukder, M. A., Hasan, K. F., Islam, M. M., Uddin, M. A., Akhter, A., Yousuf, M. A., Alharbi, F., & Moni, M. A. (2023). A dependable hybrid machine learning model for network intrusion detection. Journal of Information Security and Applications, 72, 103405. https://doi.org/10.1016/J.JISA.2022.103405

Umer, M., Tahir, M., Sardaraz, M., Sharif, M., Elmannai, H., & Algarni, A. D. (2025). Network intrusion detection model using wrapper based feature selection and multi head attention transformers. Scientific Reports, 15(1). https://doi.org/10.1038/s41598-025-11348-5

Vubangsi, M., Mangai, T. R., Olukayode, A., Mubarak, A. S., & Al-Turjman, F. (2024). BERT-IDS: an intrusion detection system based on bidirectional encoder representations from transformers. Computational Intelligence and Blockchain in Complex Systems: System Security and Interdisciplinary Applications, 147–155. https://doi.org/10.1016/B978-0-443-13268-1.00021-2

Westphal, C., Hailes, S., & Musolesi, M. (2024). Feature Selection for Network Intrusion Detection. ArXiv. http://arxiv.org/abs/2411.11603

Yang, Y., & Peng, X. (2025). BERT-based network for intrusion detection system. Eurasip Journal on Information Security, 2025(1). https://doi.org/10.1186/s13635-025-00191-w

Yin, Y., Jang-Jaccard, J., Xu, W., Singh, A., Zhu, J., Sabrina, F., & Kwak, J. (2023). IGRF-RFE: a hybrid feature selection method for MLP-based network intrusion detection on UNSW-NB15 dataset. Journal of Big Data, 10(1). https://doi.org/10.1186/s40537-023-00694-8

Downloads

Published

2026-08-13

How to Cite

ANALISIS SELEKSI FITUR PADA NETWORK INTRUSION DETECTION DENGAN NATURAL LANGUAGE PROCESSING. (2026). JOURNAL OF SCIENCE AND SOCIAL RESEARCH, 9(4), 6124 – 6132. https://doi.org/10.54314/jssr.v9i4.6883