CoDiNet-ID: a confidence-aware dual-level ensemble framework with dynamic confidence fusion for network intrusion detection
Network intrusion detection systems (IDS) increasingly rely on stacking ensembles that combine multiple classifiers. Most existing systems fuse classifier outputs using fixed rules. They do not account for how reliable each classifier is on a given sample. This limits their adaptability across different traffic conditions. This paper presents CoDiNet-ID, a confidence-aware dual-level ensemble for binary intrusion detection, distinguishing normal traffic from attack traffic. Four heterogeneous base classifiers are trained using a stratified out-of-fold procedure in which preprocessing and probability calibration are fitted within the training folds. Their output probabilities are calibrated through isotonic regression and combined into a 16-dimensional meta-representation. This representation captures prediction confidence, inter-classifier agreement, weighted consensus, and dispersion. A lightweight Convolutional Neural Network-Gated Recurrent Unit (CNN-GRU) meta-learner, containing only 7,553 trainable parameters, processes this representation with low computational overhead and fast inference. A Dynamic Confidence Fusion Layer then combines the meta-learner output with the ensemble consensus and the attack-vote fraction, using a blending weight and decision threshold tuned once per dataset. Over 10 runs on UNSW-NB15 it reaches 89.62% accuracy (95% confidence half-width 0.21) and an F1-score of 0.9111, which is 1.7 points above the best single base learner (95% confidence interval 1.4 to 1.9 points). On a stratified sample of CICIDS2017 it reaches 99.57% accuracy (half-width 0.02) and 0.9959 recall over 5 runs, a 0.02-point difference from the standalone Extra Trees that the McNemar test does not detect. The fusion layer is comparable with probability averaging, reliability-weighted consensus and learned gating under a common tuning protocol. Calibration quality is reported with Brier score, log loss and expected calibration error, and ablation, per-category, cross-dataset and computational-cost analyses are included. The limitations, including binary-only evaluation, benchmark artefacts and the limited cross-dataset evidence, are stated explicitly.
Authors
- S K Somasundaram
- Durgadevi U
Institutions
- Vellore Institute of Technology University (IN)
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-11-26
- DOI
- https://doi.org/10.1038/s41598-026-80911-5
- Primary Topic
- Network Security and Intrusion Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00