Chunyang Fan1,*, Shuoshuo Fang1, Chang Xia1, Lu Wei1, and Jing Zhang1
Chunyang Fan
1Key Laboratory of Intelligent Computing and Signal Processing of Ministry of Education, School of Computer Science and Technology, Anhui University, Hefei 230039, China, and Anhui Engineering Laboratory of IoT Security Technologies, Anhui University, Hefei 230039, China
*Corresponding author
Deep learning enables accurate network intrusion detection, but its opaque decisions limit its use in operational network and service management, where operators must validate alarms, diagnose threats, and justify mitigation actions. Existing global explanation methods often fail to provide a faithful yet concise view of a detector’s behavior across heterogeneous detection paradigms. We propose MEID, a Model-Agnostic Explanation Method for Deep Learning-Based Network Intrusion Detection Systems. MEID uses detector-derived continuous targets to train a lightweight decision tree whose rules describe the detector’s global decision logic. A global-perspective tree-construction algorithm evaluates the longer-term effect of candidate splits, while local sample augmentation refines ambiguous boundary regions. Adaptive differentiable pruning then learns node-level pruning decisions to balance fidelity and rule-set conciseness. The resulting rules provide operators with an auditable representation applicable to both supervised and unsupervised detectors. Experiments on CIC-IDS2017, UNSW-NB15, and NSL-KDD compare detector–surrogate agreement, robustness, and rule conciseness. The reported AE fidelity on CIC-IDS2017 is 99.45%. Throughout these experiments, positive and negative agreement are measured against detector predictions; they do not establish attack detection accuracy against ground-truth labels. The source code is publicly available at https://github.com/ImDaLaoshu/MEID.git.
Network and Service Management, Interpretability, Deep Learning, Intrusion Detection, Rule Extraction
Chunyang Fan, Shuoshuo Fang, Chang Xia, Lu Wei, and Jing Zhang (2026). MEID: A Model-Agnostic Explanation Method for Deep Learning-Based Network Intrusion Detection System. Journal of Networking and Network Applications, Volume 6, Issue 4, pp. 249–263. https://doi.org/10.33969/J-NaNA.2026.060405.
[1] C. Zha, Z. Wang, Y. Fan, B. Bai, Y. Zhang, S. Shi, and R. Zhang, “A-nids: Adaptive network intrusion detection system based on clustering and stacked ctgan,” IEEE Transactions on Information Forensics and Security, vol. 20, pp. 3204–3219, 2025.
[2] S. Muneer, U. Farooq, A. Athar, M. Ahsan Raza, T. M. Ghazal, and S. Sakib, “A critical review of artificial intelligence based approaches in intrusion detection: A comprehensive analysis,” Journal of Engineering, vol. 2024, no. 1, p. 3909173, 2024.
[3] F. Ceschin, M. Botacin, A. Bifet, B. Pfahringer, L. S. Oliveira, H. M. Gomes, and A. Grégio, “Machine learning (in) security: A stream of problems,” Digital Threats, vol. 5, no. 1, Mar. 2024.
[4] E. ¸SAHiN, N. N. Arslan, and D. Özdemir, “Unlocking the black box: an in-depth review on interpretability, explainability, and reliability in deep learning,” Neural Computing and Applications, vol. 37, no. 2, pp. 859–965, 2025.
[5] H. Hakkoum, A. Idri, and I. Abnane, “Global and local interpretability techniques of supervised machine learning black box models for numerical medical data,” Engineering Applications of Artificial Intelligence, vol. 131, p. 107829, 2024.
[6] S. R. A. Parisineni and M. Pal, “Enhancing trust and interpretability of complex machine learning models using local interpretable model agnostic shap explanations,” International Journal of Data Science and Analytics, vol. 18, no. 4, pp. 457–466, 2024.
[7] Y. Zhang, R. Li, N. Wu, Q. Li, X. Lin, Y. Hu, T. Li, and Y. Jiang, “Dissect black box: Interpreting for rule-based explanations in unsupervised anomaly detection,” in Advances in Neural Information Processing Systems, A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang, Eds., vol. 37. Curran Associates, Inc., 2024, pp. 84 169–84 196.
[8] T. Antamis, A. Drosou, T. Vafeiadis, A. Nizamis, D. Ioannidis, and D. Tzovaras, “Interpretability of deep neural networks: A review of methods, classification and hardware,” Neurocomputing, vol. 601, p. 128204, 2024.
[9] V. Hassija, V. Chamola, A. Mahapatra, A. Singal, D. Goel, K. Huang, S. Scardapane, I. Spinelli, M. Mahmud, and A. Hussain, “Interpreting Black-Box Models: A Review on Explainable Artificial Intelligence,” Cognitive Computation, vol. 16, no. 1, pp. 45–74, 2024.
[10] R. Achtibat, M. Dreyer, I. Eisenbraun, S. Bosse, T. Wiegand, W. Samek, and S. Lapuschkin, “From attribution maps to human-understandable explanations through concept relevance propagation,” Nature Machine Intelligence, vol. 5, no. 9, pp. 1006–1019, 2023.
[11] A. S. Jacobs, R. Beltiukov, W. Willinger, R. A. Ferreira, A. Gupta, and L. Z. Granville, “Ai/ml for network security: The emperor has no clothes,” in Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security, 2022, pp. 1537–1551.
[12] R. Li, Q. Li, Y. Zhang, D. Zhao, Y. Jiang, and Y. Yang, “Interpreting un-supervised anomaly detection in security via rule extraction,” Advances in Neural Information Processing Systems, vol. 36, pp. 62 224–62 243, 2023.
[13] D. Han, Z. Wang, R. Feng, M. Jin, W. Chen, K. Wang, S. Wang, J. Yang, X. Shi, X. Yin et al., “Rules refine the riddle: Global explanation for deep learning-based anomaly detection in security applications,” in Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security, 2024, pp. 4509–4523.
[14] T.-P. Nguyen, J. Cho, and D. Kim, “Semi-supervised intrusion detection system for in-vehicle networks based on variational autoencoder and adversarial reinforcement learning,” Knowledge-Based Systems, vol. 304, p. 112563, 2024.
[15] Z. Zhao, Z. Li, Z. Song, F. Zhang, and B. Chen, “Rids: Towards advanced ids via rnn model and programmable switches co-designed approaches,” in IEEE INFOCOM 2024-IEEE Conference on Computer Communications. IEEE, 2024, pp. 591–600.
[16] H. Zhang, H. Yue, X. Xiao, L. Yu, Q. Li, Z. Ling, and Y. Zhang, “Revolutionizing encrypted traffic classification with mh-net: A multi-view heterogeneous graph model,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 39, no. 1, 2025, pp. 1048–1056.
[17] L. Breiman, J. Friedman, R. A. Olshen, and C. J. Stone, Classification and regression trees. Chapman and Hall/CRC, 2017.
[18] R. Kairgeldin and M. A. Carreira-Perpiñán, “Bivariate decision trees: Smaller, interpretable, more accurate,” in Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, ser. KDD ’24. New York, NY, USA: Association for Computing Machinery, 2024, p. 1336–1347.
[19] A. Alsarhan, M. Alauthman, E. Alshdaifat, A.-R. Al-Ghuwairi, and A. Al-Dubai, “Machine learning-driven optimization for svm-based intrusion detection system in vehicular ad hoc networks,” Journal of Ambient Intelligence and Humanized Computing, vol. 14, no. 5, pp. 6113–6122, 2023.
[20] A. K. Balyan, S. Ahuja, U. K. Lilhore, S. K. Sharma, P. Manoharan, A. D. Algarni, H. Elmannai, and K. Raahemifar, “A hybrid intrusion detection model using egapso and improved random forest method,” Sensors, vol. 22, no. 16, p. 5986, 2022.
[21] N. Shone, T. N. Ngoc, V. D. Phai, and Q. Shi, “A deep learning approach to network intrusion detection,” IEEE Transactions on Emerging Topics in Computational Intelligence, vol. 2, no. 1, pp. 41–50, 2018.
[22] L. Mohammadpour, T. C. Ling, C. S. Liew, and A. Aryanfar, “A survey of cnn-based network intrusion detection,” Applied Sciences, vol. 12, no. 16, p. 8162, 2022.
[23] S. Akkepalli and K. Sagar, “Anomaly-based network intrusion detec-tion using hybrid cnn, bi-lstm deep learning techniques,” in 2024 4th International Conference on Innovative Research in Applied Science, Engineering and Technology (IRASET). IEEE, 2024, pp. 1–6.
[24] S. Li, Y. Cao, S. Liu, Y. Lai, Y. Zhu, and N. Ahmad, “Hda-ids: A hybrid dos attacks intrusion detection system for iot by using semi-supervised clgan,” Expert Systems with Applications, vol. 238, p. 122198, 2024.
[25] S. Vadigi, K. Sethi, D. Mohanty, S. P. Das, and P. Bera, “Federated reinforcement learning based intrusion detection system using dynamic attention mechanism,” Journal of Information Security and Applications, vol. 78, p. 103608, 2023.
[26] A. Touré, Y. Imine, A. Semnont, T. Delot, and A. Gallais, “A framework for detecting zero-day exploits in network flows,” Computer Networks, vol. 248, p. 110476, 2024.
[27] Y. Mirsky, T. Doitshman, Y. Elovici, and A. Shabtai, “Kitsune: An ensemble of autoencoders for online network intrusion detection,” in 25th Annual Network and Distributed System Security Symposium, NDSS 2018, San Diego, California, USA, February 18-21, 2018. The Internet Society, 2018.
[28] C. Fu, Q. Li, M. Shen, and K. Xu, “Realtime robust malicious traffic detection via frequency domain analysis,” in Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security, 2021, pp. 3431–3446.
[29] R. Li, Q. Li, J. Zhou, and Y. Jiang, “Adriot: An edge-assisted anomaly detection framework against iot-based network attacks,” IEEE Internet of Things Journal, vol. 9, no. 13, pp. 10 576–10 587, 2021.
[30] R. Ranjan and G. Sahoo, “A new clutering approach for anomaly intrusion detection,” International Journal of Data Mining & Knowledge Management Process, vol. 4, 04 2014.
[31] D. Li, D. Chen, B. Jin, L. Shi, J. Goh, and S.-K. Ng, “Mad-gan: Multivariate anomaly detection for time series data with generative adversarial networks,” in International conference on artificial neural networks. Springer, 2019, pp. 703–716.
[32] M. Vishwakarma and N. Kesswani, “A new two-phase intrusion detec-tion system with naïve bayes machine learning for data classification and elliptic envelop method for anomaly detection,” Decision Analytics Journal, vol. 7, p. 100233, 2023.
[33] M. T. Ribeiro, S. Singh, and C. Guestrin, “" why should i trust you?" explaining the predictions of any classifier,” in Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, 2016, pp. 1135–1144.
[34] S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Advances in Neural Information Processing Systems, I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, Eds., vol. 30. Curran Associates, Inc., 2017.
[35] A. Dhurandhar, P.-Y. Chen, R. Luss, C.-C. Tu, P. Ting, K. Shanmugam, and P. Das, “Explanations based on the missing: Towards contrastive explanations with pertinent negatives,” Advances in neural information processing systems, vol. 31, 2018.
[36] W. Guo, D. Mu, J. Xu, P. Su, G. Wang, and X. Xing, “Lemna: Explaining deep learning based security applications,” in Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security, ser. CCS ’18. New York, NY, USA: Association for Computing Machinery, 2018, p. 364–379.
[37] I. Sharafaldin, A. H. Lashkari, and A. A. Ghorbani, “Toward generating a new intrusion detection dataset and intrusion traffic characterization,” in Proceedings of the 4th International Conference on Information Systems Security and Privacy, ICISSP 2018, Funchal, Madeira - Portugal, Jan-uary 22-24, 2018, P. Mori, S. Furnell, and O. Camp, Eds. SciTePress, 2018, pp. 108–116.
[38] M. Sarhan, S. Layeghy, N. Moustafa, and M. Portmann, “Netflow datasets for machine learning-based network intrusion detection systems,” in Big data technologies and applications: 10th EAI international conference, BDTA 2020, and 13th EAI international conference on wireless internet, WiCON 2020, virtual event, December 11, 2020, proceedings 10. Springer, 2021, pp. 117–135.
[39] N. Moustafa, G. Creech, and J. Slay, “Big data analytics for intrusion detection system: Statistical decision-making using finite dirichlet mixture models,” Data Analytics and Decision Support for Cybersecurity: Trends, Methodologies and Applications, pp. 127–156, 2017.
[40] N. Moustafa, J. Slay, and G. Creech, “Novel geometric area analysis technique for anomaly detection using trapezoidal area estimation on large-scale networks,” IEEE Transactions on Big Data, vol. 5, no. 4, pp. 481–494, 2019.
[41] N. Moustafa and J. Slay, “The evaluation of network anomaly detection systems: Statistical analysis of the unsw-nb15 data set and the comparison with the kdd99 data set,” Information Security Journal: A Global Perspective, vol. 25, no. 1-3, pp. 18–31, 2016.
[42] N. Moustafa and J. Slay, “UNSW-NB15: a comprehensive data set for network intrusion detection systems (UNSW-NB15 network data set),” in 2015 Military Communications and Information Systems Conference, MilCIS 2015, Canberra, Australia, November 10-12, 2015. IEEE, 2015, pp. 1–6.
[43] G. Meena and R. R. Choudhary, “A review paper on ids classification using kdd 99 and nsl kdd dataset in weka,” in 2017 International Conference on Computer, Communications and Electronics (Comptelix). IEEE, 2017, pp. 553–558.
[44] E. Mosca, F. Szigeti, S. Tragianni, D. Gallagher, and G. Groh, “SHAP-based explanation methods: A review for NLP interpretability,” in Proceedings of the 29th International Conference on Computational Linguistics. Gyeongju, Republic of Korea: International Committee on Computational Linguistics, Oct. 2022, pp. 4593–4603.