An enhancement of stock price forecasting based on hybrid BiLSTM-Transformer model

Pham Hoang Vuong, Lam Hung Phu, Le Nhat Duy, Pham The Bao, Tan Dat Trinh

Abstract


Stock price forecasting presents a challenging problem due to factors like nonlinearity, seasonality, and economic volatility in financial data. Deep learning approaches can handle nonlinearity and complexity of financial data, but they often face limitations in capturing both local and global dependencies. This study introduces a hybrid Transformer–bidirectional long short-term memory (BiLSTM) model to improve stock price forecasting. Our method combines the strength of BiLSTM with the global context understanding of the Transformer by embedding a 1D convolutional layer. The model can efficiently capture short-term and long-term dependencies in stock data. Experimental results on various datasets show that our hybrid model outperforms other well-known models.

Keywords


BiLSTM; Deep learning; Hybrid model; Stock price forecasting; Transformer model

Full Text:

PDF


DOI: http://doi.org/10.11591/ijece.v16i3.pp1298-1306

Copyright (c) 2026 The Bao Pham, Hoang Vuong Pham, Hung Phu Lam, Duy Le, Tan Dat Trinh

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

International Journal of Electrical and Computer Engineering (IJECE)
p-ISSN 2088-8708, e-ISSN 2722-2578

This journal is published by the Institute of Advanced Engineering and Science (IAES).