Few-Shot Learning for Malicious Traffic Detection with Sample Relevance Guided Attention
Malicious traffic detection in IoT environments faces dual challenges: limited labeled data and heterogeneous, complex traffic patterns. To address these limitations, we propose a malicious traffic detection framework, GADF-SRGA, which integrates Gram-angle-difference-field (GADF) imaging with meta-learning. The framework first encodes raw IoT traffic into images via GADF, preserving the spatiotemporal characteristics of malicious traffic. It then employs meta-learning on these encoded images to enable feature-space learning under scarce data. In the inner loop, Sample-Relation Guided Attention (SRGA) leverages class-label-guided supervision graphs to learn sample similarity, improving intra-class compactness and inter-class separability in the feature space. Comprehensive evaluations on public IoT intrusion datasets Malicious_TLS and ToN_IoT demonstrate the framework’s superiority and robustness, particularly under class-imbalanced conditions, over baseline methods.
Authors
- Xuan Wu (ORCID: https://orcid.org/0009-0006-7435-8584)
- Jinjin Chai (ORCID: https://orcid.org/0000-0002-1980-8064)
- Xiaodan Wang (ORCID: https://orcid.org/0000-0003-2785-9539)
- Peng Wang (ORCID: https://orcid.org/0000-0001-5552-0618)
- Yafei Song (ORCID: https://orcid.org/0000-0003-0962-0671)
Institutions
- Air Force Engineering University (CN)
Publication Details
- Journal
- Electronics
- Published
- 2025-11-29
- DOI
- https://doi.org/10.3390/electronics14234717
- Primary Topic
- Internet Traffic Analysis and Secure E-voting
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China