Designing Trustworthy Explainable Machine Learning Framework for Cyber Security Threat Analytics for Real-Time Threat Detection in Edge Computing
DOI:
https://doi.org/10.5281/zenodo.23943314Keywords:
Edge Computing, Cybersecurity, Intrusion Detection System, Explainable Artificial Intelligence, Machine Learning, Random Forest, XGBoost, SHAP, LIME, CICIDS2017Abstract
Edge computing reduces communication latency by moving computation closer to data sources, but its distributed and resource-constrained architecture expands the cybersecurity attack surface. Machine-learning-based intrusion detection can identify malicious network traffic effectively, yet many models provide limited insight into why a particular flow is classified as benign or malicious. This paper presents an explainable machine-learning framework for edge-oriented cybersecurity threat analytics that combines Random Forest (RF) and Extreme Gradient Boosting (XGBoost) with Shapley Additive Explanations (SHAP) and Local Interpretable Model-Agnostic Explanations (LIME). The framework was evaluated using the CICIDS2017 network intrusion dataset after data cleaning, infinite-value handling, label encoding, Min-Max normalization, feature selection, and an 80:20 stratified hold-out split with random state 42. The article reports RF performance of 98.70% accuracy, 98.50% precision, 98.40% recall, 98.40% F1-score, 0.992 ROC-AUC, and 98.60% PR-AUC. The detailed XGBoost results table reports 98.20% accuracy, 99.00% precision, 99.10% recall, 99.00% F1-score, 0.997 ROC-AUC, and 99.30% PR-AUC. SHAP identified Flow Duration, Destination Port, Flow Bytes/s, and Packet Length Mean among the most influential features, while LIME provided local explanations for individual traffic decisions. The results indicate that XGBoost provides stronger predictive discrimination on most reported metrics, whereas RF offers lower training requirements and faster prediction. The combined framework therefore addresses the dual requirements of detection performance and interpretability for edge-oriented intrusion detection.