Explainable and Optimized Random Forest for Anomaly Detection in IoT Networks Using the RIME Metaheuristic
Mohamed Sasi, Oluwatayomi Rereloluwa Adegboye, Ahmad Alzubi
University of Mediterranean Karpasia
Key points
From the paper's conclusion- To address these challenges, this paper proposes an explainable, automated, and efficient anomaly detection framework that integrates a Random Forest (RF) classifier with the RIME metaheuristic optimization algorithm for hyperparameter tuning.
Abstract
The rapid expansion of Internet of Things (IoT) ecosystems has amplified their exposure to sophisticated cyber threats, particularly Distributed Denial-of-Service (DDoS) attacks that exploit device heterogeneity and resource constraints. Traditional machine learning-based intrusion detection systems often suffer from suboptimal performance due to poor hyperparameter configuration and a lack of interpretability, which are critical limitations in security-critical IoT environments. To address these challenges, this paper proposes an explainable, automated, and efficient anomaly detection framework that integrates a Random Forest (RF) classifier with the RIME metaheuristic optimization algorithm for hyperparameter tuning. Inspired by the physical process of rime ice formation, RIME’s dual-phase search mechanism effectively balances global exploration and local exploitation to identify near-optimal RF configurations in complex, high-dimensional search spaces. Evaluated on a real-world IoT traffic dataset encompassing twelve distinct DDoS attack vectors, the RIME-optimized RF model achieves a testing accuracy of 93.4%, outperforming baseline RF and other metaheuristic-optimized variants in both performance and convergence stability. Crucially, SHAP (SHapley Additive exPlanations) analysis provides transparent, attack-specific insights into feature importance, highlighting syn_flag_number, Protocol Type, Magnitue, Radius, and Ack_flag_number as key discriminative features, thereby enhancing model trustworthiness and operational utility. This work delivers a lightweight, interpretable, and high-performance solution well-suited for deployment in resource-constrained IoT networks, aligning with the urgent need for intelligent, adaptive, and explainable security mechanisms in next-generation network infrastructures.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Towards Lightweight IoT Intrusion Detection: Feature Optimization and Explainable Machine Learning for Resource-Constrained EnvironmentarXiv · 2026
- The Aggregate–Worst-Class Trade-Off in Feature Selection for IoT Intrusion Detection: A Multi-Objective Study on TON_IoTComputation · 2026
- An enhanced spotted hyena optimizer-based LSTM framework for accurate DDoS attack detection in internet of things networksScientific Reports · 2026
- Understanding Statistical and Temporal Representations for Large-Scale IoT DDoS Detection Through Ablation-Driven AnalysisJournal of Computing Theories and Applications · 2026
- An XGBoost-Based Intrusion Detection Framework with Interpretability Analysis for IoT NetworksApplied Sciences · 2026
- Fog-Deployable XGBoost Framework for DDoS Detection in IoT Networks.Sensors (Basel, Switzerland) · 2026