← Lab /Security & privacy

Decision-tree IDS hits 99% detection on microcontrollers, neural net 96%

The authors claim their lightweight ML models achieve 99% accuracy with a decision tree and 96% with a neural network for IoT intrusion detection.

Security & privacy arXiv 13 May 2026 Method Prototype evidence

Published as “Empowering IoT Security: On-Device Intrusion Detection in Resource Constrained Devices”

Why it matters

Enables on-device intrusion detection for microcontroller-based IoT devices, reducing dependence on external security appliances and potentially lowering deployment and maintenance costs.

Summary

The authors report that their on-device IDS achieved a 99% F1-score with a decision-tree model and 96% with a neural-network model on an ESP32 microcontroller. The study demonstrates feasibility of deploying machine-learning-based intrusion detection directly on resource-constrained IoT devices using real-world traffic collected over 24 hours. However, the higher-accuracy decision tree consumes more computational resources, while the neural network is more memory-efficient, indicating a trade-off between accuracy and resource use.

What they found 3

  1. Decision-tree model achieved 99% detection performance

    “achieve a notable detection accuracy of 99% using a decision tree method and 96% using a neural network”

  2. Custom lightweight model (neural network) achieved 96% F1-score

    “Our custom lightweight model, designed for microcontrollers, achieved an impressive F1-score of 96% in detecting diverse network intrusions”

  3. Decision-tree model achieved 99% F1-score

    “Furthermore, our decision tree model achieved F1-score of 99%”

Caveats 3

  • While the decision tree method offers higher accuracy, it requires more computational resources, whereas the neural network approach, despite a slightly lower accuracy, is more memory-efficient.
  • It is important to note that our study does not propose a generalised solution but rather a feasibility study to assess the impact of implementing an IDS on a resource-constrained device and its overall functionality.
  • Our research also highlights the challenges due to the resource-limited nature of microcontrollers and the complexities of machine learning deployment in IoT.

What’s new here 3

  • Implements and evaluates an IDS on a bare-metal microcontroller (ESP32) rather than on single-board computers or simulated environments.
  • Collects a real-world 5.1 MB network traffic dataset from the device over 24 hours, including sporadic attacks.
  • Provides a direct comparison of decision-tree and neural-network models in terms of accuracy and resource consumption on the same hardware.