Evaluation and Detection of Cyberattack in IoT-Based Smart City Networks Using Machine Learning on the UNSW-NB15 Dataset

Authors

  • Mubashir Ali Whitecliffe, Auckland, New Zealand
  • Shahbaz Pervez Whitecliffe, Auckland, New Zealand
  • Seyed Ebrahim Hosseini Whitecliffe, Auckland, New Zealand
  • Muhammad Kashif Siddu University of Faisalabad, Faisalabad, Pakistan https://orcid.org/0009-0005-7472-5797

DOI:

https://doi.org/10.3991/ijoe.v21i02.52671

Keywords:

IoT, smart city, network intrusion detection, cyberattacks, Decision Tree Classifier, machine learning, deep learning, UNSW-NB15 dataset, DoS, Multi-Layer Perceptron, Worms, Backdoor, K-Nearest-Neighbor Classifier, Linear Regression, Linear Support Vector Machine, Random Forest, data preprocessing, feature selection, binary classification, Logistic Regression, multi-class classification

Abstract


With the proliferation of Internet of Things (IoT) devices across various applications, for example, smart homes, drones, and healthcare, the security vulnerabilities have also increased, necessitating robust network intrusion detection systems (NIDS). This study focuses on the classification of cyberattacks, including denial of service (DoS), worms, and backdoor attacks, from normal network traffic using the UNSW-NB15 dataset. machine learning (ML) and deep learning (DL) models, such as decision tree (DT) classifier, K-nearest-neighbor (KNN) classifier, linear regression, linear support vector machine, logistic regression (LR), multi-layer perceptron (MLP), and random forest (RF), were employed for both binary and multi-class classification. Data preprocessing involved handling null values, one-hot encoding categorical variables, and normalizing numerical features. Feature selection was performed using the Pearson correlation coefficient method, reducing the dataset attributes significantly. The models demonstrated high accuracy in detecting anomalies, with the RF classifier achieving the highest accuracy of 98.64% for binary classification and notable performance across multi-class classifications. This study underscores the effectiveness of ML techniques in enhancing IoT network security and offers comprehensive insights.

Downloads

Published

2025-02-17

How to Cite

Ali, M., Pervez, S., Hosseini, S. E., & Siddu, M. K. (2025). Evaluation and Detection of Cyberattack in IoT-Based Smart City Networks Using Machine Learning on the UNSW-NB15 Dataset. International Journal of Online and Biomedical Engineering (iJOE), 21(02), pp. 157–170. https://doi.org/10.3991/ijoe.v21i02.52671

Issue

Section

Papers