Netinfo Security ›› 2023, Vol. 23 ›› Issue (11): 94-103.doi: 10.3969/j.issn.1671-1122.2023.11.010

Previous Articles     Next Articles

IoT Anomaly Detection Model Based on Cost-Sensitive Learning

LIAO Liyun, ZHANG Bolei, WU Lifa()   

  1. School of Computer Science, Nanjing University of Posts and Telecommunications, Nanjing 210023, China
  • Received:2023-08-10 Online:2023-11-10 Published:2023-11-10

Abstract:

Aiming at the problem of data imbalance in current abnormal detection algorithms for Internet of Things (IoT), which leads to incomplete feature learning and subsequently affects the detection performance of minority class attack samples, this article proposed a cost-sensitive abnormal detection model for IoT, called CS-CTIAD. The model used convolutional neural networks and Transformers to comprehensively learn the spatial and temporal features of IoT traffic, alleviating the problem of incomplete feature learning of minority class attack samples by a single model; at the same time, cost sensitive learning was introduced in the model training process, dynamically adjusting the loss weights of minority and majority classes to prevent the classifier from ignoring minority class attack samples due to data imbalance, thus improving the recognition rate of minority class attack samples. The test results on the CSE-CIC-IDS2018 and IoT-23 datasets demonstrate a significant improvement in the detection performance of minority class attack samples. Compared with existing work, the proposed method achieves the best overall evaluation metrics (accuracy, precision, recall, F1).

Key words: internet of things, anomaly detection, deep learning, cost-sensitive, class imbalance

CLC Number: