An Evaluation of Deep Learning Models for Stock Market Trend Prediction

Gonzalo Lopez Gil,Paul Duhamel-Sebline,Andrew McCarren
2024-08-22
Abstract:The stock market is a fundamental component of financial systems, reflecting economic health, providing investment opportunities, and influencing global dynamics. Accurate stock market predictions can lead to significant gains and promote better investment decisions. However, predicting stock market trends is challenging due to their non-linear and stochastic nature. This study investigates the efficacy of advanced deep learning models for short-term trend forecasting using daily and hourly closing prices from the S&P 500 index and the Brazilian ETF EWZ. The models explored include Temporal Convolutional Networks (TCN), Neural Basis Expansion Analysis for Time Series Forecasting (N-BEATS), Temporal Fusion Transformers (TFT), Neural Hierarchical Interpolation for Time Series Forecasting (N-HiTS), and Time-series Dense Encoder (TiDE). Furthermore, we introduce the Extended Long Short-Term Memory for Time Series (xLSTM-TS) model, an xLSTM adaptation optimised for time series prediction. Wavelet denoising techniques were applied to smooth the signal and reduce minor fluctuations, providing cleaner data as input for all approaches. Denoising significantly improved performance in predicting stock price direction. Among the models tested, xLSTM-TS consistently outperformed others. For example, it achieved a test accuracy of 72.82% and an F1 score of 73.16% on the EWZ daily dataset. By leveraging advanced deep learning models and effective data preprocessing techniques, this research provides valuable insights into the application of machine learning for market movement forecasting, highlighting both the potential and the challenges involved.
Machine Learning
What problem does this paper attempt to address?
### Problems the Paper Aims to Solve This paper aims to address the challenges in predicting stock market trends. Specifically: 1. **Research Background**: - The stock market is a crucial component of the financial system, reflecting economic health and providing investment opportunities, influencing global dynamics. - Accurate prediction of stock market trends can yield significant returns and facilitate better investment decisions. - Due to the nonlinearity and randomness of the stock market, predicting its trends is challenging. 2. **Research Objectives**: - Explore the effectiveness of advanced deep learning models in short-term trend prediction. - Conduct experiments using standard datasets (such as the S&P 500 index and the Brazilian ETF EWZ) to validate the performance of different models. - Introduce and evaluate the new xLSTM-TS model, an extended Long Short-Term Memory (LSTM) model optimized for time series prediction. 3. **Methods and Techniques**: - Compare multiple deep learning models, including Temporal Convolutional Network (TCN), Neural Basis Expansion Analysis for Time Series Forecasting (N-BEATS), Temporal Fusion Transformer (TFT), Neural Hierarchical Interpolation for Time Series Forecasting (N-HiTS), and Time-Intensive Encoder (TiDE). - Apply wavelet denoising techniques to smooth signals and reduce volatility, thereby improving prediction performance. - Evaluate the advantages and limitations of different models through comparative experiments. 4. **Main Contributions**: - Proposed the xLSTM-TS model and demonstrated its advantages in predicting stock price directions, achieving a 72.82% test accuracy and a 73.16% F1 score on the EWZ daily dataset. - Provided valuable insights into the application of machine learning in market trend prediction through comprehensive experiments, highlighting potential advantages and challenges. Through this research, the paper aims to advance the field of financial forecasting, offering more accurate and reliable methods for stock market prediction.