Intrusion Detection in Smart Homes Using K-Nearest Neighbors and Decision Trees Algorithm on IoT Network Traffic for Attack Classification
DOI:
https://doi.org/10.18687/LACCEI2025.1.1.1745Keywords:
IoT, Smart Home, K-Nearest Neighbors, Decision Tree, Network SecurityAbstract
Many homes now feature smart technology and numerous devices connected to the Internet, exposing them to cyberattacks. Therefore, implementing protection mechanisms to identify, predict, and mitigate these threats to smart home devices is crucial. This research proposes two machine learning models—K-Nearest Neighbors and Decision Tree—to predict malicious activity in smart home connections and classify whether an attack is occurring. The study presents both models along with an in-depth analysis of their performance, assessing how they function on unseen data and their effectiveness on the dataset. The findings highlight the strengths and weaknesses of each model, providing valuable insights into their applicability in real-world scenarios. By offering a comparative evaluation, this research contributes to the ongoing efforts in enhancing the security of smart homes and underscores the importance of adopting advanced machine learning techniques for intrusion detection systems (IDS). This study aims to lay the groundwork for future developments in smart home cybersecurity solutions.Downloads
Published
2025-04-09
Issue
Section
Articles
License
Copyright (c) 2025 LACCEI

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
How to Cite
Menjivar, A. G., Ordoñez-Avila, J. L., & Cardona, M. (2025). Intrusion Detection in Smart Homes Using K-Nearest Neighbors and Decision Trees Algorithm on IoT Network Traffic for Attack Classification. LACCEI, 1(12). https://doi.org/10.18687/LACCEI2025.1.1.1745