Enhancing IoT Smart Home Security Through Machine Learning-Based Cyberattack Detection: A Comparative Evaluation
Authors
Faculty of Information & Communication Technology, Universiti Teknikal Malaysia Melaka, Melaka (Malaysia)
Faculty of Information & Communication Technology, Universiti Teknikal Malaysia Melaka, Melaka (Malaysia)
Faculty of Artificial Intelligence & Cyber Security, Universiti Teknikal Malaysia Melaka, Melaka (Malaysia)
Faculty of Artificial Intelligence & Cyber Security, Universiti Teknikal Malaysia Melaka, Melaka (Malaysia)
Article Information
DOI: 10.47772/IJRISS.2026.100700159
Subject Category: Cybersecurity
Volume/Issue: 10/7 | Page No: 2275-2287
Publication Timeline
Submitted: 2026-07-14
Accepted: 2026-07-20
Published: 2026-07-27
Abstract
Smart homes depend on interconnected sensors, cameras, routers, mobile applications, and cloud services. This connectivity improves automation and convenience, but it also expands the attack surface for Distributed Denial of Service (DDoS), Denial of Service (DoS), Mirai botnet, brute-force, spoofing, reconnaissance, and man-in-the-middle attacks. Traditional signature-based security is often insufficient because IoT devices are resource-constrained, heterogeneous, and frequently deployed with weak authentication or delayed firmware updates. This study evaluates supervised machine-learning classifiers for detecting cyberattacks in smart-home IoT network traffic using the CICIoT2023 dataset. Four algorithms, namely Random Forest, Decision Tree, k-Nearest Neighbour, and Support Vector Machine, were compared under 50:50, 70:30, and 80:20 train-test split settings. The models were evaluated using accuracy, precision, recall, and F1-score, with emphasis on DDoS, Mirai, and brute-force attack classes that are particularly relevant to smart-home environments. The findings show that tree-based classifiers are highly effective for IoT attack detection. Random Forest achieved the strongest overall accuracy and precision, while Decision Tree showed the most stable recall and F1-score for brute-force detection. The results indicate that Random Forest is suitable as a general-purpose smart-home IDS classifier, whereas Decision Tree or a hybrid ensemble strategy should be considered when missed brute-force attacks carry high operational risk. The paper contributes a clearer empirical comparison of lightweight supervised learning models and provides implementation guidance for smart-home intrusion detection systems.
Keywords
Smart Home Cybersecurity, Machine Learning-Based Intrusion Detection
Downloads
References
1. Neto, E. C. P., Dadkhah, S., Ferreira, R., Zohourian, A., Lu, R., & Ghorbani, A. A. (2023). CICIoT2023: A real-time dataset and benchmark for large-scale attacks in IoT environment. Sensors, 23(13), Article 5941. https://doi.org/10.3390/s23135941 [Google Scholar] [Crossref]
2. Alani, M. M. (2022). BotStop: Packet-based efficient and explainable IoT botnet detection using machine learning. Computer Communications, 193, 53-62. https://doi.org/10.1016/j.comcom.2022.06.039 [Google Scholar] [Crossref]
3. Akgun, D., Hizal, S., & Cavusoglu, U. (2022). A new DDoS attacks intrusion detection model based on deep learning for cybersecurity. Computers & Security, 118, Article 102748. https://doi.org/10.1016/j.cose.2022.102748 [Google Scholar] [Crossref]
4. Ali, M. A., & Al-Sharafi, S. A. H. (2025). Intrusion detection in IoT networks using machine learning and deep learning approaches for MitM attack mitigation. Discover Internet of Things, 5(1), Article 48. https://doi.org/10.1007/s43926-025-00104-w [Google Scholar] [Crossref]
5. Altamimi, S., & Abu Al-Haija, Q. (2024). Maximizing intrusion detection efficiency for IoT networks using extreme learning machine. Discover Internet of Things, 4(1), Article 5. https://doi.org/10.1007/s43926-024-00060-x [Google Scholar] [Crossref]
6. Attota, D. C., Mothukuri, V., Parizi, R. M., & Pouriyeh, S. (2021). An ensemble multi-view federated learning intrusion detection for IoT. IEEE Access, 9, 117734-117745. https://doi.org/10.1109/ACCESS.2021.3107337 [Google Scholar] [Crossref]
7. Awajan, A. (2023). A novel deep learning-based intrusion detection system for IoT networks. Computers, 12(2), Article 34. https://doi.org/10.3390/computers12020034 [Google Scholar] [Crossref]
8. Campos, A. D., Lemus-Prieto, F., Gonzalez-Sanchez, J.-L., & Lindo, A. C. (2024). Intrusion detection for IoT environments through side-channel and machine learning techniques. IEEE Access, 12, 98450-98465. https://doi.org/10.1109/ACCESS.2024.3362670 [Google Scholar] [Crossref]
9. Fares, H., Aknin, N., Lazrek, G., & Zeroual, M. (2025). Intrusion detection in IoT environment using hyperparameters tuned machine and deep learning models on the CICIoT2023 dataset. Informatica, 49(5). https://doi.org/10.31449/inf.v49i5.8881 [Google Scholar] [Crossref]
10. Ferrag, M. A., Friha, O., Hamouda, D., Maglaras, L., & Janicke, H. (2022). Edge-IIoTset: A new comprehensive realistic cyber security dataset of IoT and IIoT applications for centralized and federated learning. IEEE Access, 10, 40281-40306. https://doi.org/10.1109/ACCESS.2022.3165809 [Google Scholar] [Crossref]
11. Garcia, J., Entrena, J., & Alesanco, A. (2024). Empirical evaluation of feature selection methods for machine learning based intrusion detection in IoT scenarios. Internet of Things, 28, Article 101367. https://doi.org/10.1016/j.iot.2024.101367 [Google Scholar] [Crossref]
12. Hajjouz, A., & Avksentieva, E. (2024). Optimizing intrusion detection for DoS, DDoS, and Mirai attacks subtypes using hierarchical feature selection and CatBoost on the CICIoT2023 dataset. Data and Metadata, 3, Article 577. https://doi.org/10.56294/dm2024577 [Google Scholar] [Crossref]
13. Hakami, H., Faheem, M., & Bashir Ahmad, M. (2025). Machine learning techniques for enhanced intrusion detection in IoT security. IEEE Access, 13, 31140-31158. https://doi.org/10.1109/ACCESS.2025.3542227 [Google Scholar] [Crossref]
14. Hizal, S., Cavusoglu, U., & Akgun, D. (2024). A novel deep learning-based intrusion detection system for IoT DDoS security. Internet of Things, 28, Article 101336. https://doi.org/10.1016/j.iot.2024.101336 [Google Scholar] [Crossref]
15. Ismail, S., Dandan, S., & Qushou, A. (2025). Intrusion detection in IoT and IIoT: Comparing lightweight machine learning techniques using TON_IoT, WUSTL-IIOT-2021, and EdgeIIoTset datasets. IEEE Access, 13, 73468-73485. https://doi.org/10.1109/ACCESS.2025.3554083 [Google Scholar] [Crossref]
16. Moinuddin, K., & Prabhavathi, S. (2026). An integrated machine learning and deep learning framework for intrusion detection in IoT smart homes. Discover Internet of Things. https://doi.org/10.1007/s43926-026-00390-y [Google Scholar] [Crossref]
17. Shahid, U., Zunnurain Hussain, M., Zulkifl Hasan, M., Haider, A., Ali, J., & Altaf, J. (2024). Hybrid intrusion detection system for RPL IoT networks using machine learning and deep learning. IEEE Access, 12, 113099-113112. https://doi.org/10.1109/ACCESS.2024.3442529 [Google Scholar] [Crossref]
18. Shalan, M., Hasan, M. R., Bai, Y., & Li, J. (2025). Enhancing smart home security: Blockchain-enabled federated learning with knowledge distillation for intrusion detection. Smart Cities, 8(1), Article 35. https://doi.org/10.3390/smartcities8010035 [Google Scholar] [Crossref]
19. Tekin, N., Acar, A., Aris, A., Uluagac, A. S., & Gungor, V. C. (2023). Energy consumption of on-device machine learning models for IoT intrusion detection. Internet of Things, 21, Article 100670. https://doi.org/10.1016/j.iot.2022.100670 [Google Scholar] [Crossref]
20. Walling, S., & Lodh, S. (2024). Enhancing IoT intrusion detection through machine learning with AN-SFS: A novel approach to high performing adaptive feature selection. Discover Internet of Things, 4(1), Article 16. https://doi.org/10.1007/s43926-024-00074-5 [Google Scholar] [Crossref]
Metrics
Views & Downloads
Similar Articles
- “Next-Generation Cybersecurity Through Blockchain and AI Synergy: A Paradigm Shift in Intelligent Threat Mitigation and Decentralised Security”
- Forensic Payroll Analytics for IPPIS: A Hybrid Anomaly-Detection Framework to Expose Payroll Fraud, Improve Data Governance, and Protect Employee Rights
- Factors Influencing Data Protection on Global Trade
- Development Of Artificial Intelligence-Based Model for Forensic Analysis of Cross-Platform Deepfakes
- Cyber Threats and Nigeria’s National Security: Assessing the Role of Regional Cooperation in West Africa