Liu, Lan and Wang, Pengcheng and Ruan, Jianliang and Lin, Jun and Hu, Junhan (2023) ConFlow: Contrast Network Flow Improving Class-Imbalanced Learning in Network Intrusion Detection. In: Security and Privacy in New Computing Environments. 6th International Conference, SPNCE 2023, Guangzhou, China, November 25–26, 2023, Proceedings.
79072.pdf
Download (1MB)
Abstract
With the increasing complexity and volume of network traffic, accurate detection of malicious network attacks by machine learning-based network intrusion detection systems (NIDSs) remains a challenging task due to imbalanced network traffic. Conventional machine learning algorithms prioritize high overall accuracy without considering class imbalances. To address this issue, we propose ConFlow, a contrastive learning method for network intrusion detection. ConFlow leverages the Dropout layer to obtain two different vector representations of the same traffic, applying supervised contrast loss and cross-entropy loss during training. Experimental results on the ISCX-IDS2012 and CSE-CIC-IDS2017 datasets show that ConFlow outperforms other methods, especially in few-shot learning scenarios, and exhibits high generalization and robustness in real network environments. Our proposed method has significant practical implications for building an intrusion detection system with high accuracy and low false positive rates.
| Item Type: | Conference or Workshop Item (UNSPECIFIED) |
|---|---|
| Uncontrolled Keywords: | Cyber security, Network intrusion detection system, Deep learning, Class-imbalanced, Contrastive learning |
| Date Deposited: | 04 Mar 2026 20:12 |
| Last Modified: | 20 Nov 2026 13:00 |
| URI: | https://eprints.eai.eu/id/eprint/59728 |
