EUVIMEDObjevte EUVIMED
Open access · CC BY 4.0

Lightweight Malicious Traffic Detection Model for Edge Scenarios: Co-Optimization of Detection Accuracy and Computational Overhead

Wanjia Li, Guanjie Wang, Xiang Meng, Hongyu Sun, Yanhua Dong

Electronics · 2026-07-13 · 15 (14) · 3083

DOI: 10.3390/electronics15143083 ↗

At a glance

Journal article in Electronics, published online on 2026-07-13. Written by Wanjia Li and 4 co-authors. 36 references. The full text is freely available (open access, CC BY 4.0). Funded by: Department of Education of Jilin Province, Jilin Province Science and Technology Development Plan Project—Youth Growth Science and Technology Plan Project.

AbstraktBibliografické údajeCiteRelated studies

Abstract (original language)

With the widespread deployment of IoT devices, deploying efficient network traffic classification models on resource-constrained edge nodes is critical for real-time boundary security. However, traditional lightweight models primarily rely on macro-level structural pruning, which often sacrifices crucial feature extraction capabilities when handling complex heterogeneous traffic, leading to a severe imbalance between parameter compression and detection accuracy. To overcome this bottleneck, we propose TinyFlowNet, an ultra-lightweight multi-module fusion architecture. To prevent the parameter explosion inherent in combining CNN, LSTM, and Transformer modules, TinyFlowNet innovatively adopts an extreme operator-level reconstruction strategy. By introducing debiased computations, affine-free normalization, and a customized micro-self-attention mechanism, it comprehensively strips away underlying redundant parameters. Simultaneously, an integrated parameter-free regularization mechanism is introduced to compensate for the representational capacity lost under this extreme compression, ensuring robust spatio-temporal feature fusion. Comprehensive evaluations on the custom X-IDS-20 balanced dataset alongside the complex CICDarknet2020 and ToN_IoT public datasets demonstrate that TinyFlowNet achieves exceptional accuracies of 95.31 percent, 99.53 percent, and 97.13 percent, respectively. Furthermore, it exhibits formidable robustness against extreme class imbalances by securing a peak Matthews Correlation Coefficient of 0.9465 and an outstanding PR-AUC of 0.9834, all while strictly confining the parameter count to merely 74,600. Crucially, actual on-device hardware profiling on a commercial edge device corroborates its deployment viability, exhibiting a minimal dynamic memory footprint of 8.26 MB, an average inference latency of 0.79 ms, and a processing throughput exceeding 1200 FPS. Compared to a standard heavy Hybrid CNN-LSTM-Transformer baseline, TinyFlowNet achieves superior detection accuracy while drastically reducing the parameter footprint by over 99.3% and computational FLOPs by 95.8%. Furthermore, against mainstream lightweight benchmarks like DistilBERT and heavy baselines such as LSTM, TinyFlowNet reduces parameters by 61.4% to 94% while simultaneously achieving absolute accuracy leaps and accelerating inference speed by nearly 4× over MobileNetV2, establishing a highly efficient new paradigm for intelligent edge defense.

Funding

  • Department of Education of Jilin Province
  • Jilin Province Science and Technology Development Plan Project—Youth Growth Science and Technology Plan Project

Cite

APA

Li, W., Wang, G., Meng, X., Sun, H., & Dong, Y. (2026). Lightweight Malicious Traffic Detection Model for Edge Scenarios: Co-Optimization of Detection Accuracy and Computational Overhead. Electronics, 15(14), 3083. https://doi.org/10.3390/electronics15143083

Vancouver

Li W, Wang G, Meng X, Sun H, Dong Y. Lightweight Malicious Traffic Detection Model for Edge Scenarios: Co-Optimization of Detection Accuracy and Computational Overhead. Electronics. 2026;15(14):3083. doi:10.3390/electronics15143083

BibTeX
@article{Li2026,
  author = {Li, Wanjia and Wang, Guanjie and Meng, Xiang and Sun, Hongyu and Dong, Yanhua},
  title = {Lightweight Malicious Traffic Detection Model for Edge Scenarios: Co-Optimization of Detection Accuracy and Computational Overhead},
  journal = {Electronics},
  year = {2026},
  volume = {15},
  number = {14},
  pages = {3083},
  doi = {10.3390/electronics15143083}
}
Start for free →