Stock market prediction using bidirectional LSTM networks optimized by balanced sunflower optimization algorithm
Precise stock market prediction is challenging due to the nonlinear, turbulent, and long term natural of the financial timeseries data. ARIMA and GARCH models cannot address this complexity. On the other side, deep learning models such as LSTMs are extremely sensitive to hyperparameter tuning. This paper develops a hybrid framework, called BiLSTM-BSFO that includes Bidirectional LSTM and Balanced Sunflower Optimization algorithm to obtain higher prediction performance. BiLSTM deals with bidirectional temporal dependencies and BSFO automatically tunes the hyperparameters in balanced way both exploration globally and exploitation locally. In this paper, the historical data of Apple(AAPL) traded in NYSE is utilized, and the proposed BiLSTM-BSFO achieves a 20.5% relative reduction in RMSE compared to CNN-LSTM under the optimized validation configuration, and a 10.2–40.0% relative reduction compared to single models (LSTM, CNN, SVM) on the held-out test set and 27 ~ 40% higher than the single models of LSTM, CNN and SVM. The prediction R² obtained by proposed model is1% higher than CNNLSTM and 3 ~ 6% higher than the predictions of ANN, BiLSTM, SVM. BSFO convergence takes 30 times of iteration and the optimization efficiency is enhanced 35 ~ 50% than BOA, GSK, WSO and GO.
Authors
- Fang Liuyue
- Niu Ke
Institutions
- Qilu University of Technology (CN)
- Guangzhou Vocational College of Science and Technology (CN)
- Guangzhou Electronic Technology (China) (CN)
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-11-30
- DOI
- https://doi.org/10.1038/s41598-026-74453-z
- Primary Topic
- Stock Market Forecasting Methods
- Type
- article
- Field-Weighted Citation Impact
- 0.00