Work

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

Year: 2026
Type: article
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.
Language: English
Open Access status: gold
Estimated APC paid: $65
OpenAlex ID: W7225110620
FWCI:
Cites:
Cited by:
Related to: 10