北京邮电大学学报

  • EI核心期刊

北京邮电大学学报

• •    

基于双层注意力的异常数据深度分析及检测

郭高强1,何明枢1,李欣航1,王小娟2   

  1. 1. 北京邮电大学
    2. 北京市西土城路10号北京邮电大学
  • 收稿日期:2023-12-05 修回日期:2024-01-27 发布日期:2024-07-18
  • 通讯作者: 何明枢

Deep Analysis and Detection of Anomalous Data Based on Dual-Layer Attention

  • Received:2023-12-05 Revised:2024-01-27 Published:2024-07-18
  • Contact: MINGSHU HE

摘要: 随着智能驾驶技术的发展,车辆通过车载网络与外界的联系日益频繁。控制器区域网络(CAN)是当前主要的车载网络,攻击者已经可以利用CAN网络中的安全漏洞实现车辆控制,从而对车内人员造成重大安全威胁。针对这一问题,提出了一个基于长短期记忆网络(LSTM)和注意力机制的异常检测模型,利用双层注意力编码器分别实现对CAN数据流局部和整体特征间信息的深度挖掘。通过高效搜寻并学习特征间的顺序模式,所提模型使用特征信息量明显减少,并可以实现更好的检测性能,提高了异常检测效率和准确性,同时能够实现不平衡的分类任务。最后,在CarHacking数据集上进行多次独立重复测试。结果表明,所提方法对CarHacking数据集中所有攻击类别的检测正确率均高于99.2%,显著优于其他异常检测方法。此外,还完成了其他方法未实现的多分类任务,并且所提方法的平均检测正确率达到99.26%。

关键词: 车载网络, 异常检测, 长短期记忆模型, 注意力机制

Abstract: With the advancement of intelligent driving technology, the connection between vehicles and the external environment through in-vehicle networks is becoming increasingly frequent. The Controller Area Network (CAN) is the primary in-vehicle network currently, and attackers can exploit security vulnerabilities in the CAN network to gain control of vehicles, posing significant safety threats to occupants. In response to this issue, this paper proposes an anomaly detection model based on Long Short-Term Memory (LSTM) and attention mechanism. The model employs a dual-layer attention encoder to deeply mine information between local and global features of CAN data streams. By efficiently searching and learning sequential patterns between features, the proposed model significantly reduces feature information redundancy, leading to improved detection performance, enhanced efficiency, and accuracy in anomaly detection. The model also demonstrates effectiveness in handling imbalanced classification tasks. Finally, multiple independent repeated tests are conducted on the CarHacking dataset. The results show that the proposed method achieves detection accuracy above 99.2% for all attack categories in the CarHacking dataset, significantly outperforming other anomaly detection methods. Additionally, this paper accomplishes a multi-classification task that other methods have not achieved, with an average detection accuracy of 99.26% for the proposed method.

Key words: vehicle network, anomaly detection, long short-term memory model, attention mechanism

中图分类号: