Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

Predicting stock market trends with self-supervised learning

Published: 14 March 2024 Publication History

Abstract

Predicting stock market trends is the basic daily routine task that investors should perform in the stock trading market. Traditional market trends prediction models are generally based on hand-crafted factors or features, which heavily rely on expensive expertise knowledge. Moreover, it is difficult to discover hidden features contained in the stock time series data, which are otherwise helpful for predicting stock market trends. In this paper, we propose a novel stock market trends prediction framework SMART with a self-supervised stock technical data sequence embedding model S3E. Specifically, the model encodes stock technical data sequences into embeddings, which are further trained with multiple self-supervised auxiliary tasks. With the learned sequence embeddings, we make stock market trends predictions based on an LSTM and a feed-forward neural network. We conduct extensive experiments on China A-Shares market and NASDAQ market to show that our model is highly effective for stock market trends prediction. We further deploy SMART in a leading financial service provider in China and the result demonstrates the effectiveness of the proposed method in real-world applications.

References

[1]
Philippe, Régnier, Spreading Singapore’s wings worldwide: A review of traditional and new investment strategies, Pac. Rev. (1993) 305–312.
[2]
Vui C.S., Soon G.K., On C.K., Alfred R., Anthony P., A review of stock market prediction with artificial neural network (ANN), in: IEEE, 2013, pp. 477–482.
[3]
Ballings M., Van den Poel D., Hespeels N., Gryp R., Evaluating multiple classifiers for stock price direction prediction, Expert Syst. Appl. 42 (20) (2015) 7046–7056.
[4]
Shah D., Isah H., Zulkernine F., Stock market analysis: A review and taxonomy of prediction techniques, Int. J. Financ. Stud. 7 (2) (2019) 26.
[5]
Tsai C.F., Hsiao Y.C., Combining multiple feature selection methods for stock prediction: Union, intersection, and multi-intersection approaches, Decis. Support Syst. 50 (1) (2011) 258–269.
[6]
Kohara K., Ishikawa T., Fukuhara Y., Nakamura Y., Stock price prediction using prior knowledge and neural networks, J. Intell. Syst. Account. Financ. Manage. 6 (1) (2015) 11–22.
[7]
Long W., Lu Z., Cui L., Deep learning-based feature engineering for stock price movement prediction, Knowl.-Based Syst. 164 (2019) 163–173.
[8]
J. Gong, S. Sun, A new approach of stock price prediction based on logistic regression model, in: NISS, 2009, pp. 1366–1371.
[9]
Upadhyay A., Bandyopadhyay G., Dutta A., Forecasting stock performance in indian market using multinomial logistic regression, J. Bus. Stud. Q. 3 (3) (2012) 16.
[10]
Dutta A., Bandopadhyay G., Sengupta S., Prediction of stock performance in indian stock market using logistic regression, Int. J. Bus. Inf. 7 (1) (2012).
[11]
J.H. Wang, J.Y. Leu, Stock market trend prediction using ARIMA-based neural networks, in: ICNN, Vol. 4, 1996, pp. 2160–2165.
[12]
Pai P.F., Lin C.S., A hybrid ARIMA and support vector machines model in stock price forecasting, Omega 33 (6) (2005) 497–505.
[13]
A.A. Ariyo, A.O. Adewumi, C.K. Ayo, Stock price prediction using the ARIMA model, in: UKSim-AMSS, 2014, pp. 106–112.
[14]
Y. Zhai, A. Hsu, S.K. Halgamuge, Combining news and technical indicators in daily stock price trends prediction, in: ISNN, 2007, pp. 1087–1096.
[15]
P.R. Charkha, Stock price prediction and trend prediction using neural networks, in: ICETET, 2008, pp. 592–594.
[16]
Doersch C., Zisserman A., Multi-task self-supervised visual learning, in: IEEE, 2017, pp. 2051–2060.
[17]
Oord A.v.d., Li Y., Vinyals O., Representation learning with contrastive predictive coding, 2018, arXiv.
[18]
Chen T., Kornblith S., Norouzi M., Hinton G., A simple framework for contrastive learning of visual representations, 2020, arXiv.
[19]
Z. Feng, C. Xu, D. Tao, Self-supervised representation learning by rotation feature decoupling, in: CVPR, 2019, pp. 10364–10374.
[20]
Zürn J., Burgard W., Valada A., Self-supervised visual terrain classification from unsupervised acoustic feature learning, 2019, arXiv.
[21]
Jing L., Tian Y., Self-supervised visual feature learning with deep neural networks: A survey, IEEE Trans. Pattern Anal. Mach. Intell. (2020).
[22]
X. Zhai, A. Oliver, A. Kolesnikov, L. Beyer, S4l: Self-supervised semi-supervised learning, in: ICCV, 2019, pp. 1476–1485.
[23]
Van Gansbeke W., Vandenhende S., Georgoulis S., Proesmans M., Van Gool L., Learning to classify images without labels, 2020, arXiv.
[24]
Y. Kim, S. Choi, H. Lee, T. Kim, C. Kim, RPM-Net: Robust Pixel-Level Matching Networks for Self-Supervised Video Object Segmentation, in: WACV, 2020, pp. 2057–2065.
[25]
Zhu F., Zhang L., Fu Y., Guo G., Xie W., Self-supervised video object segmentation, 2020, arXiv.
[26]
H. Dahlkamp, A. Kaehler, D. Stavens, S. Thrun, G.R. Bradski, Self-supervised monocular road detection in desert terrain, in: RSS, Vol. 38, 2006.
[27]
H. Jiang, G. Larsson, M. Maire Greg Shakhnarovich, E. Learned-Miller, Self-supervised relative depth learning for urban scene understanding, in: ECCV, 2018, pp. 19–35.
[28]
S. Gidaris, P. Singh, N. Komodakis, Unsupervised Representation Learning by Predicting Image Rotations, in: ICLR, 2018, pp. 1–16.
[29]
P. Sermanet, C. Lynch, Y. Chebotar, J. Hsu, E. Jang, S. Schaal, S. Levine, G. Brain, Time-contrastive networks: Self-supervised learning from video, in: ICRA, 2018, pp. 1134–1141.
[30]
A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A.N. Gomez, Ł. Kaiser, I. Polosukhin, Attention is all you need, in: NIPS, 2017, pp. 5998–6008.
[31]
Mukherji S., Dhatt M.S., Kim Y.H., A fundamental analysis of Korean stock returns, Financ. Anal. J. 53 (3) (1997) 75–80.
[32]
Abarbanell J.S., Bushee B.J., Fundamental analysis, future earnings, and stock prices, J. Account. Res. 35 (1) (1997) 1–24.
[33]
Nti I.K., Adekoya A.F., Weyori B.A., A systematic review of fundamental and technical analysis of stock market predictions, Artif. Intell. Rev. (2019) 1–51.
[34]
Mills T.C., Technical analysis and the London stock exchange: Testing trading rules using the FT30, Int. J. Finance Econ. 2 (4) (1997) 319–331.
[35]
Edwards R.D., Bassetti W., Magee J., Technical Analysis of Stock Trends, 2007.
[36]
Metghalchi M., Chang Y.-H., Garza-Gomez X., Technical analysis of the Taiwanese stock market, Int. J. Econ. Financ. 4 (1) (2012) 90–102.
[37]
Cheng D., Yang F., Xiang S., Liu J., Financial time series forecasting with multi-modality graph neural network, Pattern Recognit. 121 (2022).
[38]
Zhang X., Qu S., Huang J., Fang B., Yu P., Stock market prediction via multi-source multiple instance learning, IEEE Access 6 (2018) 50720–50728.
[39]
Zhang X., Li Y., Wang S., Fang B., Yu P.S., Enhancing stock market prediction with extended coupled hidden Markov model over multi-sourced data, Knowl. Inf. Syst. 61 (2019) 1071–1090.
[40]
Zhang X., Zhang Y., Wang S., Yao Y., Fang B., Philip S.Y., Improving stock market prediction via heterogeneous information fusion, Knowl.-Based Syst. 143 (2018) 236–247.
[41]
D. Cheng, F. Yang, X. Wang, Y. Zhang, L. Zhang, Knowledge graph-based event embedding framework for financial quantitative investments, in: Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, 2020, pp. 2221–2230.
[42]
Hochreiter S., Schmidhuber J., Long short-term memory, Neural Comput. 9 (8) (1997) 1735–1780.
[43]
B. Perozzi, R. Al-Rfou, S. Skiena, Deepwalk: Online learning of social representations, in: KDD, 2014, pp. 701–710.
[44]
A. Grover, J. Leskovec, node2vec: Scalable feature learning for networks, in: KDD, 2016, pp. 855–864.
[45]
J. Tang, M. Qu, M. Wang, M. Zhang, J. Yan, Q. Mei, Line: Large-scale information network embedding, in: WWW, 2015, pp. 1067–1077.
[46]
T.N. Kipf, M. Welling, Semi-supervised classification with graph convolutional networks, in: ICLR, 2017, pp. 1–14.
[47]
Z. Wang, B. Huang, S. Tu, K. Zhang, L. Xu, DeepTrader: a deep reinforcement learning approach for risk-return balanced portfolio management with market conditions Embedding, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 35, No. 1, 2021, pp. 643–650.
[48]
S. Xiang, D. Cheng, C. Shang, Y. Zhang, Y. Liang, Temporal and Heterogeneous Graph Neural Network for Financial Time Series Prediction, in: Proceedings of the 31st ACM International Conference on Information & Knowledge Management, 2022, pp. 3584–3593.
[49]
Selvin S., Vinayakumar R., Gopalakrishnan E., Menon V.K., Soman K., Stock price prediction using LSTM, RNN and CNN-sliding window model, in: 2017 International Conference on Advances in Computing, Communications and Informatics, Icacci, IEEE, 2017, pp. 1643–1647.
[50]
Feng F., Chen H., He X., Ding J., Sun M., Chua T.S., Enhancing stock movement prediction with adversarial training, IJCAI (2019).
[51]
Q. Ding, S. Wu, H. Sun, J. Guo, J. Guo, Hierarchical multi-scale Gaussian transformer for stock movement prediction.
[52]
De Prado M.L., Advances in Financial Machine Learning, John Wiley & Sons, 2018.
[53]
Camara R.C., Cuzzocrea A., Grasso G.M., Leung C.K., Powell S.B., Souza J., Tang B., Fuzzy logic-based data analytics on predicting the effect of hurricanes on the stock market, in: 2018 IEEE International Conference on Fuzzy Systems, FUZZ-IEEE, IEEE, 2018, pp. 1–8.
[54]
Jaggi M., Mandal P., Narang S., Naseem U., Khushi M., Text mining of stocktwits data for predicting stock prices, Appl. Syst. Innov. 4 (1) (2021) 13.
[55]
Rizkiana A., Sari H., Hardjomijojo P., Prihartono B., Yudhistira T., Analyzing the impact of investor sentiment in social media to stock return: Survival analysis approach, in: 2017 IEEE International Conference on Industrial Engineering and Engineering Management, IEEM, IEEE, 2017, pp. 519–523.
[56]
Shah D., Isah H., Zulkernine F., Predicting the effects of news sentiments on the stock market, in: 2018 IEEE International Conference on Big Data, Big Data, IEEE, 2018, pp. 4705–4708.
[57]
Fama E.F., French K.R., The cross-section of expected stock returns, J. Financ. 47 (2) (1992) 427–465.
[58]
Daniel K., Hirshleifer D., Sun L., Short-and long-horizon behavioral factors, Rev. Financ. Stud. 33 (4) (2020) 1673–1736.
[59]
Lai L., Liu J., Support vector machine and least square support vector machine stock forecasting models, Comput. Sci. Inf. Technol. 2 (1) (2014) 30–39.
[60]
M. Pelikan, D.E. Goldberg, E. Cantú-Paz, et al., BOA: The Bayesian optimization algorithm, in: GECCO, Vol. 1, 1999, pp. 525–532.
[61]
Li T., Liu G.S., Stock price’s prediction with decision tree, Appl. Mech. Mater. 48–49 (2011) 1116–1121.
[62]
Y. Chen, J. Wu, H. Bu, Stock market embedding and prediction: A deep learning method, in: ICSSSM, 2018, pp. 1–6.
[63]
Z. Li, D. Yang, L. Zhao, J. Bian, T. Qin, T.Y. Liu, Individualized indicator for all: Stock-wise technical indicator optimization with stock embedding, in: KDD, 2019, pp. 894–902.
[64]
Ganeshapillai G., Guttag J., Lo A., Learning connections in financial time series, in: International Conference on Machine Learning, PMLR, 2013, pp. 109–117.
[65]
Du S., Li T., Yang Y., Horng S.J., Multivariate time series forecasting via attention-based encoder–decoder framework, Neurocomputing 388 (2020) 269–279.
[66]
Xu R., Cheng D., Chen C., Luo S., Luo Y., Qian W., Multi-scale time based stock appreciation ranking prediction via price co-movement discrimination, in: Database Systems for Advanced Applications: 27th International Conference, DASFAA 2022, Virtual Event, April 11–14, 2022, Proceedings, Part III, Springer, 2022, pp. 455–467.

Recommendations

Comments

Information & Contributors

Information

Published In

cover image Neurocomputing
Neurocomputing  Volume 568, Issue C
Feb 2024
249 pages

Publisher

Elsevier Science Publishers B. V.

Netherlands

Publication History

Published: 14 March 2024

Author Tags

  1. Sequence embeddings
  2. Self-supervised learning
  3. Multi-task joint learning
  4. Stock trends prediction

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 0
    Total Downloads
  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 26 Sep 2024

Other Metrics

Citations

View Options

View options

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media