Data Augmentation for Traffic Classification
Chao Wang, Alessandro Finamore, Pietro Michiardi, Massimo Gallo, Dario Rossi
TL;DR
This paper tackles the underexplored use of data augmentation in traffic classification by systematically benchmarking 18 hand-crafted augmentations across three packet-time-series TC datasets. It reveals that sequence-order and masking augmentations outperform amplitude-based ones and that analyzing latent-space geometry helps explain when augmentations improve or harm performance. The study also investigates how augmentation strategy (batching), dataset characteristics, and combining augmentations influence results, finding that there is no single superior method and gains are dataset-dependent. The authors argue for a potential shift toward generative-model-based augmentation to efficiently navigate the design space and improve TC generalization, while also outlining practical limitations and future directions. Overall, the work provides a comprehensive framework for evaluating DA in TC and highlights concrete, actionable insights for improving TC systems through data-centric approaches.
Abstract
Data Augmentation (DA) -- enriching training data by adding synthetic samples -- is a technique widely adopted in Computer Vision (CV) and Natural Language Processing (NLP) tasks to improve models performance. Yet, DA has struggled to gain traction in networking contexts, particularly in Traffic Classification (TC) tasks. In this work, we fulfill this gap by benchmarking 18 augmentation functions applied to 3 TC datasets using packet time series as input representation and considering a variety of training conditions. Our results show that (i) DA can reap benefits previously unexplored, (ii) augmentations acting on time series sequence order and masking are better suited for TC than amplitude augmentations and (iii) basic models latent space analysis can help understanding the positive/negative effects of augmentations on classification performance.
