Model Deteksi Serangan Jaringan Menggunakan Machine Learning Dengan Teknik Ensemble Learning
Abstract
Network attacks pose a serious threat to the security of digital infrastructure, making accurate and efficient detection an urgent necessity. The National Cyber and Crypto Agency (BSSN) recorded 330,527,636 instances of anomalous traffic or network attacks. This sheer volume renders manual handling by cybersecurity personnel highly impractical. Consequently, a detection system based on Machine Learning (ML) is required. However, single machin e learning models have proven suboptimal in effectively resolving this complex problem. This research aims to develop a robust Network Intrusion Detection Model by employing advanced Ensemble Learning techniques—specifically Bagging, Boosting, and Stacking—to significantly optimize the performance of the base ML models. The study utilizes the UNR-IDD dataset. The methodology begins with comprehensive Data Preprocessing, including Min-Max Scaling and Dimensionality Reduction. Model performance is comprehensively evaluated using classification metrics across three distinct data splitting scenarios (70:30, 80:20, and 90:10) to identif y the optimal configuration. The experimental results demonstrate that the Stacking Ensemble Learning approach achieves the most optimal accuracy among the tested methods.
Keywords: Network Intrusion Detection; Machine Learning; Ensemble Learning; Stacking; Dimensionality Reduction
AbstrakSerangan jaringan telah menjadi ancaman serius bagi keamanan inf rastruktur digital . Badan Siber dan Sandi Negara (BSSN) mencatat terdapat 330.527.636 kasus traff ic anomali atau serangan jaringan. Hal tersebut sangat tidak memungkinkan personal keamanan siber untuk menanganinya. Maka, dibutuhkan sistem deteksi berbasis Machine Learning . model Machine Learning tunggal belum optimal dalam deteksi serangan jaringan. Penelitian ini bertujuan untuk memodelkan deteksi serangan jaringan menggunakan Machine Learning dengan teknik ensemble learning bagging, boosting, dan stacking, guna untuk mengoptimalkan perf orma model Machine Learning. Penelitian ini menggunakan dataset UNR-IDD. Penelitian ini bertujuan mengembangkan Model Deteksi Serangan Jaringan yang robust menggunakan teknik Ensemble Learning. Proses dimulai dengan Data Preprocessing, meliputi Min-Max Scaling dan Reduksi Dimensi. Model dievaluasi komprehensif menggunakan metrik klasif ikasi. Pada tiga skenario pembagian data (70:30, 80:20, 90:10) untuk mengidentif ikasi konf igurasi optimal. Hasil dari penelitian ini menunjukan bahwa Ensemble Learning stacking memilii akurasi yang paling optimal, dengan keseimbangan akurasi, presisi , F1 Score, dan Recall mencapai 100% .
Keywords
References
A. Rayhan, “Cybersecurity in the digital age: Assessing threats and strengthening defenses,” in Conference: Cybersecurity Awareness, 2024, pp. 1–26.
C. Surianarayanan, S. Kunasekaran, and P. R. Chelliah, “A high-throughput architecture for anomaly detection in streaming data using machine learning algorithms,” Int. J. Inf. Technol., vol. 16, no. 1, pp. 493–506, 2024.
T. Arjunan, “Real-time detection of network traffic anomalies in big data environments using deep learning models,” Int. J. Res. Appl. Sci. Eng. Technol., vol. 12, no. 9, pp. 10–22214, 2024.
P. Waghmode, M. Kanumuri, H. El-Ocla, and T. Boyle, “Intrusion detection system based on machine learning using least square support vector machine,” Sci. Rep., vol. 15, no. 1, pp. 1–23, 2025, doi: 10.1038/s41598-025-95621-7.
A. Hossain and S. Islam, “Ensuring network security with a robust intrusion detection system using,” Array, vol. 19, no. May, p. 100306, 2023, doi: 10.1016/j.array.2023.100306.
T. S. 2 and T. P. 3 Surasit Songma 1,*, “Optimizing Intrusion Detection Systems in Three Phases on the CSE-CIC-IDS-2018 Dataset Surasit,” Comput. Secur., vol. 3, pp. 2–20, 2023.
M. Z. Hasan, M. Z. Hussain, M. Mustafa, M. A. Yaqub, H. Umar, and H. F. Yousaf, “Comprehensive Model Comparison for Intrusion Detection in UNR-IDD Dataset: Evaluating Naïve Bayes, Decision Tree, Random Forest, K-Neighbors, and LSTM,” VAWKUM Trans. Comput. Sci., vol. 12, no. 2, pp. 311–325, 2024, doi: 10.21015/vtcs.v12i2.1929.
S. Rana and M. N. U. R. Nobi, “Deepfake Detection : A Systematic Literature Review,” IEEE Access, vol. 10, pp. 25494–25513, 2022, doi: 10.1109/ACCESS.2022.3154404.
G. Nassreddine and M. Nassereddine, “Ensemble Learning for Network Intrusion Detection Based on Correlation and Embedded Feature Selection Techniques,” computers, vol. volume 14, no. Issue 3, pp. 1–23, 2025.
F. Dimensionality, R. Approaches, and I. Detection, “Features Dimensionality Reduction Approaches for Machine Learning Based Network,” Electronics, vol. Volume 8, no. 3, pp. 2–27, 2019, doi: 10.3390/electronics8030322.
A. M. Kamoona, S. Member, and A. K. Gostar, “Multiple Instance-Based Video Anomaly Detection using Deep Temporal Encoding-Decoding,” arXiv, pp. 1–11, 2021.
B. Adhi and S. Lim, “Ensemble learning for intrusion detection systems : A systematic mapping study and cross-benchmark evaluation,” Comput. Sci. Rev., vol. 39, p. 100357, 2021, doi: 10.1016/j.cosrev.2020.100357.
S. Kaushik, A. Bhardwaj, and A. Almogren, “Robust machine learning based Intrusion detection system using simple statistical techniques in feature selection,” Nat. hazards, pp. 1–20, 2025.
S. Kaushik, L. Maurya, E. Tellman, G. Zhang, and J. K. Dharpure, “Science of Remote Sensing Debris covered glacier mapping using newly annotated multisource remote sensing data and geo-foundational model,” Sci. Remote Sens., vol. 12, no. October, p. 100319, 2025, doi: 10.1016/j.srs.2025.100319.
A. B. Hikmah, “Optimasi Hyperparameter Ensemble Learning untuk Prediksi Penyakit Liver Berdasarkan Data Pasien,” J. SISKOM-KB (Sistem Komput. dan Kecerdasan Buatan), vol. 8, no. 3, pp. 149–158, 2025.
M. L. Ali, K. Thakur, S. Schmeelk, J. Debello, and D. Dragos, “Deep Learning vs. Machine Learning for Intrusion Detection in Computer Networks: A Comparative Study,” Appl. Sci., vol. 15, no. 4, pp. 1–19, 2025, doi: 10.3390/app15041903.
I. Bibers, O. Arreche, and W. Alayed, “Ensemble-IDS : An Ensemble Learning Framework for Enhancing AI-Based Network Intrusion Detection Tasks,” Appl. Sci., vol. 3, no. 5, pp. 1–37, 2025.
N. Thapa, Z. Liu, D. B. Kc, B. Gokaraju, and K. Roy, “Comparison of Machine Learning and Deep Learning Models for Network Intrusion Detection Systems,” Futur. internet, vol. 2, no. 3, pp. 1–16, 2020.
M. A. Hossain and M. S. Islam, “Ensuring network security with a robust intrusion detection system using ensemble-based machine learning,” Array, vol. 19, p. 100306, 2023.
Z. Lu, D. Huang, L. Bai, J. Qu, and C. Wu, “Seeing is not always believing : Benchmarking Human and Model Perception of AI-Generated Images,” no. NeurIPS, pp. 1–34, 2023.
How To Cite This :
Refbacks
- There are currently no refbacks.










