[Paper Review] Risk Management via Anomaly Circumvent: Mnemonic Deep Learning for Midterm Stock Prediction
This paper proposes Mid-LSTM, a novel deep learning model that integrates ARMA, CAPM, and hidden Markov models to improve midterm stock prediction by circumventing anomalies. It achieves 2–4% higher accuracy and up to 120.16% annualized return with a 2.99 Sharpe ratio in portfolio backtests on S&P 500 data.
Midterm stock price prediction is crucial for value investments in the stock market. However, most deep learning models are essentially short-term and applying them to midterm predictions encounters large cumulative errors because they cannot avoid anomalies. In this paper, we propose a novel deep neural network Mid-LSTM for midterm stock prediction, which incorporates the market trend as hidden states. First, based on the autoregressive moving average model (ARMA), a midterm ARMA is formulated by taking into consideration both hidden states and the capital asset pricing model. Then, a midterm LSTM-based deep neural network is designed, which consists of three components: LSTM, hidden Markov model and linear regression networks. The proposed Mid-LSTM can avoid anomalies to reduce large prediction errors, and has good explanatory effects on the factors affecting stock prices. Extensive experiments on S&P 500 stocks show that (i) the proposed Mid-LSTM achieves 2-4% improvement in prediction accuracy, and (ii) in portfolio allocation investment, we achieve up to 120.16% annual return and 2.99 average Sharpe ratio.
Motivation & Objective
- Address the challenge of cumulative prediction errors in midterm stock forecasting due to market anomalies.
- Develop a deep learning model that incorporates market trends and hidden states to improve prediction stability.
- Reduce investment risk by integrating financial theory (CAPM) and statistical modeling (ARMA) into a deep neural network.
- Enhance model interpretability for quantitative analysts by exposing the influence of key variables like volume and market correlation.
- Demonstrate superior performance in both prediction accuracy and portfolio returns compared to traditional methods.
Proposed method
- Formulate a midterm ARMA (Mid-ARMA) model that incorporates stock volume, market index, and CAPM-based correlation to model stock price dynamics.
- Design Mid-LSTM, a three-component deep neural network combining LSTM for sequence learning, HMM for hidden state detection, and linear regression for final price refinement.
- Use LSTM to predict stock price, volume, and market index sequences, capturing long-term dependencies.
- Apply HMM to detect latent market states influencing price and volume, enabling anomaly detection and circumvention.
- Integrate the HMM states and correlation coefficients into a linear regression layer to refine predictions using financial theory.
- Train the model end-to-end on S&P 500 data, optimizing for prediction accuracy and risk-adjusted returns.
Experimental results
Research questions
- RQ1Can a deep learning model effectively reduce cumulative prediction errors in midterm stock forecasting by detecting and circumventing anomalies?
- RQ2How does integrating CAPM and ARMA into a deep learning framework improve prediction accuracy and robustness?
- RQ3To what extent does the HMM component enhance anomaly detection and improve model stability in volatile markets?
- RQ4Does the Mid-LSTM model outperform traditional machine learning and deep learning baselines in both prediction accuracy and portfolio performance?
- RQ5How do market correlation and volume dynamics influence the predictive power and risk management capability of the proposed model?
Key findings
- Mid-LSTM achieves 2–4% improvement in prediction accuracy over baseline models on S&P 500 stocks.
- In mean-variance portfolio allocation, Mid-LSTM yields an average annualized return of 120.16% with a Sharpe ratio of 2.99.
- The model demonstrates superior anomaly circumvention, especially for stocks highly correlated with the market index.
- The linear regression component in Mid-LSTM provides interpretable weights, enabling quantitative analysts to assess the impact of hidden market states and volume on price.
- Portfolio backtests confirm that Mid-LSTM-based predictions lead to significantly higher risk-adjusted returns than traditional methods.
- The integration of CAPM and ARMA into the deep learning framework enhances model robustness and financial interpretability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.