Stock market predictive modeling using recurring neural network with long short-term architecture
Fahim Afzal
Hohai University Business School, , Nanjing,
Open-access research dispatch from Harvard Business School, indexed under Quant & Systems (2 peer citations).
Purpose The fast development of artificial intelligence (AI) and machine learning techniques can help develop precise and trustworthy forecasting models with precision to predict the volatile and irregular stock behavior in the market. The purpose of this paper is to develop a robust predictive model that has the potential to use AI in enhancing the accuracy of stock market profit assessment. This study evaluates the effectiveness of a long short-term memory (LSTM) model for predicting the stock market behavior by incorporating key economic factors.
Design/methodology/approach This study constructs an LSTM model that incorporates economic factors influencing stock market direction, including interest rates, inflation, GDP and unemployment rates. These indicators are selected based on their theoretical relevance and empirical significance. A multivariate LSTM model is developed and validated against traditional autoregressive integrated moving average (ARIMA) and machine learning-based random forest (RF) models.
Model performance is evaluated using root mean squared error, mean absolute error and directional accuracy. Findings The experimental results show that the performance of LSTM model varies across four different cross-validation folds, with the fourth fold appearing to have better generalization performance than the first fold, as both the mean training (0.0450687) and validation (0.01293) values are lower in the fourth fold than in the previous folds.
This study highlights that the recurring neural network-based LSTM model, when combined with a holistic approach provides accurate and interpretable predictions for stock market indices of highly volatile markets. The results demonstrate that the LSTM model significantly outperforms ARIMA and RF models in terms of predictive accuracy. The LSTM effectively captures nonlinear patterns in financial time series and shows strong generalization capabilities.
Practical implications This study suggests that AI-driven techniques can be adapted to predict stock behavior with precision. In addition, such models may be effective for other market indices displaying similar behavioral patterns, aiding stakeholders in making informed investment decisions. Originality/value This study contributes to the body of knowledge by proposing a practical AI-based stock market prediction model that incorporates economic factors directly impacting stock market movements.
This integral approach helps develop more accurate prediction models, providing insight into various elements of the stock market. The inclusion of baseline model comparisons and detailed residual analysis enhances the methodological rigor and applicability of the approach.
Originally published at International Journal of Islamic and Middle Eastern Finance and Management
By Fahim Afzal (Harvard Business School) · 2025-09-12 · Open Access · International Journal of Islamic and.
Add a Worked Example, Practitioner Field Note, or Counter-Thesis
More from Harvard Business School & Related Topics
All 85 works from Harvard Business School →AI threatens to eat business software – and it could change the way we work
Even if you’ve never used these software tools, your employer probably has. Now, AI threatens to upend the systems businesses have relied on for years.
Foundation models for generalist medical artificial intelligence
The exceptionally rapid development of highly flexible, reusable artificial intelligence (AI) models is likely to usher in newfound capabilities in…
Rumi is one of America’s most popular poets – but translations often strip his poetry of its Islamic roots
America’s best-selling poet was a Muslim jurist whose masterpiece has been called ‘the Quran in Persian.’ A scholar of Sufism explains what popular…
Trump-Xi summit will be no ‘Nixon in China’ moment – that they are talking is enough for now
Taiwan, trade and AI regulation are on the agenda. But will there be progress on any of these issues during Beijing sit-down?