IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0322737.html
   My bibliography  Save this article

Enhanced separation of long-term memory from short-term memory on top of LSTM: Neural network-based stock index forecasting

Author

Listed:
  • Hongfei Xiao

Abstract

LSTM (Long Short-Term Memory Network) is currently extensively utilized for forecasting financial time series, primarily due to its distinct advantages in separating the long-term from the short-term memory information within a sequence. However, the experimental results presented in this paper indicate that LSTM may struggle to clearly differentiate between these two types of information. To overcome this limitation, we propose the ARMA-RNN-LSTM Hybrid Model, aimed at enhancing the separation between the long-term and short-term memory information on top of LSTM framework. The experiment in this paper is inspired by an observation: when LSTMs and RNNs are respectively used to forecast the same time series that contains only short-term memory information, LSTMs exhibit significantly lower forecasting accuracy than RNNs, and we attributed this to LSTMs potentially misclassifying some short-term memory information as long-term during forecasting process. Further, we speculate that this confusion might also arise when LSTMs are used to forecast the time series containing both the long-term and short-term memory information. To verify the aforementioned hypothesis and improve the forecasting accuracy for financial time series, this paper combines RNNs with LSTMs, proposing a method of ARMA-RNN-LSTM Hybrid Modelling, and conducts an experiment with stock index prices. Eventually, the experiment results show that the ARMA-RNN-LSTM Hybrid Model outperforms standalone RNNs and LSTMs in forecasting stock index series containing both long-term and short-term memory information, confirming that the ARMA-RNN-LSTM Hybrid Model has effectively enhanced the separation between the long-term and short-term memory information within sequence. This hybrid modelling approach has innovatively addressed the issue of the confusion between the long-term and the short-term memory information in a sequence during LSTM’s forecasting process, improving the accuracy of forecasting financial time series, and demonstrates that neural network’s forecasting errors is a area worth to explore in the future.

Suggested Citation

  • Hongfei Xiao, 2025. "Enhanced separation of long-term memory from short-term memory on top of LSTM: Neural network-based stock index forecasting," PLOS ONE, Public Library of Science, vol. 20(6), pages 1-34, June.
  • Handle: RePEc:plo:pone00:0322737
    DOI: 10.1371/journal.pone.0322737
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0322737
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0322737&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0322737?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Pfaff, Bernhard, 2008. "VAR, SVAR and SVEC Models: Implementation Within R Package vars," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 27(i04).
    2. Wenjie Lu & Jiazheng Li & Yifan Li & Aijun Sun & Jingyang Wang, 2020. "A CNN-LSTM-Based Model to Forecast Stock Prices," Complexity, Hindawi, vol. 2020, pages 1-10, November.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Deborah Bentivoglio & Adele Finco & Mirian Rumenos Piedade Bacchi, 2016. "Interdependencies between Biofuel, Fuel and Food Prices: The Case of the Brazilian Ethanol Market," Energies, MDPI, vol. 9(6), pages 1-16, June.
    2. Thierry Moudiki & Frédéric Planchet & Areski Cousin, 2018. "Multiple Time Series Forecasting Using Quasi-Randomized Functional Link Neural Networks," Risks, MDPI, vol. 6(1), pages 1-20, March.
    3. Bruns, Stephan B. & König, Johannes & Stern, David I., 2019. "Replication and robustness analysis of ‘energy and economic growth in the USA: A multivariate approach’," Energy Economics, Elsevier, vol. 82(C), pages 100-113.
    4. Raja Ben Hajria & Salah Khardani & Hamdi Raïssi, 2017. "Testing the lag length of vector autoregressive models: A power comparison between portmanteau and Lagrange multiplier tests," Working Papers 2017-03, Escuela de Negocios y Economía, Pontificia Universidad Católica de Valparaíso.
    5. Barua, Ronil & Sharma, Anil K., 2022. "Dynamic Black Litterman portfolios with views derived via CNN-BiLSTM predictions," Finance Research Letters, Elsevier, vol. 49(C).
    6. João Sousa Andrade & Adelaide Duarte & Marta Simões, 2011. "Inequality and Growth in Portugal: a time series analysis," GEMF Working Papers 2011-11, GEMF, Faculty of Economics, University of Coimbra.
    7. Niels Haldrup & Carsten P. T. Rosenskjold, 2019. "A Parametric Factor Model of the Term Structure of Mortality," Econometrics, MDPI, vol. 7(1), pages 1-22, March.
    8. Accolley, Delali, 2018. "Accounting for Busines Cycles in Canada: II. The Role of Money," MPRA Paper 85481, University Library of Munich, Germany.
    9. Shakina, Elena & Parshakov, Petr & Alsufiev, Artem, 2021. "Rethinking the corporate digital divide: The complementarity of technologies and the demand for digital skills," Technological Forecasting and Social Change, Elsevier, vol. 162(C).
    10. Zhu, Changbo & Müller, Hans-Georg, 2024. "Spherical autoregressive models, with application to distributional and compositional time series," Journal of Econometrics, Elsevier, vol. 239(2).
    11. Yeager, Elizabeth A. & Featherstone, Allen M., 2011. "Impact of Changes in Energy Input Prices on Ethanol Importation and Prices," Journal of Agribusiness, Agricultural Economics Association of Georgia, vol. 29(2).
    12. Yang, Jiahao & Fang, Ran & Zhang, Ming & Zhang, Wenkai & Zhou, Jun, 2025. "Enhancing stock ranking forecasting by modeling returns with heteroscedastic Gaussian Distribution," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 664(C).
    13. Basellini, Ugofilippo & Kjærgaard, Søren & Camarda, Carlo Giovanni, 2020. "An age-at-death distribution approach to forecast cohort mortality," Insurance: Mathematics and Economics, Elsevier, vol. 91(C), pages 129-143.
    14. Ibrahim, Omar, 2021. "Measuring the Output Effects of Fiscal Policy in Egypt: A Disaggregated Structural VAR Analysis," MPRA Paper 110962, University Library of Munich, Germany.
    15. Dimiter Toshkov, 2011. "Public opinion and policy output in the European Union: A lost relationship," European Union Politics, , vol. 12(2), pages 169-191, June.
    16. Marie-Christine Duker & David S. Matteson & Ruey S. Tsay & Ines Wilms, 2024. "Vector AutoRegressive Moving Average Models: A Review," Papers 2406.19702, arXiv.org.
    17. A. Ntamjokouen & S. Haberman & G. Consigli, 2017. "Projecting the long run relationship of Multi-population life expectancy by race," Journal of Statistical and Econometric Methods, SCIENPRESS Ltd, vol. 6(2), pages 1-3.
    18. Laura H Gunn & Enrique ter Horst & Talar W Markossian & German Molina, 2018. "Online interest regarding violent attacks, gun control, and gun purchase: A causal analysis," PLOS ONE, Public Library of Science, vol. 13(11), pages 1-15, November.
    19. Będowska-Sójka, Barbara & Kliber, Agata, 2022. "Can cryptocurrencies hedge oil price fluctuations? A pandemic perspective," Energy Economics, Elsevier, vol. 115(C).
    20. Miguel Fernandes & João S. Andrade & Adelaide Duarte & Marta Simões, 2022. "Inequality and growth in Portugal: A reappraisal for the period 1986–2017," Poverty & Public Policy, John Wiley & Sons, vol. 14(1), pages 25-49, March.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0322737. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.