Comparative Analysis of Activation Functions in LSTM Models for Predicting Bank BNI Stock Prices
Keywords:
Stock prediction, BNI bank, activation function, LSTM, deep learningAbstract
The Indonesian capital market has experienced rapid development in the last two decades, with the banking sector as one of the main drivers. Stock price prediction is a crucial aspect for investors and market players to minimize risk and optimize investment strategies. Price fluctuations influenced by fundamental factors, market sentiment, and external conditions make prediction a complex challenge. This study aims to compare the performance of four activation functions: Rectified Linear Unit (ReLU), hyperbolic tangent (Tanh), Sigmoid, and Softplus, in the Long Short-Term Memory (LSTM) model in predicting the stock price of Bank Negara Indonesia (BNI). The method used is a quantitative approach with experiments, using historical data of BNI's closing stock prices for the period May 1, 2020, to April 30, 2025, obtained from Yahoo Finance. The data is processed through cleaning, normalization, transformation into a supervised learning format, and division into training data (80%) and test data (20%). Performance evaluation is carried out using RMSE, MAE, MAPE, and R² metrics. The results showed that the Softplus activation function produced the best performance with RMSE 128.714, MAE 101.815, MAPE 2.358%, and R² 0.924, followed by ReLU which had competitive performance and more efficient training time. The Tanh activation function was in the middle position, while Sigmoid showed the lowest performance. These findings indicate that Softplus and ReLU are optimal choices for BNI stock price prediction using LSTM, with Softplus excelling in accuracy and ReLU providing a balance between performance and efficiency.Published
Issue
Section
Copyright (c) 2025 Astrid Sulistya Azahra, Moch Panji Agung Saputra, Rizki Apriva Hidayana

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
With the receipt of the article by Editorial Board of the International Journal of Global Operations Research (IJGOR) and it was decided to be published, then the copyright regarding the article will be diverted to IJGOR
International Journal of Global Operations Research (IJGOR) hold the copyright regarding all the published articles and has the right to multiply and distribute the article under Creative Commons Atribusi 4.0 Internasional.
Copyright tranfer statement the author to the journal is done through filling out the copyright transfer form by author. The form can be downloaded HERE.