A Leakage-aware Cross-dataset Evaluation Framework for IoT Intrusion Detection: BPSO Feature Selection, CORAL, and Bidirectional Transfer Analysis
Machine learning-based intrusion detection systems (IDS) for the Internet of Things (IoT) are commonly evaluated using within-dataset protocols that can conceal benchmark-specific fitting, leakage, and failures under distribution shift. This study presents a leakage-aware, transfer-aware, and reproducible evaluation framework combining duplicate and leakage auditing, train-only preprocessing, mutual-information (MI) ranking, binary particle swarm optimisation (BPSO), validation-based threshold tuning, strict eight-concept cross-dataset mapping, optional correlation alignment (CORAL), and paired repeated-seed analysis. Five independent stratified holdout seeds were evaluated on resource-bounded real-data samples from Bot-IoT and UNSW-NB15. On Bot-IoT, near-perfect accuracy and attack-class F1 coexisted with much lower and unstable macro-F1 because each test split contained only six or seven normal records; mean macro-F1 ranged from 0.6871 ± 0.1314 for LR with MI+BPSO to 0.8590 ± 0.0683 for RF.On UNSW-NB15, XGBoost (0.9219 ± 0.0013) and RF (0.9182 ± 0.0031) outperformed LR with MI+BPSO (0.8738 ± 0.0039). No within-dataset comparison was significant after Holm adjustment in the exploratory five-seed Wilcoxon analysis. Multiclass results further showed that the MI-only feature pool outperformed the BPSO subset on both datasets. Strict cross-dataset macro-F1 was substantially lower than within-dataset performance. Source-only results ranged from 0.3186 to 0.4060 for Bot-IoT to UNSW-NB15 and from 0.3009 to 0.4457 in the reverse direction; CORAL improved macro-F1 only for RF in the Bot-IoT-to-UNSW-NB15 direction and degraded macro-F1 in the other five model-direction comparisons. Mean end-to-end single-record latency was 8.108 ms on Bot-IoT and 5.385 ms on UNSW-NB15. These findings support the methodological contribution: IoT-IDS claims should be based on leakage-controlled, class-aware, uncertainty-qualified, and transfer-aware evidence rather than headline accuracy alone.
Authors
- Asraa A. Abd Al-Ameer (ORCID: https://orcid.org/0000-0002-5941-6217)
- Sundos F. Jabbar
- Karrar Imran Ogaili
Institutions
- University of Babylon (IQ)
- University of Kerbala (IQ)
Publication Details
- Journal
- International journal of intelligent engineering and systems
- Published
- 2026-11-30
- DOI
- https://doi.org/10.22266/ijies2026.1130.01
- Primary Topic
- Network Security and Intrusion Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00