CGF-Net: A Multi-View Contrastive Learning Model for Encrypted Traffic Classification
Electronics · 2026-07-23 · 15 (15) · 3249
DOI: 10.3390/electronics15153249 ↗At a glance
Journal article in Electronics, published online on 2026-07-23. Written by Yanlin He and 1 co-authors. 35 references. The full text is freely available (open access, CC BY 4.0). Funded by: Industrial Internet Security Graded Evaluation Consulting Service Project, Simulation Verification of Technical Architecture and Security Threats for China Computing Network.
Abstract (original language)
For the task of encrypted traffic classification, existing approaches commonly rely on a single feature view, such as side-channel characteristics or raw packet bytes, often incorporating techniques inspired by natural language processing and computer vision for modeling and classification. In recent years, multi-view learning has gained increasing attention due to its ability to enhance discriminative power and generalization performance by capturing complementary information from different perspectives. However, heterogeneous feature views often exhibit distributional discrepancies, which makes direct multi-view integration difficult. To address this issue, we propose CGF-Net, a multi-view contrastive learning framework for encrypted traffic classification. The proposed model is inspired by cross-modal contrastive learning and employs lightweight adaptation to learn representations from both behavioral and content views. During pre-training, CGF-Net performs instance-level cross-view contrastive learning by treating the behavioral and content views of the same network flow as a positive pair, thereby aligning heterogeneous representations at the flow-instance level. In addition, a lightweight fine-tuning module together with a gating-based fusion mechanism is introduced to improve the collaborative modeling capability of multi-view representations. Extensive experiments on four public datasets show that CGF-Net achieves ACC scores of 95.81%, 93.38%, 96.38%, and 95.72% on CSTNET-TLS1.3, CipherSpectrum, ISCXVPN2016, and ISCXTor2016, respectively. Compared with the best-performing baseline on each dataset, CGF-Net improves the average ACC and F1-score by 0.78 and 0.69 percentage points, respectively, demonstrating the effectiveness of the proposed model.
Funding
- Industrial Internet Security Graded Evaluation Consulting Service Project
- Simulation Verification of Technical Architecture and Security Threats for China Computing Network
Cite
APA
He, Y., & Hu, N. (2026). CGF-Net: A Multi-View Contrastive Learning Model for Encrypted Traffic Classification. Electronics, 15(15), 3249. https://doi.org/10.3390/electronics15153249
Vancouver
He Y, Hu N. CGF-Net: A Multi-View Contrastive Learning Model for Encrypted Traffic Classification. Electronics. 2026;15(15):3249. doi:10.3390/electronics15153249
BibTeX
@article{He2026,
author = {He, Yanlin and Hu, Ning},
title = {CGF-Net: A Multi-View Contrastive Learning Model for Encrypted Traffic Classification},
journal = {Electronics},
year = {2026},
volume = {15},
number = {15},
pages = {3249},
doi = {10.3390/electronics15153249}
}
EUVIMED