Research Article

IoT traffic classification and anomaly detection method based on deep autoencoders

Qi Xin1,*, Zeqiu Xu2, Lingfeng Guo3, Fanyi Zhao4, Binbin Wu5
1. Management Information Systems, University of Pittsburgh, Pittsburgh, PA, USA
2. Computer Science, Carnegie Mellon University, CA, USA
3. Business Analytics, Trine University, AZ, USA
4. Computer Science, Stevens Institute of Technology, NJ, USA
5. Heating Ventilation and Air Conditioning Engineering, Tsinghua University, Beijing China

* Corresponding author: [email protected]

Abstract

This study investigates anomaly detection of IoT device traffic using Convolutional Neural Networks (CNN) and Variational Autoencoders (VAE) to enhance the detection capability of security threats in IoT environments. A series of hardware configurations, software environments, and hyperparameters were utilized to optimize the training and testing processes of the models. The CNN model demonstrates robust classification performance, achieving an accuracy rate of 95.85% on the test dataset, effectively distinguishing between different types of IoT device traffic. Meanwhile, the VAE model exhibits proficient anomaly detection capabilities by effectively capturing abnormal patterns in the data using reconstruction loss and KL divergence. The combined use of CNN and VAE models offers a comprehensive solution to cybersecurity challenges in IoT environments. Future research directions include exploring diverse IoT traffic data, practical deployment for validation, and further optimization of model structures and parameters to improve performance and applicability.

Keywords: IoT; Convolutional Neural Network; CNN; Variational Autoencoder; VAE; Anomaly Detection
Published: July 8, 2024
DOI: 10.54254/2755-2721/69/20241511
Volume: ACE Vol.69
pp. 64-70
Download PDF

References

  1. Haras, Maciej, and Thomas Skotnicki. "Thermoelectricity for IoT–A review." Nano Energy 54 (2018): 461-476.
  2. Laghari, A. A., Wu, K., Laghari, R. A., Ali, M., & Khan, A. A. (2021). A review and state of art of Internet of Things (IoT). Archives of Computational Methods in Engineering, 1-19.
  3. Lee, I., & Lee, K. (2015). The Internet of Things (IoT): Applications, investments, and challenges for enterprises. Business horizons, 58(4), 431-440.
  4. Khan, S., Muhammad, K., Mumtaz, S., Baik, S. W., & de Albuquerque, V. H. C. (2019). Energy-efficient deep CNN for smoke detection in foggy IoT environment. IEEE Internet of Things Journal, 6(6), 9237-9245.
  5. Khan, Salman, et al. "Energy-efficient deep CNN for smoke detection in foggy IoT environment." IEEE Internet of Things Journal 6.6 (2019): 9237-9245.
  6. Shin, M., Paik, W., Kim, B., & Hwang, S. (2019). An IoT platform with monitoring robot applying CNN-based context-aware learning. Sensors, 19(11), 2525.
  7. Hussain, F., Hussain, R., Hassan, S. A., & Hossain, E. (2020). Machine learning in IoT security: Current solutions and future challenges. IEEE Communications Surveys & Tutorials, 22(3), 1686-1721.
  8. Tahsien, S. M., Karimipour, H., & Spachos, P. (2020). Machine learning based solutions for security of Internet of Things (IoT): A survey. Journal of Network and Computer Applications, 161, 102630.
  9. Aldahiri, Amani, Bashair Alrashed, and Walayat Hussain. "Trends in using IoT with machine learning in health prediction system." Forecasting 3.1 (2021): 181-206.
  10. Kusner, Matt J., Brooks Paige, and José Miguel Hernández-Lobato. "Grammar variational autoencoder." International conference on machine learning. PMLR, 2017.
  11. Vahdat, Arash, and Jan Kautz. "NVAE: A deep hierarchical variational autoencoder." Advances in neural information processing systems 33 (2020): 19667-19679.