Benchmarking Classical And Neural Machine Learning for Intrusion Detection on Resource-Constrained IoT Platforms

group

Authors

Issue Vol. 18 No. 3 (2026)
Published 31 August 2026
Section Research Paper
Pages 490-509
description view PDF
subject

Abstract

Intrusion detection system (IDS) research commonly evaluates models on server-grade hardware, overlooking whether these models actually run on the low-cost micro-controllers deployed at the network edge. This study benchmarks five machine learning models–Decision Tree (DT), Random Forest (RF), k-Nearest Neighbors (KNN), Deep Neural Network (DNN), and 1D Convolutional Neural Network (CNN)—for binary intrusion detection across three platforms: ESP32, Arduino Uno, and Arduino Nano. Classical models are exported through MicroMLGen, while neural models are deployed via TensorFlowLite for Microcontrollers with INT8 quantization on ESP32 and through a framework-free float32 PROGMEM approach on 8-bit AVR. Evaluation uses NSL-KDD and Edge-IIoTset v2 under a stratified balanced protocol with multiple random seeds. On NSL-KDD, DT obtains the best trade-off (F1=0.829, 2.65 µs latency on ESP32), outperforming all neural variants. The INT8-quantized DNN deployed on ESP32 shows severe precision-recall imbalance (F1=0.637), whereas the same DNN deployed in float32 on AVR reaches F1=0.762; since host-side INT8 evaluation is lossless and the AVR float32 deployment reproduces host predictions exactly, the on-device gap is a deployment-specific effect of the INT8 TFLite Micro path on ESP32, not of post-training quantization. CNN runs only on ESP32 (F1=0.720). Uniform perfect scores on Edge-IIoTset v2 serve as deployment-context evidence only; the findings above are limited to NSL-KDD. These results challenge the widespread assumption that neural networks automatically surpass classical methods for embedded IDS, and offer practitioners evidence-based guidance.

Keywords: Intrusion Detection System, TinyML, Embedded Machine Learning, Microcontroller, Quantization, IoT Security, model quantization, IoT

format_quote

How to Cite

file_copyCopy
[1]
N. D. Priyambodo and E. Sugiarto, “Benchmarking Classical And Neural Machine Learning for Intrusion Detection on Resource-Constrained IoT Platforms”, infotel, vol. 18, no. 3, pp. 490–509, Aug. 2026.

license

License

Copyright (c) 2026 Jurnal INFOTEL (Informatics, Telecommunication, and Electronics)

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Downloads

Download data is not yet available.