JOURNAL ARTICLE

Self-Supervised Traffic Classification: Flow Embedding and Few-Shot Solutions

Eyal HorowiczTal ShapiraYuval Shavitt

Year: 2024 Journal:   IEEE Transactions on Network and Service Management Vol: 21 (3)Pages: 3054-3067   Publisher: Institute of Electrical and Electronics Engineers

Abstract

Internet traffic classification has been intensively studied over the past decade due to its importance for traffic engineering and cyber security. A promising approach to several traffic classification problems is the FlowPic approach, where histograms of packet sizes in consecutive time slices are transformed into a picture that is fed into a Convolution Neural Network (CNN) model for classification. However, CNNs (and the FlowPic approach included) require a relatively large labeled flow dataset, which is not always easy to obtain. In this paper, we show that we can overcome this obstacle by using Contrastive Representation Learning in order to learn from an unlabeled flow dataset a flow representation that can be embedded in a latent space, enabling clustering of flows belonging to the same class together. We then show that by using just a few labeled flows (a few shots) from each class, we can achieve high accuracy in flow classification. We show that common picture augmentation techniques can help, but accuracy improves further when introducing augmentation techniques that mimic network behavior, such as changes in the RTT (Round-trip time). Finally, we show that we can replace the large FlowPics suggested in the past with much smaller mini-FlowPics and achieve two advantages: improved model performance and easier engineering. Interestingly, this even improves accuracy in some cases.

Keywords:
Computer science Embedding Cluster analysis Representation (politics) Artificial intelligence Traffic classification Class (philosophy) Convolutional neural network Traffic flow (computer networking) Data mining Machine learning Flow (mathematics) Pattern recognition (psychology) Network packet

Metrics

18
Cited By
11.50
FWCI (Field Weighted Citation Impact)
54
Refs
0.97
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Internet Traffic Analysis and Secure E-voting
Physical Sciences →  Computer Science →  Artificial Intelligence
Network Security and Intrusion Detection
Physical Sciences →  Computer Science →  Computer Networks and Communications
Digital and Cyber Forensics
Physical Sciences →  Computer Science →  Information Systems

Related Documents

JOURNAL ARTICLE

Self-supervised few-shot learning for real-time traffic sign classification

Anh-Khoa Tho NguyenTin T. TranPhuc Hong NguyenVinh Quang Dinh

Journal:   International Journal of Advances in Intelligent Informatics Year: 2024 Vol: 10 (1)Pages: 171-171
JOURNAL ARTICLE

Self-Supervised Class-Cognizant Few-Shot Classification

Ojas Kishore ShirekarHadi Jamali‐Rad

Journal:   2022 IEEE International Conference on Image Processing (ICIP) Year: 2022 Pages: 976-980
© 2026 ScienceGate Book Chapters — All rights reserved.