LSTM-Based AI Model for Sinkhole Attack Detection With Legal Basis in an Ecuadorian Public Institution
- 1 Carrera Ingeniería en Sistemas, Electrónica e Industrial, Universidad Técnica de Ambato, Av. Chasquis, Ambato, Ecuador
- 2 Carrera de Derecho, Universidad Técnica de Ambato, Av. Chasquis, Ambato, Ecuador
- 3 Subsistema de Posgrados, U Centro de Estudios de Seguridad (CESEG), Universidad de Santiago de Compostela (USC), Av. Doctor Ángel Echeverri s/n, Compostela, Spain
- 4 Carrera de Software y Tecnologías de la Información, Universidad Estatal de Bolívar, Av. Ernesto Che Guevara s/n y Av. Gabriel Secaira, Guaranda, Ecuador
Abstract
Wireless Sensor Networks (WSN) are an essential component of the Internet of Things (IoT). However, their decentralized nature, data transmission over unencrypted channels, and the physical exposure of nodes make them especially vulnerable to attacks, among which the sinkhole attack stands out. This research aims to develop a machine learning–based model to detect sinkhole‐type attacks in wireless sensor networks, with the purpose of strengthening the security and resilience of a public institution. The deductive method was used to analyze the legal framework and technical background, and the experimental method was used for the design and evaluation of the detection model. The results obtained include an LSTM model trained on data from a network simulation conducted in Contiki with the Cooja simulator. The model achieved 98 accuracy, 96 precision, 97 recall, and a 96% F1‐score. It was concluded that this neural network based model offers a promising solution to enhance WSN security in IoT environments.
DOI: https://doi.org/10.3844/jcssp.2026.766.777
Copyright: © 2026 Estefanía Alejandra Mora Parra, Rubén Nogales Portero, Moisés Toapanta T., Estefanía Monge Martínez, Santiago Vayas Castro, Jeanette Elizabeth Jordán Buenaño, Juan Escobar Naranjo, Diego Gustavo Andrade Armas and Rodrigo Del Pozo Durango. This is an open access article distributed under the terms of the
Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
- 89 Views
- 20 Downloads
- 0 Citations
Download
Keywords
- Sinkhole Attack
- Legal Basis
- Machine Learning
- WSN
- Public Institution