Explanation Stability in IoT Intrusion Detection: A Comparative Study of SHAP and LIME Across Retrained Random Forest Models
The rapid growth of Internet of Things (IoT) deployments has increased the need for reliable intrusion detection in connected and safety-critical environments. Although machine learning-based intrusion detection systems can achieve strong predictive performance, their decision-making processes often remain opaque, limiting analysts' ability to interpret and trust model outputs. Explainable Artificial Intelligence (XAI) methods, particularly SHapley Additive explanations (SHAP) and Local Interpretable Model-agnostic Explanations (LIME), address this limitation by providing feature-level explanations of model predictions. However, it remains unclear whether these explanations remain stable when intrusion detection models are periodically retrained, and prior work has not systematically examined explanation stability under controlled model retraining in an IoT intrusion detection setting. This study evaluates the stability of SHAP and LIME explanations for a Random Forest-based IoT intrusion detection model. The classifier was trained on the well-known datasets, CICIoT2023 and TON-IoT, and retrained six times using different random seeds while keeping the dataset, preprocessing pipeline, and train-test split fixed. Explanation stability was evaluated by comparing explanations across all pairs of retraining runs using feature-set, ranking, and vector-similarity measures. Across both CICIoT2023 and TON-IoT, SHAP produced substantially more consistent explanations than LIME, with more stable feature rankings and greater agreement in the most influential features across retraining runs. LIME showed greater sensitivity to retraining, producing more variable explanations even when the overall model behaviour remained broadly similar. These findings indicate that SHAP is better suited to system-level explanation consistency in retrained IoT intrusion detection models, while also highlighting that explanation stability alone does not guarantee correctness or operational trustworthiness. The results therefore suggest that stability evaluation should be incorporated into the deployment and validation of XAI methods for safety-critical intrusion detection systems.
- Link
- https://www.semanticscholar.org/paper/35e8f7d8e80faf546cdd5ef64b22fde336409700
- Found by
- Semantic Scholar
- Authors
- J. Abdullah, Rana Alharbi, Chuadhry Mujeeb Ahmed, Tejal Shah, Rajiv Ranjan
- Categories
- evaluation, dataset
- Published
- 2026-11-14
- Last seen by the radar
- 2026-11-15
- Citations
- 0
- Influential citations
- 0
- Radar score
- 40.35 / 100 (how it is scored)
- Why it scored so
- Matched: dataset, evaluat; Primary record: Semantic Scholar
- Related links
- https://doi.org/10.1145/3847353.3847506