Um estudo de caso da inteligência artificial explicável aplicada na detecção de intrusão em redes IoT
Keywords:
Inteligência Artificial Explicável. Shapley Additive Explanations. Internet das Coisas. Random Forest. LightGBM. Multilayer Perceptron.Abstract
O crescimento de dispositivos de Internet das Coisas (IoT) desafia a cibersegurança e demanda mecanismos eficazes para detecção de intrusão baseados em modelos de aprendizado de máquina. Diante da importância de explicar decisões automatizadas, surge a pergunta de pesquisa: como a inteligência artificial explicável (XAI) explica intrusões detectadas com aprendizado de máquina? Este trabalho investiga o uso de XAI com Shapley Additive Explanations (SHAP) em três modelos para detecção de intrusão em redes IoT: Random Forest, LightGBM e Multilayer Perceptron (MLP). Utilizando o dataset NSL-KDD, foram geradas explicações globais para identificar os atributos relevantes para as predições. O SHAP permitiu identificar atributos relevantes para as predições, evidenciando maior similaridade entre os modelos Random Forest e LightGBM, enquanto o MLP apresenta menor correlação e se apoia em atributos distintos. A pesquisa reforça a importância da interpretabilidade na detecção de intrusão em redes IoT automatizada com modelos de aprendizado de máquina.
Downloads
References
AGGARWAL, P.; SHARMA, S. K. Analysis of KDD Dataset Attributes – Class wise for Intrusion Detection. Procedia Computer Science, Amsterdã, v. 57, p. 842–851, 2015.
ALI, Sajid et al. Explainable Artificial Intelligence (XAI): What we know and what is left to attain Trustworthy Artificial Intelligence. Information fusion, Amsterdã, v. 99, p. 101805, 2023.
ARRECHE, Osvaldo; GUNTUR, Tanish; ABDALLAH, Mustafa. Xai-ids: Toward proposing an explainable artificial intelligence framework for enhancing network intrusion detection systems. Applied Sciences, Basel, Switzerland, v. 14, n. 10, p. 4170, 2024.
AWAN, Abid Ali. An Introduction to SHAP Values and Machine Learning Interpretability. 2023. Disponível em: https://www.datacamp.com/tutorial/introduction-to-shap-values-machine-learning-interpretability. Acesso em: 23 dez. 2025.
BAND, Shahab S. et al. Application of explainable artificial intelligence in medical health: A systematic review of interpretability methods. Informatics in Medicine Unlocked, Amsterdã, v. 40, p. 101286, 2023.
BREIMAN, Leo. Random forests. Machine learning, Berlim, v. 45, n. 1, p. 5–32, 2001.
ČERNEVIČIENĖ, Jurgita; KABAŠINSKAS, Audrius. Explainable artificial intelligence (XAI) in finance: a systematic literature review. Artificial Intelligence Review, Cham, v. 57, n. 8, p. 216, 2024.
CLOUDFLARE. O que é um ataque de negação de serviço (DoS)?. 2024. Disponível em: https://www.cloudflare.com/pt-br/learning/ddos/glossary/denial-of-service. Acesso em: 23 dez. 2025.
CYNET. Understanding Privilege Escalation and 5 Common Attack Techniques. 2025. Disponível em: https://www.cynet.com/network-attacks/privilege-escalation. Acesso em: 23 dez. 2025.
DOSHI-VELEZ, Finale; KIM, Been. Towards a rigorous science of interpretable machine learning. arXiv preprint, New York, n. 1702.08608, 2017. Disponível em: https://arxiv.org/abs/1702.08608. Acesso em: 07 jan. 2026.
GOODFELLOW, Ian; BENGIO, Yoshua; COURVILLE, Aaron. Deep Learning. Cambridge: MIT Press, 2016.
GUNNING, David et al. XAI - Explainable artificial intelligence. Science robotics, Washington, v. 4, n. 37, p. eaay7120, 2019.
HUNTER, J. D. Matplotlib: A 2d graphics environment. Computing in Science & Engineering, Piscataway, v. 9, n. 3, p. 90–95, 2007.
KE, Guolin et al. Lightgbm: a highly efficient gradient boosting decision tree. In: INTERNATIONAL CONFERENCE ON NEURAL INFORMATION PROCESSING SYSTEMS, 31, 2017, Red Hook. NEURIPS. 2017. p. 3149–3157.
KERAS. Keras: Deep Learning for humans. 2025. Disponível em: https://keras.io/. Acesso em: 23 dez. 2025.
KHAMPHAKDEE, Nattawat; BENJAMAS, Nunnapus; SAIYOD, Saiyan. Improving intrusion detection system based on snort rules for network probe attack detection. In: INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGY, 2, 2014, Bandung. ICOICT. 2014, p. 69-74.
LIGHTGBM. LightGBM 4.6.0 documentation. 2025. Disponível em: https://lightgbm.readthedocs.io/en/stable/. Acesso em: 23 dez. 2025.
LUNDBERG, Scott M.; LEE, Su-In. A unified approach to interpreting model predictions. In: INTERNATIONAL CONFERENCE ON NEURAL INFORMATION PROCESSING SYSTEMS, 31, 2017, Red Hook. NEURIPS. 2017. p. 4768–4777.
LUNDBERG, Scott M. et al. From local explanations to global understanding with explainable AI for trees. Nature machine intelligence, Basingstoke, UK, v. 2, n. 1, p. 56-67, 2020.
MANKODIYA, Harsh et al. OD-XAI: Explainable ai-based semantic object detection for autonomous vehicles. Applied Sciences, Basel, v. 12, n. 11, p. 5310, 2022.
LUNDBERG, Scott. Welcome to the SHAP documentation. 2018. Disponível em: https://shap.readthedocs.io/en/latest/index.html. Acesso em: 23 dez. 2025.
NUMPY. NumPy. 2025. Disponível em: https://numpy.org/. Acesso em: 23 dez. 2025.
PANDAS. Pandas - Python Data Analysis Library. 2025. Disponível em: https://pandas.pydata.org/. Acesso em: 23 dez. 2025.
SCIKIT-LEARN. Scikit-learn: machine learning in Python — scikit-learn 1.7.0 documentation. 2025. Disponível em: https://scikit-learn.org/stable/. Acesso em: 23 dez. 2025.
SCIPY. Spearman - Scipy. 2024. Disponível em: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.spearmanr.html. Acesso em: 07 jan 2026.
SOUZA, Cristiano Antônio de. Abordagem para detecção e prevenção de intrusão em computação de nevoeiro e IoT. Tese (Doutorado em Ciência da Computação). Universidade Federal de Santa Catarina (UFSC), Florianópolis, 2023.
STATISTA. IoT connections and applications. In: Internet of Things (IoT) - statistics & facts. 2024. Disponível em: https://www.statista.com/topics/2637/internet-of-things/#topicOverview. Acesso em: 23 dez. 2025.
TAVALLAEE, Mahbod et al. A detailed analysis of the kdd cup 99 data set. In: IEEE SYMPOSIUM ON COMPUTATIONAL INTELLIGENCE FOR SECURITY AND DEFENSE APPLICATIONS, 2, 2009, Ottawa. CISDA. 2009. p. 1–6.
TENSORFLOW. TensorFlow. 2025. Disponível em: https://www.tensorflow.org. Acesso em: 23 dez. 2025.
UNB, University of New Brunswick. ISCX NSL-KDD dataset 2009. 2009. Disponível em: https://www.unb.ca/cic/datasets/nsl.html. Acesso em: 23 dez. 2025.
WASKOM, Michael L. Seaborn: statistical data visualization. Journal of Open Source Software, Portland, v. 6, n. 60, p. 3021, 2021.
WAZLAWICK, Raul S. Metodologia de Pesquisa para Ciência da Computação. 3. ed. Rio de Janeiro: GEN LTC, 2020.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Revista Brasileira de Iniciação Científica

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

