A Semi-Supervised Learning Framework for Encrypted Traffic Classification Based on Supervised Contrastive Learning and Masked Sequence Prediction Tasks

With the widespread adoption of encryption technologies, the proportion of encrypted traffic in network traffic has significantly increased, making encrypted traffic classification a key technology for enhancing network security and optimizing network performance. Although existing research on encrypted traffic classification has made certain advancements, two major challenges remain: (1) Current classification methods generally lack effective utilization of unlabeled data, limiting models to specific task scenarios and reducing their generalization ability; (2) During pre-training, existing methods often focus solely on unlabeled data, failing to fully leverage label information, which restricts further optimization of the feature space. To address these issues, this paper proposes CoMask, a semi-supervised learning framework for encrypted traffic classification that integrates supervised contrastive learning and masked sequence prediction tasks. The framework uses multi-granularity feature sequences as input and employs a cross-training strategy to collaboratively utilize both labeled and unlabeled data. Specifically, the framework utilizes unlabeled data to perform the masked sequence prediction task to enhance the generalization ability of feature representations, while supervised contrastive learning tasks are conducted using labeled data to optimize the feature space. Experimental results show that CoMask outperforms existing state-of-the-art methods on multiple public datasets, with an average F1 score improvement of 3.3%, demonstrating its effectiveness in handling encrypted traffic classification tasks in both known and unknown category scenarios.

Authors

Institutions

Publication Details

Published
2025-03-21
DOI
https://doi.org/10.1109/icaace65325.2025.11020246
Primary Topic
Internet Traffic Analysis and Secure E-voting
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Semi-Supervised Learning Framework for Encrypted Traffic Classification Based on Supervised Contrastive Learning and Masked Sequence Prediction Tasks

Zhongyu Guo, Wei Wu, Zhaoyun Liu, Man Guo et al.
Internet Traffic Analysis and Secure E-voting
article

A Semi-Supervised Learning Framework for Encrypted Traffic Classification Based on Supervised Contrastive Learning and Masked Sequence Prediction Tasks

Zhongyu Guo, Wei Wu, Zhaoyun Liu, Man Guo, Bin Lu, Xiaoyu Lin
article en

Abstract

With the widespread adoption of encryption technologies, the proportion of encrypted traffic in network traffic has significantly increased, making encrypted traffic classification a key technology for enhancing network security and optimizing network performance. Although existing research on encrypted traffic classification has made certain advancements, two major challenges remain: (1) Current classification methods generally lack effective utilization of unlabeled data, limiting models to specific task scenarios and reducing their generalization ability; (2) During pre-training, existing methods often focus solely on unlabeled data, failing to fully leverage label information, which restricts further optimization of the feature space. To address these issues, this paper proposes CoMask, a semi-supervised learning framework for encrypted traffic classification that integrates supervised contrastive learning and masked sequence prediction tasks. The framework uses multi-granularity feature sequences as input and employs a cross-training strategy to collaboratively utilize both labeled and unlabeled data. Specifically, the framework utilizes unlabeled data to perform the masked sequence prediction task to enhance the generalization ability of feature representations, while supervised contrastive learning tasks are conducted using labeled data to optimize the feature space. Experimental results show that CoMask outperforms existing state-of-the-art methods on multiple public datasets, with an average F1 score improvement of 3.3%, demonstrating its effectiveness in handling encrypted traffic classification tasks in both known and unknown category scenarios.

Ministry of Education of the People's Republic of China (CN)
Openalex Percentile: Top 94%
Internet Traffic Analysis and Secure E-voting
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.