Resource-Efficient Traffic Classification Using Feature Selection for Message Queuing Telemetry Transport-Internet of Things Network-Based Security Attacks
Source abstract
Abstract
The rapid proliferation of IoT devices necessitates robust security measures to protect against malicious traffic. Anomaly detection, primarily through traffic classification supported by artificial intelligence and machine learning techniques, has emerged as a practical approach to enhancing IoT network security. Effective traffic classification requires efficient feature selection, which is critical for resource-constrained IoT devices with limited computational power, memory, and energy. This study proposes Statistical Moments Difference Thresholding, a feature selection method leveraging statistical central moments to identify significant features distinguishing between legitimate and malicious traffic. The aim is to reduce feature dimensionality while maintaining high detection accuracy. Validated on the MQTTset dataset through binary and multiclass classification using seven ML algorithms, the results highlight its ability to enhance computational efficiency without compromising performance, showcasing its potential in real-world IoT security applications.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Network Security and Intrusion Detection · Internet Traffic Analysis and Secure E-voting · Advanced Malware Detection Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Electronics and Computers, Transilvania University of Brasov, 500036 Brasov, Romania
Department of Electrical and Electronic Engineering, University of Cagliari, 09123 Cagliari, Italy
Research Unit of Cagliari, Consorzio Nazionale Interuniversitario per le Telecomunicazioni (CNIT), 09123 Cagliari, Italy
References (56)
Show source-provided references
1. Internet of things in the context of industry 4.0: An overview10.37335/ijek.v7i1.84 ↗
2. Naik, N. (2017, January 11–13). Choice of effective messaging protocols for IoT systems: MQTT, CoAP, AMQP and HTTP. Proceedings of the 2017 IEEE International Systems Engineering Symposium (ISSE), Vienna, Austria.10.1109/SysEng.2017.8088251 ↗
3. Investigating Messaging Protocols for the Internet of Things (IoT)10.1109/ACCESS.2020.2993363 ↗
4. Al Hanif, A., and Ilyas, M. (2024). Effective Feature Engineering Framework for Securing MQTT Protocol in IoT Environments. Sensors, 24.10.3390/s24061782 ↗
5. Securing MQTT protocol for IoT environment using IDS based on ensemble learning10.1007/s10207-023-00681-3 ↗
6. Sadio, O., Ngom, I., and Lishou, C. (2019, January 22–25). Lightweight Security Scheme for MQTT/MQTT-SN Protocol. Proceedings of the 2019 Sixth International Conference on Internet of Things: Systems, Management and Security (IOTSMS), Granada, Spain.10.1109/IOTSMS48152.2019.8939177 ↗
7. Chen, F., Huo, Y., Zhu, J., and Fan, D. (2020, January 6–8). A Review on the Study on MQTT Security Challenge. Proceedings of the 2020 IEEE International Conference on Smart Cloud (SmartCloud), Washington, DC, USA.10.1109/SmartCloud49737.2020.00032 ↗
8. Securing the IoT Application Layer from an MQTT Protocol Perspective: Challenges and Research Prospects10.1109/COMST.2024.3372630 ↗
9. MQTT Organization (2025, January 25). MQTT—The Standard for IoT Messaging. Available online: https://mqtt.org/.
10. A Novel Architectural Framework on IoT Ecosystem, Security Aspects and Mechanisms: A Comprehensive Survey10.1109/ACCESS.2022.3207472 ↗
11. HiveMQ (2025, January 26). Securing MQTT Systems—MQTT Security Fundamentals. Available online: https://www.hivemq.com/blog/mqtt-security-fundamentals-securing-mqtt-systems/.
12. Securing MQTT Ecosystem: Exploring Vulnerabilities, Mitigations, and Future Trajectories10.1109/ACCESS.2024.3412030 ↗
13. Husnain, M., Hayat, K., Cambiaso, E., Fayyaz, U.U., Mongelli, M., Akram, H., Abbas, S.G., and Shah, G.A. (2022). Preventing MQTT Vulnerabilities Using IoT-Enabled Intrusion Detection System. Sensors, 22.10.3390/s22020567 ↗
14. Tuyishime, E., Radu, F., Cotfas, P., Cotfas, D., Balan, T., and Rekeraho, A. (2024, January 27–28). Online Laboratory Access Control with Zero Trust Approach: Twingate Use Case. Proceedings of the 2024 16th International Conference on Electronics, Computers and Artificial Intelligence (ECAI), Iasi, Romania.10.1109/ECAI61503.2024.10607562 ↗
15. SANS Institute (2025, January 13). Exposed Industrial Control System Remote Services: A Threat to Critical Infrastructure|SANS Webcast. Available online: https://www.sans.org/webcasts/exposed-industrial-control-system-remote-services-a-threat-to-critical-infrastructure/.
16. Multiclass Classification Procedure for Detecting Attacks on MQTT-IoT Protocol10.1155/2019/6516253 ↗
17. Selecting critical features for data classification based on machine learning methods10.1186/s40537-020-00327-4 ↗
18. Hardware-Assisted Machine Learning in Resource-Constrained IoT Environments for Security: Review and Future Prospective10.1109/ACCESS.2022.3179047 ↗
19. ELIDS: Ensemble Feature Selection for Lightweight IDS against DDoS Attacks in Resource-Constrained IoT Environment10.1016/j.future.2024.05.013 ↗
20. CNR IEIIT (2025, January 05). MQTTset. Available online: https://www.kaggle.com/datasets/cnrieiit/mqttset.
21. Capturing low-rate DDoS attack based on MQTT protocol in software Defined-IoT environment10.1016/j.array.2023.100316 ↗
22. Hindy, H., Bayne, E., Bures, M., Atkinson, R., Tachtatzis, C., and Bellekens, X. (2020). Machine Learning Based IoT Intrusion Detection System: An MQTT Case Study (MQTT-IoT-IDS2020 Dataset). arXiv.10.1007/978-3-030-64758-2_6 ↗
23. 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 ↗
24. Ramasubramanian, K., and Singh, A. (2019). Data Preparation and Exploration. Machine Learning Using R: With Time Series and Industry-Based Use Cases in R, Apress.10.1007/978-1-4842-4215-5 ↗
25. Wongsuphasawat, K., Liu, Y., and Heer, J. (2019). Goals, Process, and Challenges of Exploratory Data Analysis: An Interview Study. arXiv.
26. Big data preprocessing: Methods and prospects10.1186/s41044-016-0014-0 ↗
27. Tuyishime, E. (2025, April 04). Traffic Classification for MQTT IoT Network-Based Security Attacks. Available online: https://github.com/emmanuel-tuyishime/Traffic-Classification-for-MQTT-IoT-Network-Based-Security-Attacks-.
28. A survey on feature selection methods10.1016/j.compeleceng.2013.11.024 ↗
29. Li, T. (2024). Robust estimations from distribution structures: II. Central Moments. arXiv.10.31219/osf.io/ux8ps ↗
30. L-moments and C-moments10.1007/s004770050004 ↗
31. Kaufmann, J., and Schering, A. (2007). Analysis of Variance ANOVA. Wiley Encyclopedia of Clinical Trials, John Wiley & Sons, Ltd.10.1002/9780471462422.eoct017 ↗
32. Ivie, J., and MacKay, A. (2021). Measures of Variability, Tulsa Community College.
33. Zwillinger, D., and Kokoska, S. (1999). CRC Standard Probability and Statistics Tables and Formulae, CRC Press.10.1201/9780367802417 ↗
34. On Some Statistics for Testing the Skewness in a Population: An Empirical Study
35. Yusoff, S.b., and Bee Wah, Y. (2012, January 10–12). Comparison of conventional measures of skewness and kurtosis for small sample size. Proceedings of the 2012 International Conference on Statistics in Science, Business and Engineering (ICSSBE), Langkawi, Malaysia.
36. Raju, V.N.G., Lakshmi, K.P., Jain, V.M., Kalidindi, A., and Padma, V. (2020, January 20–22). Study the Influence of Normalization/Transformation process on the Accuracy of Supervised Classification. Proceedings of the 2020 Third International Conference on Smart Systems and Inventive Technology (ICSSIT), Tirunelveli, India.10.1109/ICSSIT48917.2020.9214160 ↗
37. Investigating the impact of data normalization on classification performance10.1016/j.asoc.2019.105524 ↗
38. Raschka, S. (2020). Model Evaluation, Model Selection, and Algorithm Selection in Machine Learning. arXiv.
39. (2025, January 09). GridSearchCV. Available online: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html.
40. How to design the fair experimental classifier evaluation10.1016/j.asoc.2021.107219 ↗
41. O’Malley, T., Bursztein, E., Long, J., Chollet, F., Jin, H., and Invernizzi, L. (2025, April 09). KerasTuner. Available online: https://github.com/keras-team/keras-tuner.
42. Joshi, S., Owens, J.A., Shah, S., and Munasinghe, T. (2021, January 15–18). Analysis of Preprocessing Techniques, Keras Tuner, and Transfer Learning on Cloud Street image data. Proceedings of the 2021 IEEE International Conference on Big Data (Big Data), Orlando, FL, USA.10.1109/BigData52589.2021.9671878 ↗
43. Shawki, N., Nunez, R.R., Obeid, I., and Picone, J. (2021, January 4). On Automating Hyperparameter Optimization for Deep Learning Applications. Proceedings of the 2021 IEEE Signal Processing in Medicine and Biology Symposium (SPMB), Philadelphia, PA, USA.10.1109/SPMB52430.2021.9672266 ↗
44. Prakash, K.B., Kannan, R., Alexander, S.A., and Kanagachidambaresan, G.R. (2021). Keras and TensorFlow: A Hands-On Experience. Advanced Deep Learning for Engineers and Scientists: A Practical Approach, Springer International Publishing.10.1007/978-3-030-66519-7 ↗
45. Dropout: A Simple Way to Prevent Neural Networks from Overfitting
46. Hara, K., Saito, D., and Shouno, H. (2015, January 12–17). Analysis of function of rectified linear unit used in deep learning. Proceedings of the 2015 International Joint Conference on Neural Networks (IJCNN), Killarney, Ireland.10.1109/IJCNN.2015.7280578 ↗
47. Agarap, A.F. (2019). Deep Learning using Rectified Linear Units (ReLU). arXiv.
48. Kingma, D.P., and Ba, J. (2017). Adam: A Method for Stochastic Optimization. arXiv.
49. The Real-World-Weight Cross-Entropy Loss Function: Modeling the Costs of Mislabeling10.1109/ACCESS.2019.2962617 ↗
50. Raschka, S. (2014). An Overview of General Performance Metrics of Binary Classifier Systems. arXiv.
51. Classification assessment methods10.1016/j.aci.2018.08.003 ↗
52. Goli, Y.D., and Ambika, R. (2018, January 21–22). Network Traffic Classification Techniques—A Review. Proceedings of the 2018 International Conference on Computational Techniques, Electronics and Mechanical Systems (CTEMS), Belgaum, India.10.1109/CTEMS.2018.8769309 ↗
53. Activation functions in neural networks
54. Mercioni, M.A., and Holban, S. (2020, January 21–23). The Most Used Activation Functions: Classic Versus Current. Proceedings of the 2020 International Conference on Development and Application Systems (DAS), Suceava, Romania.10.1109/DAS49615.2020.9108942 ↗
55. Höhn, M., Wunderlich, M., Ballweg, K., and von Landesberger, T. (2020, January 25–29). Width-Scale Bar Charts for Data with Large Value Range. Proceedings of the EuroVis (Short Papers), Norrköping, Sweden.
56. 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 ↗