Research on CNN-BiLSTM Network Traffic Anomaly Detection Model Based on MindSpore
Qiuyan Xiang, Shuang Wu, Dongze Wu, Yuxin Liu, Zhenkai Qin
TL;DR
This work tackles the challenge of detecting anomalies in IoT/IIoT network traffic by proposing a CNN-BiLSTM model implemented on MindSpore. It processes time-series traffic features with a Conv1D front end and a bidirectional LSTM to capture both local patterns and temporal dependencies, using a dynamic threshold trained with validation performance. Evaluated on the NF-BoT-IoT dataset, the approach achieves about 99% across accuracy, precision, recall, and F1, demonstrating strong detection capability and robustness. The study highlights practical potential for IoT security while acknowledging future needs for cross-domain adaptation and real-time deployment, with avenues like lightweight architectures and federated learning for multi-scenario environments.
Abstract
With the widespread adoption of the Internet of Things (IoT) and Industrial IoT (IIoT) technologies, network architectures have become increasingly complex, and the volume of traffic has grown substantially. This evolution poses significant challenges to traditional security mechanisms, particularly in detecting high-frequency, diverse, and highly covert network attacks. To address these challenges, this study proposes a novel network traffic anomaly detection model that integrates a Convolutional Neural Network (CNN) with a Bidirectional Long Short-Term Memory (BiLSTM) network, implemented on the MindSpore framework. Comprehensive experiments were conducted using the NF-BoT-IoT dataset. The results demonstrate that the proposed model achieves 99% across accuracy, precision, recall, and F1-score, indicating its strong performance and robustness in network intrusion detection tasks.
