Skip to main content
QUICK REVIEW

[Paper Review] An Explainable Machine Learning-based Network Intrusion Detection System for Enabling Generalisability in Securing IoT Networks.

Mohanad Sarhan, Siamak Layeghy|arXiv (Cornell University)|Apr 15, 2021
Network Security and Intrusion DetectionComputer Science10 references16 citations
TL;DR

This paper proposes an explainable machine learning (XAI)-enhanced network intrusion detection system using NetFlow and CICFlowMeter feature sets across three IoT datasets (CSE-CIC-IDS2018, BoT-IoT, ToN-IoT). It demonstrates that NetFlow features improve model generalizability and detection accuracy, while SHAP values explain model decisions, enhancing trust and interpretability for real-world IoT security deployment.

ABSTRACT

Machine Learning (ML)-based network intrusion detection systems bring many benefits for enhancing the security posture of an organisation. Many systems have been designed and developed in the research community, often achieving a perfect detection rate when evaluated using certain datasets. However, the high number of academic research has not translated into practical deployments. There are a number of causes behind the lack of production usage. This paper tightens the gap by evaluating the generalisability of a common feature set to different network environments and attack types. Therefore, two feature sets (NetFlow and CICFlowMeter) have been evaluated across three datasets, i.e. CSE-CIC-IDS2018, BoT-IoT, and ToN-IoT. The results showed that the NetFlow feature set enhances the two ML models' detection accuracy in detecting intrusions across different datasets. In addition, due to the complexity of the learning models, the SHAP, an explainable AI methodology, has been adopted to explain and interpret the classification decisions of two ML models. The Shapley values of the features have been analysed across multiple datasets to determine the influence contributed by each feature towards the final ML prediction.

Motivation & Objective

  • To address the gap between academic ML-based intrusion detection systems and real-world deployment in IoT networks.
  • To evaluate the generalizability of common feature sets (NetFlow and CICFlowMeter) across diverse IoT network environments and attack types.
  • To enhance model interpretability using SHAP, enabling trust and transparency in intrusion detection decisions.
  • To assess the influence of individual features on model predictions across multiple datasets.

Proposed method

  • Evaluated two feature extraction methods—NetFlow and CICFlowMeter—on three distinct IoT intrusion detection datasets: CSE-CIC-IDS2018, BoT-IoT, and ToN-IoT.
  • Trained two machine learning models on the extracted features and compared their detection accuracy across datasets.
  • Applied SHAP (SHapley Additive exPlanations) to interpret model predictions by computing feature importance scores (Shapley values).
  • Analyzed SHAP values across all datasets to determine the contribution of each feature to final classification decisions.
  • Used cross-dataset evaluation to measure model generalizability and robustness to distribution shifts.
  • Focused on feature-level interpretability to support deployment in production environments.

Experimental results

Research questions

  • RQ1How do NetFlow and CICFlowMeter feature sets perform in terms of detection accuracy across different IoT network datasets?
  • RQ2To what extent does the choice of feature set affect the generalizability of ML-based intrusion detection models in diverse IoT environments?
  • RQ3Which features contribute most significantly to the model’s classification decisions, as revealed by SHAP analysis?
  • RQ4Can SHAP-based explainability improve the trustworthiness and deployability of ML-based IDS in real-world IoT networks?

Key findings

  • The NetFlow feature set consistently improved detection accuracy across all three evaluated datasets (CSE-CIC-IDS2018, BoT-IoT, ToN-IoT) compared to CICFlowMeter.
  • Models trained on NetFlow features demonstrated better generalizability, indicating stronger robustness across varying network conditions and attack types.
  • SHAP analysis revealed that specific flow-level features (e.g., duration, byte counts, packet counts) had the highest influence on model predictions.
  • The interpretability provided by SHAP values enhanced model transparency, supporting potential deployment in production IoT security systems.
  • The study confirmed that feature set selection significantly impacts model performance and generalizability in cross-dataset evaluations.
  • The combination of NetFlow features and SHAP explainability offers a promising path toward practical, trustworthy ML-based intrusion detection in IoT networks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.