Application of Machine Learning Techniques for Traffic Anomaly Detection in IoT Environments
Main Article Content
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.
Article Details

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.