Open Access iconOpen Access

ARTICLE

A Comparative Benchmark of Machine and Deep Learning for Cyberattack Detection in IoT Networks

Enzo Hoummady*, Fehmi Jaafar

Department of Computer Science and Mathematics, University of Quebec at Chicoutimi, Chicoutimi, QC G7H2B1, Canada

* Corresponding Author: Enzo Hoummady. Email: email

(This article belongs to the Special Issue: Intelligence and Security Enhancement for Internet of Things)

Computers, Materials & Continua 2026, 87(1), 43 https://doi.org/10.32604/cmc.2025.074897

Abstract

With the proliferation of Internet of Things (IoT) devices, securing these interconnected systems against cyberattacks has become a critical challenge. Traditional security paradigms often fail to cope with the scale and diversity of IoT network traffic. This paper presents a comparative benchmark of classic machine learning (ML) and state-of-the-art deep learning (DL) algorithms for IoT intrusion detection. Our methodology employs a two-phased approach: a preliminary pilot study using a custom-generated dataset to establish baselines, followed by a comprehensive evaluation on the large-scale CICIoTDataset2023. We benchmarked algorithms including Random Forest, XGBoost, CNN, and Stacked LSTM. The results indicate that while top-performing models from both categories achieve over 99% classification accuracy, this metric masks a crucial performance trade-off. We demonstrate that tree-based ML ensembles exhibit superior precision (91%) in identifying benign traffic, making them effective at reducing false positives. Conversely, DL models demonstrate superior recall (96%), making them better suited for minimizing the interruption of legitimate traffic. We conclude that the selection of an optimal model is not merely a matter of maximizing accuracy but is a strategic choice dependent on the specific security priority either minimizing false alarms or ensuring service availability. This work provides a practical framework for deploying context-aware security solutions in diverse IoT environments.

Keywords

Internet of Things; deep learning; abnormal network traffic; cyberattacks; machine learning

Cite This Article

APA Style
Hoummady, E., Jaafar, F. (2026). A Comparative Benchmark of Machine and Deep Learning for Cyberattack Detection in IoT Networks. Computers, Materials & Continua, 87(1), 43. https://doi.org/10.32604/cmc.2025.074897
Vancouver Style
Hoummady E, Jaafar F. A Comparative Benchmark of Machine and Deep Learning for Cyberattack Detection in IoT Networks. Comput Mater Contin. 2026;87(1):43. https://doi.org/10.32604/cmc.2025.074897
IEEE Style
E. Hoummady and F. Jaafar, “A Comparative Benchmark of Machine and Deep Learning for Cyberattack Detection in IoT Networks,” Comput. Mater. Contin., vol. 87, no. 1, pp. 43, 2026. https://doi.org/10.32604/cmc.2025.074897



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 326

    View

  • 63

    Download

  • 0

    Like

Share Link