A routing-signal study of confidence-gated conditional computation for lightweight IoT intrusion detection

List of Authors

  1. Mahmoud Abbasi
    ,  
  2. Javier Prieto Tejedor ,  
  3. Carolina Villoria Torres ,  
  4. Marta Plaza-Hernández
Article Authors & roles Authors Peer review record Peer review Metrics
Cite

Abstract

Background

Intrusion detection at Internet of Things (IoT) edge gateways must run under tight compute and memory budgets, motivating dual-path designs that classify most flows with a cheap model and escalate only uncertain flows to a heavier one. A prior conference study introduced such a system, in which a tiny multilayer perceptron (MLP) on features compressed by principal component analysis (PCA) is the fast path, gated to a heavy MLP by the maximum softmax probability (MSP). That system recovers near-heavy accuracy while escalating few flows.

Methods

We extend that work into a systematic study of what signal should drive the escalation gate. On three benchmarks (ACI-IoT-2023, TabularIoTAttacks-2024, and the large-scale CICIoT2023), we compare routing signals (MSP, predictive entropy, margin, energy, temperature-scaled confidence, latent norm) against a learned router and an oracle bound at matched cost; study temperature-scaling calibration and a leakage-free threshold rule; test a tiny-ensemble disagreement signal; and evaluate robustness, latency, model size, statistical significance, and cross-dataset transfer.

Results

Confidence-gated routing gives large, statistically significant gains over the tiny model on every dataset, whereas a learned router improves only marginally over plain MSP, so once an escalation budget is fixed a simple MSP gate suffices. On CICIoT2023 we observe an oracle gap. Routing cannot reach the heavy model even at large budgets, because the tiny model is confidently wrong on a few high-volume attack families such as denial-of-service (DoS) floods that are never escalated. Neither ensembling nor confidence-independent signals close the gap. A fixed threshold does not transfer across datasets, its escalation rate swinging from 1 % to 55 % .

Conclusions

The efficiency benefit grows with a stronger heavy backbone, including a gradient-boosted-tree heavy. Gates should be set by a budget, and closing the oracle gap requires identifying confident errors within high-confidence classes rather than a better routing signal.

Plain Language Summary

Devices such as smart-home sensors, industrial controllers, and medical monitors are now common targets for network attacks, so the traffic they generate is increasingly screened by intrusion detectors. Running an accurate detector on the small gateways at the edge of the network is difficult, because strong models are computationally expensive and edge hardware is limited. A practical answer is a dual-path detector, in which a very small model handles the easy, clearly benign or clearly malicious traffic on the gateway itself and passes only the flows it is unsure about to a larger, more accurate model. The open question is how the small model should decide which flows to pass on.

This paper studies that decision across three public intrusion-detection datasets. We compare many ways of measuring the small model’s uncertainty and find that a simple, well-calibrated confidence score, combined with a fixed budget for how many flows may be escalated, works about as well as more complex learned alternatives. We also report an honest limitation. On the most difficult dataset the small model is sometimes confidently wrong about a few high-volume attack types, and precisely because it is confident, no inexpensive uncertainty measure flags those flows for escalation. Recognising this blind spot, rather than designing a better uncertainty score, is the main obstacle to further progress.

Corresponding author
Mahmoud Abbasi
Grant information

This project has received funding from the [European Union] under grant agreement No [101135927] (Project name - A catalyst for EuropeaN ClOUd Services in the era of data spaces, high-performance and edge computing [NOUS]). Views and opinions expressed are those of the authors only and do not necessarily reflect those of the European Union; neither the European Union nor the granting authority can be held responsible for them.

The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

Copyright
© 2026 Mahmoud Abbasi (Corresponding Author, Co-Author); Javier Prieto Tejedor (Co-Author); Carolina Villoria Torres (Co-Author); Marta Plaza-Hernández (Co-Author) Creative Commons License

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

First version published
Latest version published

Comments

Authors & roles

Mahmoud Abbasi

BISITE Research Group, University of Salamanca, Salamanca, Salamanca, 37007, Spain

AIR Institute, Salamanca, Salamanca, Salamanca, 37007, Spain

Roles
Corresponding Author, Co-Author, Conceptualization, Data Curation, Formal Analysis, Investigation, Methodology, Software, Writing – Original Draft Preparation

Javier Prieto Tejedor

BISITE Research Group, University of Salamanca, Salamanca, Salamanca, 37007, Spain

Roles
Co-Author, Conceptualization, Funding Acquisition, Supervision, Writing – Review & Editing
0000-0001-8175-2201

Carolina Villoria Torres

AIR Institute, Salamanca, Salamanca, Salamanca, 37007, Spain

Roles
Co-Author, Investigation, Validation, Writing – Review & Editing
0009-0009-7857-8252

Marta Plaza-Hernández

BISITE Research Group, University of Salamanca, Salamanca, Salamanca, 37007, Spain

Roles
Co-Author, Data Curation, Project Administration, Writing – Review & Editing

Downloads over the last 12 months:

Cited by

via Crossref

View citing articles