EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

A Contrastive Dual-Task Framework for Few-Shot Traffic Classification in IoT Networks

Zikui Lu iD, Mo Chen, Sailong Cui iD, Bingbing Zhao, Yaoyuan Zheng

Sensors · 31.05.2026 · 26 (11) · 3471

DOI: 10.3390/s26113471 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Sensors, online erschienen am 31.05.2026. Verfasst von Zikui Lu und 4 weiteren Autor:innen. Beteiligte Einrichtung: College of Computer Science, Beijing Information Science and Technology University, Beijing 102206, China. Die Arbeit wurde bisher 1-mal zitiert (Crossref) und nennt 33 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Beijing Municipal Education Commission, Fundamental Research Funds for the Beijing Municipal Universities, Project for Constructing a Service System Based on Open-Source Large-Scale Models.

AbstractSchlagwörterBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Classifying encrypted sensor traffic is critical for the security and management of Internet of Things networks, particularly in Mobile Edge Computing (MEC) environments. Existing methods often require extensive task-specific labeled data to adapt to emerging traffic categories and may also fail to distinguish intrinsic traffic behaviors from patterns introduced by shared communication libraries, which can degrade classification accuracy under distribution shifts. To address these issues, we propose CDTF, a contrastive dual-task framework for transferable and few-shot traffic representation learning. CDTF adopts a hybrid pre-training strategy that jointly optimizes supervised triplet pretraining (STP) and self-supervised dynamic burst masking (DBM). STP uses base-class labels as structural anchors to explicitly constrain distance relationships by aligning intra-class samples and separating inter-class samples, thereby mitigating interference from shared network components. DBM models global semantic structures and enhances the robustness of traffic representations against network noise and distribution shifts. By learning discriminative and contextual representations in a shared embedding space via these two tasks, CDTF can rapidly adapt to novel categories through lightweight fine-tuning, thereby substantially reducing the reliance on large-scale fine-grained supervision in downstream tasks. Experimental results across seven public and two custom datasets, across diverse environments, show that the proposed framework outperforms state-of-the-art methods. Under the few-shot setting, CDTF improves Precision by 4.61 percentage points over the strongest baseline, with statistical significance confirmed by a paired t-test (p

Schlagwörter

Stichwörter der Autor:innen

IoTcontrastive learningencrypted traffic classificationfew-shot learning

Autor:innen und Institutionen

  • College of Computer Science, Beijing Information Science and Technology University, Beijing 102206, China.

ORCID-Profile: Zikui Lu, Sailong Cui

Förderung

  • Beijing Municipal Education Commission
  • Fundamental Research Funds for the Beijing Municipal Universities
  • Project for Constructing a Service System Based on Open-Source Large-Scale Models

Zitieren

APA

Lu, Z., Chen, M., Cui, S., Zhao, B., & Zheng, Y. (2026). A Contrastive Dual-Task Framework for Few-Shot Traffic Classification in IoT Networks. Sensors, 26(11), 3471. https://doi.org/10.3390/s26113471

Vancouver

Lu Z, Chen M, Cui S, Zhao B, Zheng Y. A Contrastive Dual-Task Framework for Few-Shot Traffic Classification in IoT Networks. Sensors. 2026;26(11):3471. doi:10.3390/s26113471

BibTeX
@article{Lu2026,
  author = {Lu, Zikui and Chen, Mo and Cui, Sailong and Zhao, Bingbing and Zheng, Yaoyuan},
  title = {A Contrastive Dual-Task Framework for Few-Shot Traffic Classification in IoT Networks},
  journal = {Sensors},
  year = {2026},
  volume = {26},
  number = {11},
  pages = {3471},
  doi = {10.3390/s26113471}
}
Kostenlos starten →