Jiangtao Zhai, Lejun Shen, Shuo Wu, Kai Chen, Guangjie Liu
{"title":"S2F-GNN: A self-supervised robust encrypted traffic classification method based on dynamic heterogeneous graphs","authors":"Jiangtao Zhai, Lejun Shen, Shuo Wu, Kai Chen, Guangjie Liu","doi":"10.1016/j.dcan.2026.05.002","DOIUrl":null,"url":null,"abstract":"<div><div>Encrypted traffic classification is a critical task in network security and management. However, existing methods often neglect the structural and multi-dimensional correlations of traffic. Furthermore, their heavy reliance on large-scale labeled data limits their generalization ability in dynamic networks. To address the above limitations, this paper proposes a novel few-shot encrypted traffic classification framework based on self-supervised learning (S<sup>2</sup>F-GNN). Firstly, we represent network sessions as dynamic heterogeneous graphs consisting of flow, time, and attribute nodes. This representation effectively captures the structural features and temporal evolution of traffic in a multi-dimensional space. Secondly, we design a multi-task self-supervised framework that synergizes masked autoencoder, graph structure prediction, clustering, and contrastive learning. This framework efficiently learns universal and robust traffic representations from large-scale unlabeled data. In addition, we design a Jensen-Shannon Divergence (JSD)-based feature selection mechanism to identify features that remain stable across changing environments. This further enhances the model’s adaptability in few-shot and dynamic scenarios. Experimental results demonstrate that S<sup>2</sup>F-GNN significantly outperforms the state-of-the-art methods on multiple public datasets. Especially in the few-shot scenarios with scarce labeled data, the average accuracy and F1-score are improved by 4.04% and 9.68%, respectively.</div></div>","PeriodicalId":48631,"journal":{"name":"Digital Communications and Networks","volume":"12 9","pages":"Pages 1442-1460"},"PeriodicalIF":6.3000,"publicationDate":"2026-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Digital Communications and Networks","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S235286482600060X","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/5/20 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"TELECOMMUNICATIONS","Score":null,"Total":0}
引用次数: 0
Abstract
Encrypted traffic classification is a critical task in network security and management. However, existing methods often neglect the structural and multi-dimensional correlations of traffic. Furthermore, their heavy reliance on large-scale labeled data limits their generalization ability in dynamic networks. To address the above limitations, this paper proposes a novel few-shot encrypted traffic classification framework based on self-supervised learning (S2F-GNN). Firstly, we represent network sessions as dynamic heterogeneous graphs consisting of flow, time, and attribute nodes. This representation effectively captures the structural features and temporal evolution of traffic in a multi-dimensional space. Secondly, we design a multi-task self-supervised framework that synergizes masked autoencoder, graph structure prediction, clustering, and contrastive learning. This framework efficiently learns universal and robust traffic representations from large-scale unlabeled data. In addition, we design a Jensen-Shannon Divergence (JSD)-based feature selection mechanism to identify features that remain stable across changing environments. This further enhances the model’s adaptability in few-shot and dynamic scenarios. Experimental results demonstrate that S2F-GNN significantly outperforms the state-of-the-art methods on multiple public datasets. Especially in the few-shot scenarios with scarce labeled data, the average accuracy and F1-score are improved by 4.04% and 9.68%, respectively.
期刊介绍:
Digital Communications and Networks is a prestigious journal that emphasizes on communication systems and networks. We publish only top-notch original articles and authoritative reviews, which undergo rigorous peer-review. We are proud to announce that all our articles are fully Open Access and can be accessed on ScienceDirect. Our journal is recognized and indexed by eminent databases such as the Science Citation Index Expanded (SCIE) and Scopus.
In addition to regular articles, we may also consider exceptional conference papers that have been significantly expanded. Furthermore, we periodically release special issues that focus on specific aspects of the field.
In conclusion, Digital Communications and Networks is a leading journal that guarantees exceptional quality and accessibility for researchers and scholars in the field of communication systems and networks.