Real-time DDoS detection in IoT networks: an ultra-lightweight ensemble framework
Implementing intrusion detection systems (IDS) in Internet of Things (IoT) and edge networks frequently encounters severe resource constraints. Although recent trends favor deep learning, these models incur high computational costs, making them unsuitable for real-time edge deployment. Furthermore, high dimensionality and class imbalance present significant practical challenges. Specifically, UDP amplification attacks exhibit high statistical similarity, causing fine-grained classification attempts to degrade overall accuracy. To address these issues, a lightweight stacking ensemble framework is proposed and evaluated on the CICDDoS2019 dataset. Instead of classifying every UDP amplification type individually, these attacks are grouped into a seven-class macro taxonomy, aligning with industrial firewall mitigation strategies. The mRMR algorithm is applied for feature selection, reducing the feature space by 87% and retaining only the 10 most discriminative features. A memory-safe hybrid resampling approach is utilized to manage class imbalance without introducing computational overhead. The stacking model employs fast, tree-based algorithms as base learners. Evaluation results indicate that, using only 10 features, the model achieves 98.69% accuracy and a 95.55% Macro F1-score. Operational testing on a standard Core i3 processor demonstrates a model footprint of 4.2 MB and an inference time of 21.36 microseconds per traffic flow. By grouping similar attacks and strictly limiting the feature set, the proposed IDS can be deployed on constrained edge devices without sacrificing detection performance.
Authors
- Morteza Asghari Reykandeh
- Ahmad Esfandiari (ORCID: https://orcid.org/0000-0001-5555-8405)
Institutions
- Islamic Azad University Sari Branch (IR)
Publication Details
- Journal
- Peer-to-Peer Networking and Applications
- Published
- 2026-11-28
- DOI
- https://doi.org/10.1007/s12083-026-02316-5
- Primary Topic
- Network Security and Intrusion Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00