Energy: Jurnal Ilmiah Ilmu-ilmu Teknik
Vol. 15 No. 2 (2025): ENERGY: JURNAL ILMIAH ILMU-ILMU TEKNIK (July-November 2025 Edition)

Optimization of the Recurrent Neural Network (RNN) Model for SQL Injection Intrusion Detection In Databases

Turmuzi (Master Informatics Engineering, Amikom Yogyakarta University, 55283, Indonesia)
Kusrini (Master Informatics Engineering, Amikom Yogyakarta University, 55283, Indonesia)



Article Info

Publish Date
22 Aug 2025

Abstract

This study aims to optimize the Recurrent Neural Network (RNN) model, particularly using Long Short-Term Memory (LSTM) layers, for detecting SQL injection attacks in database systems. SQL injection remains a critical cybersecurity threat, capable of compromising sensitive data and damaging organizational integrity. Using a dataset sourced from Kaggle, the research explores various hyperparameter combinations, including activation functions (Softmax, Tanh, ReLU, PReLU, and LReLU), optimizers (Adam, SGD), learning rates (0.001, 0.0001), and regularization methods (Dropout and L2). Experimental results show that the highest model performance was achieved using the Tanh activation function, Adam optimizer, a learning rate of 0.001, and 100 epochs—resulting in an accuracy of 98.17% and a loss value of 0.4084. Tanh also performed well with slightly lower accuracy. The findings demonstrate that using adaptive optimizers like Adam and non-saturating activation functions significantly improves model performance. The study also addresses challenges such as class imbalance and emphasizes the importance of comprehensive evaluation metrics beyond accuracy. These results confirm that an optimized RNN-LSTM model offers high detection accuracy with low false positive rates, suitable for real-time intrusion detection systems. This research contributes to strengthening database security and serves as a foundation for further development in intelligent threat detection models.

Copyrights © 2025






Journal Info

Abbrev

energy

Publisher

Subject

Automotive Engineering Chemical Engineering, Chemistry & Bioengineering Civil Engineering, Building, Construction & Architecture Computer Science & IT Control & Systems Engineering Earth & Planetary Sciences Electrical & Electronics Engineering Energy Engineering Industrial & Manufacturing Engineering Materials Science & Nanotechnology Mechanical Engineering

Description

Energy Journal serves as a platform for information and communication of various research findings and scientific writings in the field of engineering, contributed by practitioners, researchers, and academics who are involved in and have a keen interest in the development of science and technology. ...