Zhang Yuanlin, Zhang Lei, Zheng Xiaoyuan
School of Artificial Intelligence and Data Science, Hebei University of Technology, Tianjin 300132, China.
Sensors (Basel). 2024 Dec 10;24(24):7883. doi: 10.3390/s24247883.
With the escalating threat posed by network intrusions, the development of efficient intrusion detection systems (IDSs) has become imperative. This study focuses on improving detection performance in programmable logic controller (PLC) network security while addressing challenges related to data imbalance and long-tail distributions. A dataset containing five types of attacks targeting programmable logic controllers (PLCs) in industrial control systems (ICS) was first constructed. To address class imbalance and challenges posed by complex network traffic, Synthetic Minority Oversampling Technique (SMOTE) and Borderline-SMOTE were applied to oversample minority classes, thereby enhancing their diversity. This paper proposes a dual-channel feature extraction model that integrates a multi-scale one-dimensional convolutional neural network (MS1DCNN) and a Weight-Dropped Transformer (WDTransformer) for IDS. The MS1DCNN is designed to extract fine-grained temporal features from packet-level data, whereas the WDTransformer leverages self-attention mechanisms to capture long-range dependencies and incorporates regularization techniques to mitigate overfitting. To further enhance performance on long-tail distributions, a custom combined loss function was developed by integrating cross-entropy loss and focal loss to reduce misclassification in minority classes. Experimental validation on the constructed dataset demonstrated that the proposed model achieved an accuracy of 95.11% and an F1 score of 95.12%, significantly outperforming traditional machine learning and deep learning models.
随着网络入侵带来的威胁不断升级,开发高效的入侵检测系统(IDS)变得势在必行。本研究专注于提高可编程逻辑控制器(PLC)网络安全中的检测性能,同时解决与数据不平衡和长尾分布相关的挑战。首先构建了一个包含针对工业控制系统(ICS)中可编程逻辑控制器(PLC)的五种攻击类型的数据集。为了解决类别不平衡以及复杂网络流量带来的挑战,应用了合成少数类过采样技术(SMOTE)和边界合成少数类过采样技术(Borderline-SMOTE)对少数类进行过采样,从而增强其多样性。本文提出了一种用于入侵检测系统的双通道特征提取模型,该模型集成了多尺度一维卷积神经网络(MS1DCNN)和权重下降变压器(WDTransformer)。MS1DCNN旨在从数据包级数据中提取细粒度的时间特征,而WDTransformer利用自注意力机制来捕捉长距离依赖关系,并采用正则化技术来减轻过拟合。为了进一步提高在长尾分布上的性能,通过整合交叉熵损失和焦点损失开发了一种定制的组合损失函数,以减少少数类中的误分类。在构建的数据集上进行的实验验证表明,所提出的模型实现了95.11%的准确率和95.12%的F1分数,显著优于传统机器学习和深度学习模型。