Sign inSubmit
computersciencejournal.org is not ours. This journal is published only at thescipub.com/jcs. Report a suspicious emailcomputersciencejournal.org is not ours · Report
ArticleMetrics
Research Article · Open access · Published 4 March 2026

LSTM-Based AI Model for Sinkhole Attack Detection With Legal Basis in an Ecuadorian Public Institution

Estefanía Alejandra Mora Parra1, Rubén Nogales Portero1, Moisés Toapanta T.2, Estefanía Monge Martínez2, Santiago Vayas Castro2, Jeanette Elizabeth Jordán Buenaño2, Juan Escobar Naranjo1, Diego Gustavo Andrade Armas3 & Rodrigo Del Pozo Durango4

Journal of Computer Science, Volume 22, Issue 3, pp. 766–777 · doi.org/10.3844/jcssp.2026.766.777

1,648 accesses943 downloads0 citations (Crossref)Metrics
Cite Check for updates

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.

Licence and reuse

Open access. This article is licensed under a Creative Commons Attribution 4.0 International Licence (CC BY 4.0), as printed on the article, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original authors and the source. No permission is needed.

How to reuse this article

Responses (0)

Have a comment on this research? Sign in to respond. Responses are moderated and published with your name and affiliation; the authors are invited to reply. How we use your dataWrite a response

About this article

Cite this article

Parra, E. A. M., Portero, R. N., T., M. T., Martínez, E. M., Castro, S. V., Buenaño, J. E. J., Naranjo, J. E., Armas, D. G. A. & Durango, R. D. P. (2026). LSTM-Based AI Model for Sinkhole Attack Detection With Legal Basis in an Ecuadorian Public Institution. Journal of Computer Science, 22(3), 766–777. https://doi.org/10.3844/jcssp.2026.766.777

Licence
CC BY 4.0
Issue
Volume 22, Issue 3
Policies
Editorial independenceUse of generative AIData availabilityAppeals and complaints
Version
Version of record
LSTM-Based AI Model for Sinkhole Attack Detection With Legal Basis in an Ecuadorian Public InstitutionJournal of Computer Science · Volume 22, Issue 3 · pp. 766–777 · CC BY 4.0Download