Effective Intrusion Detection in Imbalanced Network Traffic using XGBoost and LightGBM
With the continuous evolution of network attack methods, traditional Intrusion Detection Systems (IDS) face increasing challenges. To improve the accuracy and responsiveness of IDS, this paper proposes a network traffic classification approach based on two machine learning algorithms: XGBoost and LightGBM. We train and evaluate both models using several publicly available network traffic datasets to compare their performance in handling different types of network attacks. The models are evaluated using metrics such as accuracy, precision, recall, and F1 score, while confusion matrix analysis assesses performance across various attack categories. Experimental results show that XGBoost outperforms LightGBM in most attack categories, especially in detecting DDoS attacks, where it demonstrates higher precision and recall. On the other hand, LightGBM offers advantages in training speed and memory consumption, making it more suitable for large-scale datasets. Based on accuracy, efficiency, and resource consumption, this paper provides two effective machine learning methods for network intrusion detection and discusses their application scenarios and potential improvements.
Authors
- Jianjun Wang (ORCID: https://orcid.org/0000-0001-8322-1316)
- Hao Yu (ORCID: https://orcid.org/0000-0002-5816-4492)
- Meng Meng (ORCID: https://orcid.org/0009-0004-4293-786X)
- Jinlei Zhou
Institutions
- NARI Group (China) (CN)
Publication Details
- Published
- 2025-03-14
- DOI
- https://doi.org/10.1109/itoec63606.2025.10967780
- Primary Topic
- IoT-based Smart Home Systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00