A Lightweight Network for Encrypted Traffic Classification Based on Convolutional Positional Encoding and Efficient Multi-Scale Attention
Electronics · 2026-05-22 · 15 (11) · 2248
DOI: 10.3390/electronics15112248 ↗At a glance
Journal article in Electronics, published online on 2026-05-22. Written by Yuan Feng and 5 co-authors. Cited 1 times so far (Crossref); 25 references. The full text is freely available (open access, CC BY 4.0). Funded by: National Natural Science Foundation of China.
Abstract (original language)
Network traffic classification is a cornerstone of network management and security. Addressing the challenges of feature extraction in encrypted traffic and the deployment limitations of traditional deep learning models on resource-constrained edge devices due to their large parameter sizes, this paper proposes a lightweight network for encrypted traffic classification, termed CEMA-Net (Convolutional Positional Encoding and Efficient Multi-scale Attention Network). Specifically, the proposed model integrates an Efficient Multi-scale Attention (EMA) mechanism with a Convolutional Positional Encoding (CPE) strategy to jointly capture global dependencies and local contextual information. To enable efficient adaptation to traffic data, an Efficient Multi-scale Attention Adapter (EMAAdapter) is designed, which reconstructs one-dimensional traffic sequences into a pseudo-2D representation and extracts horizontal, vertical, and local features in parallel. This design facilitates effective modeling of complex cross-scale dependencies in encrypted traffic with minimal computational overhead. Experimental results on three public datasets demonstrate that the proposed method, with only 0.66 M parameters, achieves superior classification performance compared with mainstream vision-based models such as ResNet-101, while significantly reducing computational cost. These results highlight the effectiveness of combining convolutional positional encoding with multi-scale attention mechanisms and provide an efficient solution for encrypted traffic classification in resource-constrained environments.
Funding
- National Natural Science Foundation of China
Cite
APA
Feng, Y., Ren, Y., Zhang, J., Cai, Z., Yang, J., & Zhu, L. (2026). A Lightweight Network for Encrypted Traffic Classification Based on Convolutional Positional Encoding and Efficient Multi-Scale Attention. Electronics, 15(11), 2248. https://doi.org/10.3390/electronics15112248
Vancouver
Feng Y, Ren Y, Zhang J, Cai Z, Yang J, Zhu L. A Lightweight Network for Encrypted Traffic Classification Based on Convolutional Positional Encoding and Efficient Multi-Scale Attention. Electronics. 2026;15(11):2248. doi:10.3390/electronics15112248
BibTeX
@article{Feng2026,
author = {Feng, Yuan and Ren, Yifan and Zhang, Jianwei and Cai, Zengyu and Yang, Juncheng and Zhu, Liang},
title = {A Lightweight Network for Encrypted Traffic Classification Based on Convolutional Positional Encoding and Efficient Multi-Scale Attention},
journal = {Electronics},
year = {2026},
volume = {15},
number = {11},
pages = {2248},
doi = {10.3390/electronics15112248}
}
EUVIMED