[Paper Review] Smart IoT Security: Lightweight Machine Learning Techniques for Multi-Class Attack Detection in IoT Networks
The paper proposes lightweight ensemble machine learning approaches for multi-class IoT attack detection using CICIoT 2023 data, finding Decision Tree as the top performer with 99.56% accuracy and 99.62% F1.
The Internet of Things (IoT) is expanding at an accelerated pace, making it critical to have secure networks to mitigate a variety of cyber threats. This study addresses the limitation of multi-class attack detection of IoT devices and presents new machine learning-based lightweight ensemble methods that exploit its strong machine learning framework. We used a dataset entitled CICIoT 2023, which has a total of 34 different attack types categorized into 10 categories, and methodically assessed the performance of a substantial array of current machine learning techniques in our goal to identify the best-performing algorithmic choice for IoT application protection. In this work, we focus on ML classifier-based methods to address the biocharges presented by the difficult and heterogeneous properties of the attack vectors in IoT ecosystems. The best-performing method was the Decision Tree, achieving 99.56% accuracy and 99.62% F1, indicating this model is capable of detecting threats accurately and reliably. The Random Forest model also performed nearly as well, with an accuracy of 98.22% and an F1 score of 98.24%, indicating that ML methods excel in a scenario of high-dimensional data. These findings emphasize the promise of integrating ML classifiers into the protective defenses of IoT devices and provide motivations for pursuing subsequent studies towards scalable, keystroke-based attack detection frameworks. We think that our approach offers a new avenue for constructing complex machine learning algorithms for low-resource IoT devices that strike a balance between accuracy requirements and time efficiency. In summary, these contributions expand and enhance the knowledge of the current IoT security literature, establishing a solid baseline and framework for smart, adaptive security to be used in IoT environments.
Motivation & Objective
- Motivate secure IoT networks amid diverse cyber threats and resource constraints.
- Investigate lightweight ML ensemble methods for multi-class IoT intrusion detection.
- Identify the best-performing classifier under hyperparameter tuning.
- Evaluate models on the CICIoT 2023 dataset with 34 attack types across 10 categories.
Proposed method
- Utilize CICIoT 2023 dataset with 34 attack types across 10 categories.
- Preprocess data including handling missing values and encoding; split data 80/20 for training/testing.
- Evaluate five algorithms: Random Forest, Decision Tree, K-Nearest Neighbor, Gradient Boosting, AdaBoost.
- Apply GridSearchCV for hyperparameter tuning with five-fold cross-validation.
- Compute precision, recall, F1 score, and accuracy; analyze ROC/AUC and confusion matrices.

Experimental results
Research questions
- RQ1Which lightweight ML classifier provides the highest accuracy and F1 in multi-class IoT attack detection on CICIoT 2023?
- RQ2How do classical ML models compare in precision, recall, F1, and ROC metrics across 34 attack types?
- RQ3What is the effect of hyperparameter tuning on model performance for IoT security tasks?
- RQ4Can low-resource IoT devices achieve high-accuracy intrusion detection using simple models?
Key findings
- Decision Tree achieves the highest accuracy (99.56%) and F1 (99.62%).
- Random Forest also performs strongly with 98.22% accuracy and 98.24% F1.
- Gradient Boosting attains 98.19% accuracy and 0.982 F1, AdaBoost 96.26% accuracy, and KNN 96.11% accuracy.
- ROC AUC for Decision Tree is 1.00 and for Random Forest is 0.99, indicating strong discriminative ability.
- Comparisons with prior studies show the proposed DT model as the best among tested approaches on the CICIoT 2023 dataset.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.