2605004017
  • Open Access
  • Article

A BiLSTM–MLP–ReCast Method for Stock Price Forecasting

  • Feng Chen 1,   
  • Xinggui Li 1,   
  • Ruofeng Rao 2,   
  • Jing Zhang 1,*

Received: 30 Mar 2026 | Revised: 22 May 2026 | Accepted: 22 May 2026 | Published: 17 Jul 2026

Abstract

As financial market conditions continue to evolve, stock price sequences often exhibit strong nonlinear and nonstationary characteristics, reducing the effectiveness of traditional forecasting approaches. This paper proposes a stock price forecasting model based on the BiLSTM-MLP-ReCast framework. The model employs BiLSTM to capture bidirectional temporal dependencies in price sequences, integrates an MLP at the output stage for nonlinear transformation and introduces the ReCast mechanism to refine residual components, thereby mitigating lag effects and systematic bias. The framework is trained in an end-to-end manner, enabling joint optimization of temporal feature extraction, nonlinear mapping, and residual adjustment. Experimental results on three real-world stock datasets, including Google, Amazon, and Microsoft, demonstrate the effectiveness of the proposed framework. The complete BiLSTM-MLP-ReCast model achieved an R2 of 0.9068 and an RMSE of 0.0520 on the Microsoft dataset. In addition, the model achieved the lowest MAPE values of 5.20% on Microsoft and 8.88% on Amazon, indicating improved prediction accuracy and robustness compared with conventional baseline models.

References 

  • 1.

    Sezer, O.B.; Gudelek, M.U.; Ozbayoglu, A.M. Financial time series forecasting with deep learning: A systematic literature review: 2005–2019. Appl. Soft Comput. 2020, 90, 106181. https://doi.org/10.1016/j.asoc.2020.106181.

  • 2.

    Fischer, T.; Krauss, C. Deep learning with long short-term memory networks for financial market predictions. Eur. J. Oper. Res. 2018, 270, 654–669.

  • 3.

    Pawar, K.; Jalem, R.S.; Tiwari, V. Stock Market Price Forecasting Using LSTM RNN. In Emerging Trends in Expert Applications and Security; Springer: Singapore, 2018; pp. 493–503.

  • 4.

    Kehinde, T.O.; Chan, F.T.S.; Chung, S.H. Scientometric review and analysis of recent approaches to stock market forecasting: Two decades survey. Expert Syst. Appl. 2023, 213, 119299. https://doi.org/10.1016/j.eswa.2022.119299.

  • 5.

    Valova, I.; Gueorguieva, N.; Aayushi, T.; et al. Hybrid Deep Learning Architectures for Stock Market Forecasting. In Proceedings of the 9th World Congress on Electrical Engineering and Computer Systems and Sciences (EECSS’23), London, UK, 3–5 August 2023.

  • 6.

    Mehtab, S.; Sen, J.; Dutta, A. Stock Price Prediction Using Machine Learning and LSTM-Based Deep Learning Models. In Machine Learning and Metaheuristics Algorithms, and Applications; Springer: Singapore, 2021; pp. 88–106.

  • 7.

    Sang, S.; Li, L. A Stock Prediction Method Based on Heterogeneous Bidirectional LSTM. Appl. Sci. 2024, 14, 9158. https://doi.org/10.3390/app14209158.

  • 8.

    Jayanth, T.; Manimaran, A.; Siva, G. Enhancing Stock Price Forecasting with a Hybrid SES-DA-BiLSTM-BO Model. IEEE Access 2024, 12, 173618–173637.

  • 9.

    Zhang, J.; Ye, L.; Lai, Y. Stock Price Prediction Using CNN-BiLSTM-Attention Model. Mathematics 2023, 11, 1985. https://doi.org/10.3390/math11091985.

  • 10.

    Varshney, R.P.; Sharma, D.K. Optimizing Time-Series Forecasting Using Stacked Deep Learning Framework with Error Correction. Expert Syst. Appl. 2024, 249, 123487.

  • 11.

    Siami-Namini, S.; Tavakoli, N.; Namin, A.S. The Performance of LSTM and BiLSTM in Forecasting Time Series. In Proceedings of the 2019 IEEE International Conference on Big Data (Big Data), Los Angeles, CA, USA, 9–12 December 2019.

  • 12.

    Karim, M.E.; Foysal, M.; Das, S. Stock Price Prediction Using Bi-LSTM and GRU-Based Hybrid Deep Learning Approach. In Proceedings of Third Doctoral Symposium on Computational Intelligence; Springer Nature: Singapore, 2023; pp. 701–711.

  • 13.

    Oyewola, D.O.; Kehinde, T.O.; Akinwunmi, S.A.; et al. Stock market prediction with optimized PLSTM-AL in smart urban cities. Financ. Res. Open 2025, 1, 100019. https://doi.org/10.1016/j.finr.2025.100019.

  • 14.

    Khan, W.A.; Chung, S.H.; Liu, S.Q.; et al. Smoothing and Matrix Decomposition-Based Stacked Bidirectional GRU Model for Machine Downtime Forecasting. IEEE Trans. Syst. Man Cybern. Syst. 2025, 55, 7215–7227.

  • 15.

    Pan, W.; Liu, S.Q.; Kumral, M.; et al. Iron Ore Price Forecast based on a Multi-Echelon Tandem Learning Model. Nat. Resour. Res. 2024, 33, 1969–1992. https://doi.org/10.1007/s11053-024-10360-2.

  • 16.

    Khan, W.A.; Chung, S.; Awan, M.U.; et al. Machine learning facilitated business intelligence (Part I): Neural networks learning algorithms and applications. Ind. Manag. Data Syst. 2020, 120, 164–195.

  • 17.

    Chen, Q.; Zhang, W.; Lou, Y. Forecasting Stock Prices Using a Hybrid Deep Learning Model Integrating Attention Mechanism, Multi-Layer Perceptron, and Bidirectional Long-Short Term Memory Neural Network. IEEE Access 2020, 8, 117365–117376. https://doi.org/10.1109/access.2020.3004284.

  • 18.

    Kehinde, T.O.; Adedokun, O.J.; Kareem, M.K.; et al. STL-ELM: A computationally efficient hybrid approach for predicting high volatility stock market. Intell. Syst. Appl. 2025, 27, 200564.

  • 19.

    Li, J.; Li, Z.; Lei, W. The LSTM Model with Error Rectification in Stock Price Prediction. In Proceedings of the 2021 3rd International Conference on Machine Learning, Big Data and Business Intelligence (MLBDBI), Taiyuan, China, 3–5 December 2021. https://doi.org/10.1109/mlbdbi54094.2021.00035.

  • 20.

    Zhang, S.; Chen, Y.; Zhang, W.; et al. A Novel Ensemble Deep Learning Model with Dynamic Error Correction. Inf. Sci. 2021, 544, 427–445.

  • 21.

    Wan, W.D.; Bai, Y.; Lu, Y.N.; et al. A Hybrid Model Combining a Gated Recurrent Unit Network Based on Variational Mode Decomposition with Error Correction for Stock Price Prediction. Cybern. Syst. 2024, 55, 1205–1229. https://doi.org/10.1080/01969722.2022.2137634.

  • 22.

    Pascanu, R.; Mikolov, T.; Bengio, Y. On the Difficulty of Training Recurrent Neural Networks. In Proceedings of the 30th International Conference on Machine Learning, Atlanta, GA, USA, 16–21 June 2013; pp. 1310–1318.

  • 23.

    Kim, T.; Kim, H.Y. Forecasting Stock Prices with a Feature Fusion LSTM-CNN Model. PLoS ONE 2019, 14, e0212320.

  • 24.

    Khashei, M.; Bijari, M. A novel hybridization of artificial neural networks and ARIMA models for time series forecasting. Appl. Soft Comput. 2011, 11, 2664–2675. https://doi.org/10.1016/j.asoc.2010.10.015.

  • 25.

    Farhadi, A.; Zamanifar, A.; Alipour, A.; et al. A Hybrid LSTM-GRU Model for Stock Price Prediction. IEEE Access 2025, 13, 117594–117618. https://doi.org/10.1109/access.2025.3586558.

  • 26.

    Liu, Z. Improving Stock Price Forecasting with M-A-BiLSTM: A Novel Approach. Front. Appl. Math. Stat. 2025, 11, 1588202.

  • 27.

    He, K.; Zhang, X.; Ren, S.; et al. Deep Residual Learning for Image Recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778.

  • 28.

    He, K.; Zhang, X.; Ren, S.; et al. Identity Mappings in Deep Residual Networks. In Proceedings of the 14th European Conference, Amsterdam, The Netherlands, 11–14 October 2016; pp. 630–645.

  • 29.

    Zhang, G.P. Time Series Forecasting Using a Hybrid ARIMA and Neural Network Model. Neurocomputing 2003, 50, 159–175. https://doi.org/10.1016/s0925-2312(01)00702-0.

  • 30.

    Liu, Y.; Duan, J.; Meng, J. Difference Attention Based Error Correction LSTM Model for Time Series Prediction. J. Phys. Conf. Ser. 2020, 1550, 032121.

  • 31.

    Jiang, W. Applications of deep learning in stock market prediction: Recent progress. Expert Syst. Appl. 2021, 184, 115537. https://doi.org/10.1016/j.eswa.2021.115537.

  • 32.

    Gu, S.; Kelly, B.; Xiu, D. Empirical asset pricing via machine learning. Rev. Financ. Stud. 2020, 33, 2223–2273. https://doi.org/10.1093/rfs/hhaa009.

  • 33.

    Makridakis, S.; Spiliotis, E.; Assimakopoulos, V. M5 accuracy competition: Results, findings, and conclusions. Int. J. Forecast. 2022, 38, 1346–1364.

  • 34.

    Wen, Q.; Zhou, T.; Zhang, C.; et al. Transformers in time series: A survey. In Proceedings of the 32nd International Joint Conference on Artificial Intelligence (IJCAI 2023), Macao, China, 19–25 August 2023; pp. 6750–6757.

Share this article:
How to Cite
Chen, F.; Li, X.; Rao, R.; Zhang, J. A BiLSTM–MLP–ReCast Method for Stock Price Forecasting. Complex Systems Stability & Control 2026, 2 (3), 6. https://doi.org/10.53941/cssc.2026.100017.
RIS
BibTex
Copyright & License
article copyright Image
Copyright (c) 2026 by the authors.