Class Imbalance in IoMT Datasets: Evaluating Balancing Strategies for Learning-Based Attack Detection
Source abstract
Abstract
Internet of Medical Things (IoMT) devices are inherently vulnerable to cyberattacks, typically due to their limited processing power and memory capacity. Their widespread use in healthcare poses a significant security risk, threatening patient data privacy and the continuity of services. This study examines the effects of data imbalance correction and balancing strategies on the performance of machine and deep learning models using openly available IoMT datasets. In this context, four different balancing methods—RandomUnderSampler, SMOTE, Borderline-SMOTE, and ADASYN—were applied to three open-access IoMT datasets: ECU-IoHT, WUSTL, and CICIoMT2024. Performance analyses were conducted using five machine learning algorithms (AdaBoost, Logistic Regression, Random Forest, XGBoost, and K-Nearest Neighbor (KNN)) and two deep learning algorithms (Convolutional Neural Networks (CNN) and Deep Neural Networks (DNN)). In the highly imbalanced binary setting of the CICIoMT2024 dataset, the combination of RandomUnderSampler and SMOTE under the balanced-training/original-testing scenario produced the strongest improvement in the binary CICIoMT2024 setting, increasing the F1-Score from the unbalanced baseline to 99.87% for Random Forest and 99.86% for XGBoost across repeated runs. However, the benefit of balancing was not universal. In datasets with stronger class separability, such as ECU-IoHT, and in several multi-class settings, the effect of balancing was limited or, in some cases, inferior to the unbalanced baseline. These findings indicate that balancing is most effective under specific conditions, particularly in highly imbalanced binary tasks, and should be validated using class-sensitive metrics rather than overall performance alone.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Malware Detection Techniques · Adversarial Robustness in Machine Learning · Imbalanced Data Classification Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Computer Engineering, Karadeniz Technical University, Trabzon 61080, Turkey
RISE—Research Institutes of Sweden, Isafjordsgatan 22, 164 40 Stockholm, Sweden
Funding
Office of Scientific Research Projects of Karadeniz Technical University
References (51)
Show source-provided references
1. Internet of Things is a revolutionary approach for future technology enhancement: A review10.1186/s40537-019-0268-2 ↗
2. Internet of Things (IoT): A vision, architectural elements, and future directions10.1016/j.future.2013.01.010 ↗
3. Internet of things: Vision, applications and research challenges10.1016/j.adhoc.2012.02.016 ↗
4. Internet of things: A survey on enabling technologies, protocols, and applications10.1109/COMST.2015.2444095 ↗
5. The Internet of Things: A survey10.1016/j.comnet.2010.05.010 ↗
6. Internet of Things for smart cities10.1109/JIOT.2014.2306328 ↗
7. The Internet of Things—A survey of topics and trends10.1007/s10796-014-9489-2 ↗
8. The internet of things for health care: A comprehensive survey10.1109/ACCESS.2015.2437951 ↗
9. Statista Research Department (2025, November 15). Internet of Things (IoT) Statistics & Facts. Available online: https://www.statista.com/outlook/tmo/internet-of-things/worldwide.
10. Tawalbeh, L., Muheidat, F., Tawalbeh, M., and Quwaider, M. (2020). IoT privacy and security: Challenges and solutions. Appl. Sci., 10.10.3390/app10124102 ↗
11. Andy, S., Rahardjo, B., and Hanindhito, B. (2017, January 19–21). Attack scenarios and security analysis of MQTT communication protocol in IoT system. Proceedings of the 2017 4th International Conference on Electrical Engineering, Computer Science and Informatics (EECSI), Yogyakarta, Indonesia.10.1109/EECSI.2017.8239179 ↗
12. Vaccari, I., Aiello, M., and Cambiaso, E. (2020). SlowITe, a novel denial of service attack affecting MQTT. Sensors, 20.10.3390/s20102932 ↗
13. An in-depth analysis of IoT security requirements, challenges, and their countermeasures via software-defined security10.1109/JIOT.2020.2997651 ↗
14. Sridevi, S., Monica, K.M., Prabha, R., Senthil, G.A., Narasimha Reddy, K., and Razmah, M. (2022, January 10–11). Network intrusion detection system using supervised learning based voting classifier. Proceedings of the 2022 International Confonference of Communication, Computing and Internet of Things (IC3IoT), Chennai, India.10.1109/IC3IOT53935.2022.9767903 ↗
15. Machine learning with data balancing technique for IoT attack and anomalies detection10.33411/IJIST/2022040218 ↗
16. On IoT intrusion detection based on data augmentation for enhancing learning on unbalanced samples10.1016/j.future.2022.03.007 ↗
17. Performance analysis of intrusion detection for deep learning model based on CSE-CIC-IDS2018 dataset
18. Dey, I., and Pratap, V. (2023, January 30–31). A comparative study of SMOTE, Borderline-SMOTE, and ADASYN oversampling techniques using different classifiers. Proceedings of the 2023 3rd International Conference on Smart Data Intelligence (ICSMDI), Trichy, India.10.1109/ICSMDI57622.2023.00060 ↗
19. CICIoMT2024: A benchmark dataset for multi-protocol security assessment in IoMT10.1016/j.iot.2024.101351 ↗
20. A study of the behavior of several methods for balancing machine learning training data10.1145/1007730.1007735 ↗
21. Improving imbalanced learning through a heuristic oversampling method based on k-means and SMOTE10.1016/j.ins.2018.06.056 ↗
22. TabDDPM: Modelling tabular data with diffusion models
23. Zhao, Z., Kunar, A., Birke, R., and Chen, L.Y. (2022). CTAB-GAN+: A cluster-based conditional table GAN. Proceedings of the 3rd ACM International Conference on AI Finance, ACM.
24. Lin, T.-Y., Goyal, P., Girshick, R., He, K., and Dollár, P. (2017). Focal loss for dense object detection. Proceedings of the 2017 IEEE International Conference on Computer Vision (ICCV), IEEE.10.1109/ICCV.2017.324 ↗
25. Cui, Y., Jia, M., Lin, T.-Y., Song, Y., and Belongie, S. (2019, January 15–20). Class-balanced loss based on effective number of samples. Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA.10.1109/CVPR.2019.00949 ↗
26. APDPFL: Anti-poisoning attack decentralized privacy enhanced federated learning scheme for flight operation data sharing10.1109/TWC.2024.3479149 ↗
27. Parallel convolutional transfer network for bearing fault diagnosis under varying operation states10.1109/TIM.2024.3480212 ↗
28. Few-shot cross-domain fault diagnosis of transportation motor bearings using MAML-GA10.1109/TTE.2025.3625779 ↗
29. Deep learning10.1038/nature14539 ↗
30. Machine learning: Trends, perspectives, and prospects10.1126/science.aaa8415 ↗
31. Goodfellow, I., Bengio, Y., and Courville, A. (2016). Deep Learning, MIT Press.
32. Tavallaee, M., Bagheri, E., Lu, W., and Ghorbani, A.A. (2009). A detailed analysis of the KDD Cup 99 data set. Proceedings of the 2009 IEEE Symposium on Computational Intelligence for Security and Defense Applications, Ottawa, ON, Canada, 8–10 July 2009, IEEE.10.1109/CISDA.2009.5356528 ↗
33. Sharafaldin, I., Lashkari, A.H., and Ghorbani, A.A. (2018). Toward generating a new intrusion detection dataset and intrusion traffic characterization. Proceedings of the 4th International Conference on Information Systems Security and Privacy (ICISSP), Funchal, Portugal, 22–24 January 2018, Springer.10.5220/0006639801080116 ↗
34. Sculley, D., Holt, G., Golovin, D., Davydov, E., Phillips, T., Ebner, D., Chaudhary, V., and Young, M. (2015). Hidden technical debt in machine learning systems. Advances in Neural Infornation Processing Systems, NeurIPS.
35. SMOTE: Synthetic minority over-sampling technique10.1613/jair.953 ↗
36. Kuhn, M., and Johnson, K. (2013). Applied Predictive Modeling, Springer.10.1007/978-1-4614-6849-3 ↗
37. The ethics of algorithms: Mapping the debate10.1177/2053951716679679 ↗
38. OpenML: An R package to connect to the machine learning platform
39. WUSTL (2025, November 17). WUSTL EHMS 2020 Dataset for Internet of Medical Things (IoMT) Cybersecurity Research. Dataset Webpage. Available online: https://www.cse.wustl.edu/~jain/ehms/index.html.
40. Ahmed, M., Byreddy, S., Nutakki, A., Sikos, L.F., and Haskell-Dowland, P. (2021). ECU-IoHT: A Dataset for Internet of Healthcare Things, Edith Cowan University.
41. Learning from imbalanced data10.1109/TKDE.2008.239 ↗
42. Han, H., Wang, W.Y., and Mao, B.H. (2005). Borderline-SMOTE: A new over-sampling method in imbalanced data sets learning. Advances in Intelligent Computing, Springer.10.1007/11538059_91 ↗
43. Safe-Level-SMOTE: Safe-Level-Synthetic Minority Over-Sampling Technique for handling the class imbalanced problem
44. He, H., Bai, Y., Garcia, E.A., and Li, S. (2008, January 1–8). ADASYN: Adaptive synthetic sampling approach for imbalanced learning. Proceedings of the 2008 IEEE International Joint Conference on Neural Networks, Hong Kong, China.
45. Bishop, C.M. (2006). Pattern Recognition and Machine Learning, Springer.
46. A decision-theoretic generalization of on-line learning and an application to boosting10.1006/jcss.1997.1504 ↗
47. Guo, G., Wang, H., Bell, D., Bi, Y., and Greer, K. (2003). KNN model-based approach in classification. On the Move to Meaningful Internet Systems 2003: CoopIS, DOA, and ODBASE, Springer.10.1007/978-3-540-39964-3_62 ↗
48. Hosmer, D.W., Lemeshow, S., and Sturdivant, R.X. (2013). Applied Logistic Regression, Wiley. [3rd ed.].10.1002/9781118548387 ↗
49. Random forests10.1023/A:1010933404324 ↗
50. Chen, T., and Guestrin, C. (2016). XGBoost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, ACM.10.1145/2939672.2939785 ↗
51. Gradient-based learning applied to document recognition10.1109/5.726791 ↗