journal article·2023-06-01Open access

Improving Reliability for Detecting Anomalies in the MQTT Network by Applying Correlation Analysis for Feature Selection Using Machine Learning Techniques

Imran, Megat Farez Azril Zuhairi, Syed Mubashir Ali, Zeeshan Shahid, Muhammad Mansoor Alam, Mazliham Mohd Su’ud

Applied Sciences· Volume 13· Issue 11

Abstract

Anomaly detection (AD) has captured a significant amount of focus from the research field in recent years, with the rise of the Internet of Things (IoT) application. Anomalies, often known as outliers, are defined as the discovery of anomalous occurrences or observations that differ considerably from the mainstream of the data. The IoT which is described as a network of Internet-based digital sensors that continuously generate massive volumes of data and use to communicate with one another theMessage Queuing Telemetry Transport (MQTT) protocol. Brute-force, Denial-of-Service (DoS), Malformed, Flood, and Slowite attacks are the most common in theMQTT network. One of the significant factors in IoT AD is the time consumed to predict an attack and take preemptive measures. For instance, if an attack is detected late, the loss of attack is irreversible. This paper investigates the time to detect an attack using machine learning approaches and proposes a novel approach that applies correlation analysis to reduce the training and testing time of these algorithms. The new approach has been evaluated on Random Forest, Decision Tree, Naïve Bayes, Multi-Layer Perceptron, Artificial Neural Network, Logistic Regression, and Gradient Boost. The findings indicate that the correlation analysis is significantly beneficial in the process of feature engineering, primarily to determine the most relevant features in the MQTT dataset. This is, to the best of our knowledge, the first study on MQTTset that reduces the prediction time for DoS 0.92 (95% CI −0.378, 2.22) reduced to 0.77 (95% CI −0.414, 1.97) and for Malformed 2.92 (95% CI −2.6, 8.44) reduced to 0.49 (95% CI −0.273, 1.25).
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Anomaly Detection Techniques and Applications · Network Security and Intrusion Detection · Smart Grid Security and Resilience

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Malaysian Institute of Information Technology (MIIT), Universiti Kuala Lumpur, Kuala Lumpur 50250, Malaysia

Department of Computer Science, DHA Suffa University (DSU), Karachi 75500, Pakistan

College of Computing and Information Sciences, Karachi Institute of Economics and Technology (KIET), Karachi 75190, Pakistan

Department of Electrical Engineering, Faculty of Engineering Practices and Sciences, Nazeer Hussain University, Karachi 75190, Pakistan

Faculty of Computing and Informatics, Multimedia University, Cyberjaya 63100, Malaysia

Faculty of Computing, Riphah International University, Islamabad 46000, Pakistan

Faculty of Engineering and Information Technology, School of Computer Science, University of Technology Sydney, Sydney, NSW 2007, Australia

Funding

Multimedia University

References (85)

Show source-provided references
1. Benaddi, H., Jouhari, M., Ibrahimi, K., Ben Othman, J., and Amhoud, E.M. (2022). Anomaly Detection in Industrial IoT Using Distributional Reinforcement Learning and Generative Adversarial Networks. Sensors, 22.10.3390/s22218085 ↗
2. Zhao, W., Yang, S., and Luo, X. (2020, January 14–16). On Threat Analysis of IoT-Based Systems: A Survey. Proceedings of the 2020 IEEE International Conference on Smart Internet of Things (SmartIoT), Beijing, China.10.1109/SmartIoT49966.2020.00038 ↗
3. An Overview of Internet of Things (IoT) and Data Analytics in Agriculture: Benefits and Challenges10.1109/JIOT.2018.2844296 ↗
4. A roadmap for security challenges in the Internet of Things10.1016/j.dcan.2017.04.003 ↗
5. Belgaum, M.R., Soomro, S., Alansari, Z., Musa, S., Alam, M., and Su’ud, M.M. (December, January 29). Challenges: Bridge between Cloud and IoT. Proceedings of the 2017 4th IEEE International Conference on Engineering Technologies and Applied Sciences (ICETAS), Salmabad, Bahrain.10.1109/ICETAS.2017.8277844 ↗
6. Lawrence, S., Giles, C., and Tsoi, A. (1997, January 27–31). Lessons in Neural Network Training: Overfitting May Be Harder than Expected. Proceedings of the 14th National Conference on Artificial Intelligence, Menlo Park, CA, USA.
7. A dynamic VM consolidation approach based on load balancing using Pearson correlation in cloud computing10.1007/s11227-020-03494-6 ↗
8. Vaccari, I., Chiola, G., Aiello, M., Mongelli, M., and Cambiaso, E. (2020). MQTTset, a New Dataset for Machine Learning Techniques on MQTT. Sensors, 20.10.3390/s20226578 ↗
9. Khan, M.A.U.D., Uddin, M.F., and Gupta, N. (2014, January 3–5). Seven V’s of Big Data Understanding Big Data to Extract Value. Proceedings of the 2014 Zone 1 Conference of the American Society for Engineering Education, Bridgeport, CT, USA.10.1109/ASEEZone1.2014.6820689 ↗
10. Analysis of Green IoT10.1088/1742-6596/1874/1/012012 ↗
11. Yassein, M.B., Shatnawi, M.Q., Aljwarneh, S., and Al-Hatmi, R. (2017, January 8–10). Internet of Things: Survey and Open Issues of MQTT Protocol. Proceedings of the 2017 International Conference on Engineering & MIS (ICEMIS), Monastir, Tunisia.10.1109/ICEMIS.2017.8273112 ↗
12. Thangavel, D., Ma, X., Valera, A., Tan, H.X., and Tan, C.K.Y. (2014, January 21–24). Performance Evaluation of MQTT and CoAP via a Common Middleware. Proceedings of the 2014 IEEE Ninth International Conference on Intelligent Sensors, Sensor Networks and Information Processing (ISSNIP), Singapore.10.1109/ISSNIP.2014.6827678 ↗
13. Internet of Things: A Survey on Enabling Technologies, Protocols, and Applications10.1109/COMST.2015.2444095 ↗
14. Mun, D.H., Dinh, M.L., and Kwon, Y.W. (2016, January 10–14). An Assessment of Internet of Things Protocols for Resource-Constrained Applications. Proceedings of the 2016 IEEE 40th Annual Computer Software and Applications Conference (COMPSAC), Atlanta, GA, USA.10.1109/COMPSAC.2016.51 ↗
15. Thombre, S., Ul Islam, R., Andersson, K., and Hossain, M.S. (2016, January 10–14). Performance Analysis of an IP Based ProtocolSstack for WSNs. Proceedings of the 2016 IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS), San Francisco, CA, USA.10.1109/INFCOMW.2016.7562102 ↗
16. Effective Anomaly Detection Using Deep Learning in IoT Systems10.1155/2021/9054336 ↗
17. Selection of effective machine learning algorithm and Bot-IoT attacks traffic identification for internet of things in smart city10.1016/j.future.2020.02.017 ↗
18. Said, A.M., Yahyaoui, A., and Abdellatif, T. (2021). Efficient Anomaly Detection for Smart Hospital IoT Systems. Sensors, 21.10.3390/s21041026 ↗
19. Healthchain: A Blockchain-Based Privacy Preserving Scheme for Large-Scale Health Data10.1109/JIOT.2019.2923525 ↗
20. Chaitanya, K., and Narayanan, S. (2023, January 18–19). Security and Privacy in Wireless Sensor Networks Using Intrusion Detection Models to Detect DDOS and Drdos Attacks: A Survey. Proceedings of the 2023 IEEE International Students’ Conference on Electrical, Electronics and Computer Science (SCEECS), Bhopal, India.10.1109/SCEECS57921.2023.10063057 ↗
21. Alsoufi, M.A., Razak, S., Siraj, M.M., Nafea, I., Ghaleb, F.A., Saeed, F., and Nasser, M. (2021). Anomaly-Based Intrusion Detection Systems in IoT Using Deep Learning: A Systematic Literature Review. Appl. Sci., 11.10.3390/app11188383 ↗
22. Secure Signature-Based Authenticated Key Establishment Scheme for Future IoT Applications10.1109/ACCESS.2017.2676119 ↗
23. Yahyaoui, A., Abdellatif, T., and Attia, R. (2019, January 24–28). Hierarchical Anomaly Based Intrusion Detection and Localization in IoT. Proceedings of the 2019 15th International Wireless Communications & Mobile Computing Conference (IWCMC), Tangier, Morocco.10.1109/IWCMC.2019.8766574 ↗
24. Machine learning: Trends, perspectives, and prospects10.1126/science.aaa8415 ↗
25. A graph neural network method for distributed anomaly detection in IoT
26. A Machine Learning-Based Lightweight Intrusion Detection System for the Internet of Things
27. Al-amri, R., Murugesan, R.K., Man, M., Abdulateef, A.F., Al-Sharafi, M.A., and Alkahtani, A.A. (2021). A Review of Machine Learning and Deep Learning Techniques for Anomaly Detection in IoT Data. Appl. Sci., 11.10.3390/app11125320 ↗
28. Using Machine Learning to Build a Classification Model for IoT Networks to Detect Attack Signatures10.5121/ijcnc.2020.12607 ↗
29. Machine Learning Based Intrusion Detection for IoT Botnet10.18178/ijmlc.2021.11.6.1068 ↗
30. The Internet of Things (IoT) in Healthcare: Taking Stock and Moving Forward10.1016/j.iot.2023.100721 ↗
31. Godi, B., Viswanadham, S., Muttipati, A.S., Prakash Samantray, O., and Gadiraju student, S.R. (2020, January 13–14). E-Healthcare Monitoring System using IoT with Machine Learning Approaches. Proceedings of the 2020 International Conference on Computer Science, Engineering and Applications (ICCSEA), Gunupur, India.10.1109/ICCSEA49143.2020.9132937 ↗
32. Effective and efficient network anomaly detection system using machine learning algorithm10.11591/eei.v8i1.1387 ↗
33. A Systematic Review of Human–Computer Interaction and Explainable Artificial Intelligence in Healthcare With Artificial Intelligence Techniques10.1109/ACCESS.2021.3127881 ↗
34. Larriva-Novo, X., Vega-Barbas, M., Villagrá, V.A., Rivera, D., Álvarez Campana, M., and Berrocal, J. (2020). Efficient Distributed Preprocessing Model for Machine Learning-Based Anomaly Detection over Large-Scale Cybersecurity Datasets. Appl. Sci., 10.10.3390/app10103430 ↗
35. Evolution of Internet of Things (IoT) and its significant impact in the field of Precision Agriculture10.1016/j.compag.2018.12.039 ↗
36. Gelenbe, E., Campegiani, P., Czachórski, T., Katsikas, S.K., Komnios, I., Romano, L., and Tzovaras, D. (2018). Security in Computer and Information Sciences: First International ISCIS Security Workshop 2018, Euro-CYBERSEC 2018, London, UK, 26–27 February 2018, Springer Nature. Revised Selected Papers.10.1007/978-3-319-95189-8 ↗
37. Defending ON–OFF attacks using light probing messages in smart sensors for industrial communication systems10.1109/TII.2018.2836150 ↗
38. Graham, J., Hieb, J., and Naber, J. (2016, January 8–10). Improving Cybersecurity for Industrial Control Systems. Proceedings of the 2016 IEEE 25th International Symposium on Industrial Electronics (ISIE), Santa Clara, CA, USA.10.1109/ISIE.2016.7744960 ↗
39. Digital watermarking for telltale tamper proofing and authentication10.1109/5.771070 ↗
40. Ukil, A., Bandyoapdhyay, S., Puri, C., and Pal, A. (2016, January 23–25). IoT Healthcare Analytics: The Importance of Anomaly Detection. Proceedings of the 2016 IEEE 30th International Conference on Advanced Information Networking and Applications (AINA), Crans-Montana, Switzerland.10.1109/AINA.2016.158 ↗
41. Evaluating Security of Low-Power Internet of Things Networks10.12785/ijcds/080202 ↗
42. Vaccari, I., Aiello, M., and Cambiaso, E. (2020). SlowITe, a Novel Denial of Service Attack Affecting MQTT. Sensors, 20.10.3390/s20102932 ↗
43. Komar, M., Dorosh, V., Hladiy, G., and Sachenko, A. (2018, January 8–12). Deep Neural Network for Detection of Cyber Attacks. Proceedings of the 2018 IEEE First International Conference on System Analysis & Intelligent Computing (SAIC), Kiev, Ukraine.10.1109/SAIC.2018.8516753 ↗
44. Alqahtani, H., Sarker, I.H., Kalim, A., Minhaz Hossain, S.M., Ikhlaq, S., and Hossain, S. (2020). Proceedings of the Computing Science, Communication and Security: First International Conference, COMS2 2020, Gujarat, India, 26–27 March 2020, Springer. Revised Selected Papers 1.
45. Amor, N.B., Benferhat, S., and Elouedi, Z. (2004, January 14–17). Naive Bayes vs. Decision Trees in Intrusion Detection Systems. Proceedings of the 2004 ACM Symposium on Applied Computing—SAC ’04, Nicosia, Cyprus.10.1145/967900.967989 ↗
46. A machine learning-based intrusion detection for detecting internet of things network attacks10.1016/j.aej.2022.02.063 ↗
47. Bourou, S., El Saer, A., Velivassaki, T.H., Voulkidis, A., and Zahariadis, T. (2021). A review of tabular data synthesis using GANs on an IDS dataset. Information, 12.10.3390/info12090375 ↗
48. Alhowaide, A., Alsmadi, I., and Tang, J. (2021). Towards the design of real-time autonomous IoT NIDS. Clust. Comput., 1–14.10.1007/s10586-021-03231-5 ↗
49. Liu, J., Kantarci, B., and Adams, C. (2020, January 13). Machine Learning-Driven Intrusion Detection for Contiki-NG-Based IoT Networks Exposed to NSL-KDD Dataset. Proceedings of the 2nd ACM Workshop on Wireless Security and Machine Learning, Linz, Austria.10.1145/3395352.3402621 ↗
50. Performance evaluation of Botnet DDoS attack detection using machine learning10.1007/s12065-019-00310-w ↗
51. An Efficient Security Model for Industrial Internet of Things (IIoT) System Based on Machine Learning Principles
52. Improving IoT Security using Lightweight Based Deep Learning Protection Model10.25130/tjes.30.1.12 ↗
53. Senmqtt-set: An intelligent intrusion detection in iot-mqtt networks using ensemble multi cascade features10.1109/ACCESS.2022.3161566 ↗
54. Ullah, I., and Mahmoud, Q.H. (2022, January 8–10). An Anomaly Detection Model for IoT Networks Based on Flow and Flag Features Using a Feed-Forward Neural Network. Proceedings of the 2022 IEEE 19th Annual Consumer Communications and Networking Conference (CCNC), Las Vegas, NV, USA.10.1109/CCNC49033.2022.9700597 ↗
55. Han, H., Kim, H., and Kim, Y. (2022). Correlation between Deep Neural Network Hidden Layer and Intrusion Detection Performance in IoT Intrusion Detection System. Symmetry, 14.10.3390/sym14102077 ↗
56. An efficient intrusion detection system for MQTT-IoT using enhanced chaotic salp swarm algorithm and LightGBM10.1007/s10207-022-00611-9 ↗
57. FELIDS: Federated learning-based intrusion detection system for agricultural Internet of Things10.1016/j.jpdc.2022.03.003 ↗
58. An unsupervised generative adversarial network based-host intrusion detection system for internet of things devices
59. Federated deep learning for cyber security in the internet of things: Concepts, applications, and experimental analysis10.1109/ACCESS.2021.3118642 ↗
60. Bhagat Patil, A.R., and Thakur, N.V. (2019). Proceedings of the Third International Congress on Information and Communication Technology: ICICT 2018, Springer.
61. Palmieri, A., Prem, P., Ranise, S., Morelli, U., and Ahmad, T. (2019, January 8–13). MQTTSA: A Tool for Automatically Assisting the Secure Deployments of MQTT Brokers. Proceedings of the 2019 IEEE World Congress on Services (SERVICES), Milan, Italy.10.1109/SERVICES.2019.00023 ↗
62. Denial of service in sensor networks10.1109/MC.2002.1039518 ↗
63. Su, S., Sun, Y., Gao, X., Qiu, J., and Tian, Z. (2019). A Correlation-Change Based Feature Selection Method for IoT Equipment Anomaly Detection. Appl. Sci., 9.10.3390/app9030437 ↗
64. Kim, D., and Heo, T.Y. (2022). Anomaly Detection with Feature Extraction Based on Machine Learning Using Hydraulic System IoT Sensor Data. Sensors, 22.10.3390/s22072479 ↗
65. Kumar, S., and Chong, I. (2018). Correlation Analysis to Identify the Effective Data in Machine Learning: Prediction of Depressive Disorder and Emotion States. Int. J. Environ. Res. Public Health, 15.10.3390/ijerph15122907 ↗
66. Exploratory data analysis using Python
67. Comparative Analysis of Machine Learning based Filtering Techniques using MovieLens dataset10.1016/j.procs.2021.10.075 ↗
68. Investigating Brute Force Attack Patterns in IoT Network10.1155/2019/4568368 ↗
69. Nasir, I.M., Khan, M.A., Yasmin, M., Shah, J.H., Gabryel, M., Scherer, R., and Damaševičius, R. (2020). Pearson Correlation-Based Feature Selection for Document Classification Using Balanced Training. Sensors, 20.10.3390/s20236793 ↗
70. Pearson Correlation Coefficient
71. Nettleton, D. (2014). Commercial Data Mining, Elsevier.
72. Causation and Pearson’s correlation coefficient10.1177/0145482X1510900311 ↗
73. Development of video-based emotion recognition using deep learning with Google Colab10.12928/telkomnika.v18i5.16717 ↗
74. Ho, T.K. (1995, January 14–16). Random Decision Forests. Proceedings of the 3rd International Conference on Document Analysis and Recognition, Montreal, QC, Canada.
75. A Deep Neural Network Model for the Detection and Classification of Emotions from Textual Content10.1155/2022/8221121 ↗
76. Decision Trees: A Recent Overview10.1007/s10462-011-9272-4 ↗
77. Elmrabit, N., Zhou, F., Li, F., and Zhou, H. (2020, January 15–19). Evaluation of Machine Learning Algorithms for Anomaly Detection. Proceedings of the 2020 International Conference on Cyber Security and Protection of Digital Services (Cyber Security), Dublin, Ireland.10.1109/CyberSecurity49315.2020.9138871 ↗
78. Khan, T., Alam, M., Shaikh, F.A., Khan, S., Kadir, K., Mazliham, M., Shahid, Z., and Yahya, M. (2019, January 20–23). Flash Floods Prediction using Real Time data: An Implementation of ANN-PSO with less False Alarm. Proceedings of the 2019 IEEE International Instrumentation and Measurement Technology Conference (I2MTC), Auckland, New Zealand.10.1109/I2MTC.2019.8826825 ↗
79. Khan, T.A., Alam, M., Shahid, Z., Ahmed, S.F., and Mazliham, M. (2018, January 22–23). Artificial Intelligence Based Multi-Modal Sensing for Flash Flood Investigation. Proceedings of the 2018 IEEE 5th International Conference on Engineering Technologies and Applied Sciences (ICETAS), Bangkok, Thailand.10.1109/ICETAS.2018.8629147 ↗
80. Diro, A., Chilamkurti, N., Nguyen, V.D., and Heyne, W. (2021). A Comprehensive Study of Anomaly Detection Schemes in IoT Networks Using Machine Learning Algorithms. Sensors, 21.10.3390/s21248320 ↗
81. Logistic regression and artificial neural network classification models: A methodology review10.1016/S1532-0464(03)00034-0 ↗
82. Gradient Boosting Feature Selection With Machine Learning Classifiers for Intrusion Detection on Power Grids10.1109/TNSM.2020.3032618 ↗
83. Khan, T.A., Shahid, Z., Alam, M., Su’ud, M., and Kadir, K. (2019, January 14–15). Early Flood Risk Assessment Using Machine Learning: A Comparative Study of SVM, Q-SVM, K-NN and LDA. Proceedings of the 2019 13th International Conference on Mathematics, Actuarial Science, Computer Science and Statistics (MACS), Karachi, Pakistan.10.1109/MACS48846.2019.9024796 ↗
84. Keilwagen, J., Grosse, I., and Grau, J. (2014). Area under precision-recall curves for weighted and unweighted data. PLoS ONE, 9.10.1371/journal.pone.0092209 ↗
85. Predicting host CPU utilization in the cloud using evolutionary neural networks10.1016/j.future.2018.03.040 ↗