Stock Price Prediction with Denoising Autoencoder and Transformers

Authors

  • Zhiyang Chen

DOI:

https://doi.org/10.54097/1skct023

Keywords:

trend forecasting, stock price prediction, RNN-based models, transformer-based model, autoencoder.

Abstract

Predicting stock market price movement has been a challenging problem for time series forecasting due to its inherent volatility. The introduction of machine learning techniques, such as the use of a recurrent neural network (RNN), have since dominated the field for stock trend forecasting and stock price prediction. RNNs have inherent model limitations that are solved with the introduction of the transformer model, which has since been used in many sequential classification and generative tasks. This study demonstrates the viability of a transformer-based model on the field of stock price prediction by comparing the predictions of a transformer-based model with some RNN-based baseline models on the hourly closing price of Apple (AAPL) stock prices. A dimension reducing simple autoencoder was also incorporated into the transformer model to increase performance. Although RNN-based models are shown to outperform the transformer model in accuracy, the transformer model leads in directional stock accuracy. This demonstrates that the transformer is applicable to compete with RNN based models within the field, along with the incorporation of an autoencoder to further integrate the transformer’s power to this field.

Downloads

Download data is not yet available.

References

B. G. Malkiel, Journal of economic perspectives 17 (1), 59 - 82 (2003).

A. Khalid, International Journal of Business, Humanities and Technology 3 (3), 32 - 44 (2013).

H. Yang, L. Chanand I. King, “Support vector machine regression for volatile stock market prediction,” in Lecture Notes in Computer Science 2412, Intelligent Data Engineering and Automated Learning Conference (2002).

T. S. Chang, Expert Systems with Applications 38(12), 14846 - 14851 (2011).

G. P. Zhang, Neurocomputing 50, 159 – 175 (2003).

H. Park, Econ 930 (Department of Economics, Kansas State University, KS, 1999) pp. 1 - 241.

J. L. Ticknor, Expert Systems with Applications 40 (14), 5501 - 5506 (2013).

E. Hoseinzade and S. Haratizadeh, Expert Systems with Applications 129, 273 - 285 (2019).

A. M. Rather, A. Agarwal and V. N. Sastry, Expert Systems with Applications 42 (6), 3234 - 3241 (2015).

D. M. Q. Nelson, A. C. M. Pereira and R. A. de Oliveira, "Stock market's price movement prediction with LSTM neural networks," in 2017 International Joint Conference on Neural Networks (IJCNN) (Anchorage, AK, USA, 2017), pp. 1419 - 1426.

S. Lv, Y. Hou and H. Zhou, arXiv: 1912. 00712 (2019).

A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser and I. Polosukhin, arXiv: 1706. 03762 (2017)

G. Ding and L. Qin, International Journal of Machine Learning and Cybernetics 11 (6), 1307 - 1317 (2020).

Y. Qin, D. Song, H. Chen, W. Cheng, G. Jiang and G. W. Cottrell, arXiv: 1704. 02971 (2017).

H. Wu, J. Xu, J. Wang and M. Long, arXiv: 2106. 13008 (2021).

Downloads

Published

13-03-2024