Application of Machine Learning Techniques for Traffic Anomaly Detection in IoT Environments

The current work proposed a modular solution based on data analysis from IoT networks operating with the MQTT protocol through intrusion detection agents linked to Machine Learning techniques for data streams. This research proposes an anomaly detection system in IoT environments of different infrastructures using the MQTT protocol and two machine learning algorithms. It also evaluates the integration between machine learning techniques and signature-based intrusion detection systems. This solution can detect unknown attacks by integrating machine learning techniques and a signature-based intrusion detection system. To evaluate the proposal in different networks, data collection initially used a pre-existing dataset containing several classes of MQTT attacks. These data were generated in a network simulation in the study. Communication data were also collected from a simulated network. Network information was captured by a dedicated collector agent programmed in Python. The model was evaluated using five metrics: Precision, Recall, F1-score, Accuracy and AUC ROC. The proposed models achieved in standard data, which becomes interesting in the defense of IoT networks because several SDIs suffer from many false positives. The accuracy of the applied models maintained an average between 75% and 82%, and standard data recall was obtained above 80% and attacks above 60% using the online approach. Unlike related works that use an offline approach, the online model can be more scalable and usable in real-time applications. The execution of the two proposed models in the two different networks presented similar behaviors due to the defined parameters. Through the results, it was possible to analyze the performance of the proposed solution, which, despite having achieved low overall accuracy, detected anomalies with an average accuracy rate of 79%. In addition, the online learning technique solves the problem of retraining and domain change in traditional Machine Learning techniques.

Authors

Institutions

Publication Details

Journal
journal of the college of basic education
Published
2026-11-25
DOI
https://doi.org/10.35950/cbej.v32i139.16462
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
NOV
article

Application of Machine Learning Techniques for Traffic Anomaly Detection in IoT Environments

Lamia Hassan Rahef, Asmaa Waleed Abdulqahar, Jalal Qais Jameel, Osamah Waleed Abdulqahar
journal of the college of basic education
Network Security and Intrusion Detection
article

Application of Machine Learning Techniques for Traffic Anomaly Detection in IoT Environments

Lamia Hassan Rahef, Asmaa Waleed Abdulqahar, Jalal Qais Jameel, Osamah Waleed Abdulqahar
article en

Abstract

The current work proposed a modular solution based on data analysis from IoT networks operating with the MQTT protocol through intrusion detection agents linked to Machine Learning techniques for data streams. This research proposes an anomaly detection system in IoT environments of different infrastructures using the MQTT protocol and two machine learning algorithms. It also evaluates the integration between machine learning techniques and signature-based intrusion detection systems. This solution can detect unknown attacks by integrating machine learning techniques and a signature-based intrusion detection system. To evaluate the proposal in different networks, data collection initially used a pre-existing dataset containing several classes of MQTT attacks. These data were generated in a network simulation in the study. Communication data were also collected from a simulated network. Network information was captured by a dedicated collector agent programmed in Python. The model was evaluated using five metrics: Precision, Recall, F1-score, Accuracy and AUC ROC. The proposed models achieved in standard data, which becomes interesting in the defense of IoT networks because several SDIs suffer from many false positives. The accuracy of the applied models maintained an average between 75% and 82%, and standard data recall was obtained above 80% and attacks above 60% using the online approach. Unlike related works that use an offline approach, the online model can be more scalable and usable in real-time applications. The execution of the two proposed models in the two different networks presented similar behaviors due to the defined parameters. Through the results, it was possible to analyze the performance of the proposed solution, which, despite having achieved low overall accuracy, detected anomalies with an average accuracy rate of 79%. In addition, the online learning technique solves the problem of retraining and domain change in traditional Machine Learning techniques.

journal of the college of basic educationVol. 32(139)
Mustansiriyah University (IQ)
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.

Laika access coming soon