Lightweight Machine Learning Models for Intrusion Detection on IoT Devices

Authors

  • Jonathan Lundqvist Østfold University College, Norway https://orcid.org/0009-0009-5153-7688
  • Anel Hadzic Østfold University College, Norway https://orcid.org/0009-0006-2287-0973
  • Torstein Mo Kirkeluten Østfold University College, Norway
  • Håkon Pedersen Østfold University College, Norway
  • Jacob Holth Østfold University College, Norway
  • Magnus H. Johansson Østfold University College, Norway
  • Moritz P. N. Halkjelsvik Østfold University College, Norway

DOI:

https://doi.org/10.5324/jrxdjb92

Keywords:

Lightweight, Cybersecurity, IoT, TinyML, IDS

Abstract

The Internet of Things (IoT) continues to expand rapidly, yet IoT devices often lack on-device Intrusion Detection Systems (IDS) due to strict CPU, RAM, and memory limitations. While prior research has explored machine learning-based IDS, relatively few studies have evaluated models under realistic resource constraints. In this paper, we assess the feasibility of lightweight and efficient machine learning models for multiclass intrusion detection using the ToN_IoT dataset. We compare a Decision Tree (DT), Light Gradient Boosting Machine (LightGBM), a Feedforward Neural Network (FNN), and a TinyML-optimized FNN. Our results show that the TinyML FNN provides the best balance between accuracy and deployability, achieving an F1-Score of 0.976, an inference throughput of ≈120,000 packets per second, and a model size of only 31 KB. These findings demonstrate that TinyML-optimized neural networks are strong candidates for practical on-device intrusion detection on highly resource-constrained IoT devices.

Downloads

Download data is not yet available.

Downloads

Published

2025-11-19

How to Cite

[1]
“Lightweight Machine Learning Models for Intrusion Detection on IoT Devices”, NIKT, vol. 37, no. 3, Nov. 2025, doi: 10.5324/jrxdjb92.