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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

A Leakage-aware Cross-dataset Evaluation Framework for IoT Intrusion Detection: BPSO Feature Selection, CORAL, and Bidirectional Transfer Analysis

Asraa A. Abd Al-Ameer, Sundos F. Jabbar, Karrar Imran Ogaili
2 links
International journal of intelligent engineering and systems
Network Security and Intrusion Detection
article

A Leakage-aware Cross-dataset Evaluation Framework for IoT Intrusion Detection: BPSO Feature Selection, CORAL, and Bidirectional Transfer Analysis

Asraa A. Abd Al-Ameer, Sundos F. Jabbar, Karrar Imran Ogaili
article en

Abstract

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.

International journal of intelligent engineering and systemsVol. 19(11)
University of Babylon (IQ), University of Kerbala (IQ)
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon