An Evaluation of Machine Learning Models for Threat Classification in IoT Devices

This study presents a comparative analysis of machine learning models for threat detection in Internet of Things (IoT) devices using the CICIoT2023 dataset.We evaluate Logistic Regression, K-Nearest Neighbors, and Random Forest algorithms across three classification granularities: binary (benign vs. attack), multiclass (8 categories), and fine-grained (34 subtypes).Our methodology incorporates comprehensive preprocessing including feature engineering, variance thresholding, correlation filtering, and dimensionality reduction.Performance assessment focuses on accuracy, precision, recall, and F1-score, along with model scalability when trained on small datasets and tested on larger ones.Results demonstrate that Random Forest consistently outperforms other models across all classification tasks (binary: F1 = 0.710, 8-class: F1 = 0.629, 34-class: F1 = 0.590).All models show performance degradation as classification granularity increases, with notable challenges in detecting BruteForce and Web attacks.Feature importance analysis reveals protocol-specific characteristics and TCP flag information as crucial for attack identification.Scalability testing indicates significant performance decline when models trained on limited data (0.1%) are applied to larger datasets (0.5%, 1%), though Random Forest demonstrates superior generalization capabilities.An unsupervised autoencoder approach achieves moderate success for anomaly detection (accuracy = 0.881) but struggles with recall (0.070).These findings highlight the trade-off between detection granularity and accuracy in IoT security implementations and suggest hierarchical classification approaches for resource-constrained environments.The study provides valuable guidance for selecting appropriate machine learning techniques for real-world IoT security applications.

Authors

Publication Details

Journal
OALib
Published
2025-01-01
DOI
https://doi.org/10.4236/oalib.1113551
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An Evaluation of Machine Learning Models for Threat Classification in IoT Devices

Gilbert Aimufua, Steve A. Adeshina, Habiba Musa, Muhammad Mamman Kontagora
OALib
Network Security and Intrusion Detection
article

An Evaluation of Machine Learning Models for Threat Classification in IoT Devices

Gilbert Aimufua, Steve A. Adeshina, Habiba Musa, Muhammad Mamman Kontagora
article en

Abstract

This study presents a comparative analysis of machine learning models for threat detection in Internet of Things (IoT) devices using the CICIoT2023 dataset.We evaluate Logistic Regression, K-Nearest Neighbors, and Random Forest algorithms across three classification granularities: binary (benign vs. attack), multiclass (8 categories), and fine-grained (34 subtypes).Our methodology incorporates comprehensive preprocessing including feature engineering, variance thresholding, correlation filtering, and dimensionality reduction.Performance assessment focuses on accuracy, precision, recall, and F1-score, along with model scalability when trained on small datasets and tested on larger ones.Results demonstrate that Random Forest consistently outperforms other models across all classification tasks (binary: F1 = 0.710, 8-class: F1 = 0.629, 34-class: F1 = 0.590).All models show performance degradation as classification granularity increases, with notable challenges in detecting BruteForce and Web attacks.Feature importance analysis reveals protocol-specific characteristics and TCP flag information as crucial for attack identification.Scalability testing indicates significant performance decline when models trained on limited data (0.1%) are applied to larger datasets (0.5%, 1%), though Random Forest demonstrates superior generalization capabilities.An unsupervised autoencoder approach achieves moderate success for anomaly detection (accuracy = 0.881) but struggles with recall (0.070).These findings highlight the trade-off between detection granularity and accuracy in IoT security implementations and suggest hierarchical classification approaches for resource-constrained environments.The study provides valuable guidance for selecting appropriate machine learning techniques for real-world IoT security applications.

OALibVol. 12(06)
Climate action
Openalex Percentile: Top 86%
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

An Evaluation of Machine Learning Models for Threat Classification in IoT Devices — Gilbert Aimufua, Steve A. Adeshina, et al. · OALib (2025) | TGRS Research Map | TGRS