FlowXpert: Context-Aware Flow Embedding for Enhanced Traffic Detection in IoT Network
Authors:
- Chao ZhaCZChao Zha
- Haolin PanHPHaolin Pan
- Bing BaiBBBing Bai
- Jiangxing WuJWJiangxing Wu
- Ruyun ZhangRZRuyun Zhang
Preprint
Abstract
In the Internet of Things (IoT) environment, continuous interaction among a large number of devices generates complex and dynamic network traffic, which poses significant challenges to rule-based detection approaches. Machine learning (ML)-based traffic detection technology, capable of identifying anomalous patterns and potential threats within this traffic, serves as a critical component in ensuring network security. This study first identifies a significant issue with widely adopted feature extraction tools (e.g., CICMeterFlow): the extensive use of time- and length-related features leads to high sparsity, which adversely affects model convergence. Furthermore, existing traffic detection methods generally lack an embedding mechanism capable of efficiently and comprehensively capturing the semantic characteristics of network traffic. To address these challenges, we propose a novel feature extraction tool that eliminates traditional time and length features in favor of context-aware semantic features related to the source host, thus improving the generalizability of the model. In addition, we design an embedding training framework that integrates the unsupervised DBSCAN clustering algorithm with a contrastive learning strategy to effectively capture fine-grained semantic representations of traffic. Extensive empirical evaluations are conducted on the real-world Mawi data set to validate the proposed method in terms of detection accuracy, robustness, and generalization. Comparative experiments against several state-of-the-art (SOTA) models demonstrate the superior performance of our approach. Furthermore, we confirm its applicability and deployability in real-time scenarios.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- DM-IDS—A Network Intrusion Detection Method Based on Dual-Modal FusionIEEE Transactions on Network and Service Management, 2025
- A-NIDS: Adaptive Network Intrusion Detection System Based on Clustering and Stacked CTGANIEEE Transactions on Information Forensics and Security, 2025
- SKT-IDS: Unknown attack detection method based on Sigmoid Kernel Transformation and encoder–decoder architectureComputers & Security, 2024
- Dual-IDS: A bagging-based gradient boosting decision tree model for network anomaly intrusion detection systemExpert Systems with Applications, 2022
- Conditional Variational Auto-Encoder and Extreme Value Theory Aided Two-Stage Learning Approach for Intelligent Fine-Grained Known/Unknown Intrusion DetectionIEEE Transactions on Information Forensics and Security, 2021
- A novel model for anomaly detection in network traffic based on kernel support vector machineComputers & Security, 2021
- A survey and taxonomy of the fuzzy signature-based Intrusion Detection SystemsApplied Soft Computing, 2020
- Cloud Intrusion Detection Method Based on Stacked Contractive Auto-Encoder and Support Vector MachineIEEE Transactions on Cloud Computing, 2020
- A detailed analysis of the KDD CUP 99 data set2009
- State transition analysis: a rule-based intrusion detection approachIEEE Transactions on Software Engineering, 1995