Jurnal Masyarakat Informatika
Vol 17, No 2 (2026): November 2026 (Ongoing Issue)

Comparative Evaluation of FinBERT and IndoBERT for LSTM-Based Stock Price Prediction in Indonesia

Heri Santosa (Department of Computer Science, Universitas Amikom Yogyakarta, Yogyakarta)
Kusrini Kusrini (Department of Computer Science, Universitas Amikom Yogyakarta, Yogyakarta)
Rodrígo Martínez-Béjar (Department of Computer Science, Universidad de Murcia)



Article Info

Publish Date
03 Aug 2026

Abstract

Stock price prediction remains challenging due to the nonlinear and dynamic behavior of financial markets, where price movements are influenced not only by historical market data but also by investor sentiment reflected in financial news. This study investigates the effectiveness of sentiment integration for stock price prediction by comparing FinBERT, a financial domain-specific language model, and IndoBERT, a language-specific Indonesian language model, within an LSTM-based forecasting framework. Experiments were conducted using daily stock price data and financial news collected for three Indonesian stocks (BBCA, BBRI, and BSDE) over the period 2019–2025. Sentiment scores extracted from financial news were aggregated on a daily basis and incorporated as additional features alongside historical price variables. Model performance was evaluated using MAE, RMSE, MAPE, R², and Directional Accuracy. The results indicate that sentiment-enhanced models do not consistently improve numerical forecasting accuracy compared with the baseline LSTM model. However, sentiment integration does not consistently improve directional prediction, although limited stock-specific differences are observed under certain stock-specific conditions. Comparative analysis further shows that neither FinBERT nor IndoBERT consistently outperforms the other across all datasets and metrics, suggesting that sentiment effectiveness is highly dependent on linguistic context and market characteristics. These findings highlight that sentiment information should be incorporated selectively rather than assumed to universally improve stock forecasting performance in emerging markets.

Copyrights © 2026






Journal Info

Abbrev

jmasif

Publisher

Subject

Computer Science & IT

Description

JURNAL MASYARAKAT INFORMATIKA - JMASIF is a Journal published by the Department of Informatics, Universitas Diponegoro invites lecturers, researchers, students (Bachelor, Master, and Doctoral) as well as practitioners in the field of computer science and informatics to contribute to JMASIF in the ...