Log in

Multiple stocks recommendation: a spatio-temporal hypergraph learning approach

  • Published:
Applied Intelligence Aims and scope Submit manuscript

Abstract

Stocks do not exist in isolation in the financial markets, but there are complex relationships among them, which leads to the fluctuations in the stock prices have the properties of synchronism, systematic linkage and conductivity. From the relevancy-based perspective, a group of stocks with distinct degrees of correlation constitute the spatial structure of hypergraph, which combines with temporal information together to provide the important basis for the analysis of financial market behaviors. However, how to effectively learn the intrinsic relevancies of stocks is still an open problem. In this article, we proposed the Multiple Stock Recommendation system based on a novel Spatio-Temporal Hypergraph Learning framework (MSR-STHL). Firstly, inspired by the existing works, LSTM-attention module is applied to learn the temporal features of stocks, where Hawkes process is involved to enhance the attention mechanism in the long-term time scale. Secondly, by means of the prior knowledge and data-driven methods, the relevancy-based spatial structures among stocks are modeled from several aspects, where data-driven way can provide the potential relations among stocks and make up the disadvantage of untimely change of prior knowledge. Thirdly, graph attention networks and hypergraph convolution operations are used to achieve the fusion learning of multiple graphs/hypergraphs. Finally, the recommended stocks on the return prediction are provided. The proposed model is evaluated on three stock market datasets, i.e. NASDAQ, NYSE, and China A-share, respectively. In comparison with state-of-the-art methods, the proposed model can outperform the existing methods and the validity is confirmed.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

Data availability

Data available on request from the authors.

References

  1. Nti IK, Adekoya AF, Weyori BA (2020) Predicting stock market price movement using sentiment analysis: Evidence from Ghana. Appl Comput Syst 25(1):33–42

    Article  Google Scholar 

  2. Lines J, Taylor S, Bagnall A (2018) Time series classification with HIVE-COTE: The hierarchical vote collective of transformation-based ensembles. ACM Trans Knowl Discov Data 12(5):1–35

    Article  Google Scholar 

  3. Sajadmanesh S, Bazargani S, Zhang J, Rabiee HR (2019) Continuous-time relationship prediction in dynamic heterogeneous information networks. ACM Transactions on Knowledge Discovery from Data (TKDD) 13(4):1–31

    Article  Google Scholar 

  4. Sawhney R, Agarwal S, Wadhwa A, Derr T, Shah RR (2021) Stock selection via spatiotemporal hypergraph attention network: A learning to rank approach. Proceedings of the AAAI Conference on Artificial Intelligence 35(1):497–504

    Article  Google Scholar 

  5. Gbadouissa JEZ, Ari AAA, Titouna C, Gueroui AM, Thiare O (2020) HGC: Hypergraph based clustering scheme for power aware wireless sensor networks. Futur Gener Comput Syst 105:175–183

    Article  Google Scholar 

  6. Wang JH, Leu JY (1996) Stock market trend prediction using ARIMA-based neural networks. Proceedings of International Conference on Neural Networks (ICNN’96) 4:2160–2165

    Article  Google Scholar 

  7. Azaro K, Riwajanti NI, Kusmintarti A (2020) Triple exponential smoothing: Forecasting perbandingan penumpang kereta api dan pesawat terbang. Media Mahardhika 18(2):277–286

    Article  Google Scholar 

  8. Al-Qatf M, Lasheng Y, Al-Habib M, Al-Sabahi K (2018) Deep learning approach combining sparse autoencoder with SVM for network intrusion detection. IEEE Access 6:52843–52856

    Article  Google Scholar 

  9. Chen G, Ge Z (2020) Robust Bayesian networks for low-quality data modeling and process monitoring applications. Control Eng Pract 97:104344

    Article  Google Scholar 

  10. Zhang L, Wei D (2020) Image watermarking based on matrix decomposition and gyrator transform in invariant integer wavelet domain. Signal Process 169:107421

    Article  Google Scholar 

  11. Haq AU, Zeb A, Lei Z, Zhang D (2021) Forecasting daily stock trend using multi-filter feature selection and deep learning. Expert Syst Appl 168:114444

    Article  Google Scholar 

  12. Maqsood H, Mehmood I, Maqsood M, Yasir M, Afzal S, Aadil F, Mahmoud MS, Muhammad K (2020) A local and global event sentiment based efficient stock exchange forecasting using deep learning. Int J Inf Manage 50:432–451

    Article  Google Scholar 

  13. Au CH, Ho KKW (2021) Applications of Wiki in web-based research support system. Library Hi Tech 39(1):1–21

    Article  Google Scholar 

  14. Zhang Q, Chang J, Meng G, **ang S, Pan C (2020) Spatio-temporal graph structure learning for traffic forecasting. Proceedings of the AAAI Conference on Artificial Intelligence 34(01):1177–1185

    Article  Google Scholar 

  15. Chen K, Chen F, Lai B, ** Z, Liu Y, Li K, Wei L, Wang P, Tang Y, Huang J, Hua X (2020) Dynamic spatio-temporal graph-based CNNs for traffic flow prediction. IEEE Access 8:185136–185145

    Article  Google Scholar 

  16. Dai R, Xu S, Gu Q, Ji C, Liu K (2020) Hybrid spatio-temporal graph convolutional network: Improving traffic prediction with navigation data. In: In Proceedings of the 26th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD ’20), Virtual Event, CA, USA. ACM, New York, pp 3074–3082. https://doi.org/10.1145/3394486.3403358

  17. Pan Z, Ke S, Yang X, Liang Y, Yu Y, Zhang J, Zheng Y (2021) AutoSTG: Neural architecture search for predictions of spatio-temporal graph. Proc Web Conf 2021:1846–1855. https://doi.org/10.1145/3442381.3449816

    Article  Google Scholar 

  18. Zheng Y, Sui X, Jiang Y, Che T, Zhang S, Yang J, Li H (2021) SymReg-GAN: Symmetric image registration with generative adversarial networks. IEEE Trans Pattern Anal Mach Intell 44(9):5631–5646

    Google Scholar 

  19. Che T, Zheng Y, Yang Y, Hou S, Jia W, Yang J, Gong C (2021) SDOF-GAN: Symmetric dense optical flow estimation with generative adversarial networks. IEEE Trans Image Process 30:6036–6049

    Article  Google Scholar 

  20. Ni Q, Wang Y, Fang Y (2022) GE-STDGN: A novel spatio-temporal weather prediction model based on graph evolution. Appl Intell 52(7):7638–7652

    Article  Google Scholar 

  21. Feng F, He X, Wang X, Luo C, Liu Y, Chua TS (2019) Temporal relational ranking for stock prediction. ACM Transactions on Information Systems (TOIS) 37(2):1–30

    Article  Google Scholar 

  22. Gao J, Ying X, Xu C, Wang J, Zhang S, Li Z (2021) Graph-based stock recommendation by time-aware relational attention network. ACM Transactions on Knowledge Discovery from Data (TKDD) 16(1):1–21

    Article  Google Scholar 

  23. Sun J, Lin J, Zhou Y (2020) Multi-channel temporal graph convolutional network for stock return prediction. In 2020 IEEE 18th International Conference on Industrial Informatics (INDIN) 1:423–428

    Google Scholar 

  24. Chen W, Jiang M, Zhang WG, Chen Z (2021) A novel graph convolutional feature based convolutional neural network for stock trend prediction. Inf Sci 556:67–94

    Article  MathSciNet  Google Scholar 

  25. Yin X, Yan D, Almudaifer A, Yan S, Zhou Y (2021) Forecasting stock prices using stock correlation graph: A Graph convolutional network approach. In: 2021 International Joint Conference on Neural Networks (IJCNN), Shenzhen, China, pp 1–8. https://doi.org/10.1109/IJCNN52387.2021.9533510

  26. Wang S (2020) Research on data mining and investment recommendation of individual users based on financial time series analysis. International Journal of Data Warehousing and Mining (IJDWM) 16(2):64–80

    Article  Google Scholar 

  27. Bai L, Cui L, Wang Y, Jiao Y, Hancock E R (2020) A quantum-inspired entropic kernel for multiple financial time series analysis. In Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence (IJCAI-20), pp 4453–4460

  28. Lee H, Beh W, Lem K (2021) Financial time series forecasting with hybrid ARIMA-continuous wavelet transform. In: 2021 International Conference on Computer & Information Sciences (ICCOINS), pp 169–173. IEEE. https://doi.org/10.1109/ICCOINS49721.2021.9497225

  29. Tu K, Cui P, Wang X, Wang F, Zhu W (2018) Structural deep embedding for hyper-networks. Proceedings of the AAAI Conference on Artificial Intelligence 32(1). https://doi.org/10.1609/aaai.v32i1.11266

  30. Yadati N, Nimishakavi M, Yadav P, Nitin V, Louis A, Talukdar P (2019) Hypergcn: A new method for training graph convolutional networks on hypergraphs. Advances in neural information processing systems Article 135:1511–1522

    Google Scholar 

  31. Feng Y, You H, Zhang Z, Ji R, Gao Y (2019) Hypergraph neural networks. Proceedings of the AAAI conference on artificial intelligence 33(01):3558–3565

    Article  Google Scholar 

  32. Bandyopadhyay S, Das K, Murty M N (2020) Hypergraph attention isomorphism network by learning line graph expansion. In 2020 IEEE International Conference on Big Data (Big Data), pp 669–678. https://doi.org/10.1109/BigData50022.2020.9378335.

  33. Yoon S, Song H, Shin K, Yi Y (2020) How much and when do we need higher-order information in hypergraphs? a case study on hyperedge prediction. Proc Web Conf 2020:2627–2633. https://doi.org/10.1145/3366423.3380016

    Article  Google Scholar 

  34. Sawhney R, Agarwal S, Wadhwa A, Shah R (2021) Exploring the scale-free nature of stock markets: Hyperbolic graph learning for algorithmic trading. Proc Web Conf 2021:11–22. https://doi.org/10.1145/3442381.3450095

    Article  Google Scholar 

  35. Roondiwala M, Patel H, Varma S (2017) Predicting stock prices using LSTM. International Journal of Science and Research (IJSR) 6(4):1754–1756

    Google Scholar 

  36. Wang G, Cao L, Zhao H, Liu Q, Chen E (2021) Coupling macro-sector-micro financial indicators for learning stock representations with less uncertainty. In Proceedings of the AAAI Conference on Artificial Intelligence 35(5):4418–4426

    Article  Google Scholar 

  37. Chen Q, Zhang W, Lou Y (2020) Forecasting stock prices using a hybrid deep learning model integrating attention mechanism, multi-layer perceptron, and bidirectional long-short term memory neural network. IEEE Access 8:117365–117376

    Article  Google Scholar 

  38. Nyström K, Zhang C (2022) Hawkes-based models for high frequency financial data. Journal of the Operational Research Society 73(10):2168-2185. https://doi.org/10.1080/01605682.2021.1952116

  39. Chen J, Taylor N, Yang S, Han Q (2022) Hawkes processes in finance: market structure and impact. The European Journal of Finance, pp 1–6. https://doi.org/10.1080/1351847X.2022.2060755

  40. Hawkes AG (2020) Hawkes jump-diffusions and finance: a brief history and review. The Eur J Fin 28(7):627–641. https://doi.org/10.1080/1351847X.2020.1755712

  41. Peng Z, Huang W, Luo M, Zheng Q, Rong Y, Xu T, Huang J (2020) Graph representation learning via graphical mutual information maximization. In Proceedings of The Web Conference 2020:259–270. https://doi.org/10.1145/3366423.3380112

    Article  Google Scholar 

  42. Wu F, Souza A, Zhang T, Fifty C, Yu T, Weinberger K (2019) Simplifying graph convolutional networks. In International conference on machine learning (PMLR) 97:6861–6871

    Google Scholar 

  43. Bai S, Zhang F, Torr PHS (2021) Hypergraph convolution and hypergraph attention. Pattern Recogn 110:107637

    Article  Google Scholar 

  44. Dixon M, Klabjan D, Bang JH (2017) Classification-based financial markets prediction using deep neural networks. Algorithmic Finance 6(3–4):67–77

    Article  Google Scholar 

  45. Feng F, Chen H, He X, Ding J, Sun M, Chua TS (2019) Enhancing stock movement prediction with adversarial training. In: IJCAI, vol 19, pp 5843–5849. https://doi.org/10.48550/ar**v.1810.09936

  46. Luo Y, Hu J, Wei X, Fang D, Shao H (2014) Stock trends prediction based on hypergraph modeling clustering algorithm. In: 2014 IEEE International Conference on Progress in Informatics and Computing (IEEE), pp 27–31. https://doi.org/10.1109/PIC.2014.6972289

  47. Li W, Bao R, Harimoto K, Chen D, Xu J, Su Q (2020) Modeling the stock relation with graph network for overnight stock movement prediction. Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence (IJCAI-20) 20:4541–4547

    Google Scholar 

  48. Zhou J, Cui G, Hu S, Zhang Z, Yang C, Liu Z, Sun M (2020) Graph neural networks: A review of methods and applications. AI Open 1:57–81

    Article  Google Scholar 

  49. Zhang L, Aggarwal C, Qi G-J (2017) Stock price prediction via discovering multi-frequency trading patterns. In: Proceedings of KDD ’17, Halifax, NS, Canada. https://doi.org/10.1145/3097983.3098117

  50. Bao W, Yue J, Rao Y (2017) A deep learning framework for financial time series using stacked autoencoders and long-short term memory. PLoS ONE 12(7):e0180944

    Article  Google Scholar 

  51. Shahid F, Zameer A, Muneeb M (2020) Predictions for COVID-19 with deep learning models of LSTM, GRU and Bi-LSTM. Chaos, Solitons Fractals 140:110212

    Article  MathSciNet  Google Scholar 

  52. Carta S, Ferreira A, Podda AS, Recupero DR, Sanna A (2021) Multi-DQN: An ensemble of deep Q-learning agents for stock market forecasting. Expert Syst Appl 164:113820

    Article  Google Scholar 

  53. Liu Y, Liu Q, Zhao H, Pan Z, Liu C (2020) Adaptive quantitative trading: An imitative deep reinforcement learning approach. Proceedings of the AAAI conference on artificial intelligence 34(02):2128–2135

    Article  Google Scholar 

  54. Zhuang C, Ma Q (2018) Dual graph convolutional networks for graph-based semi-supervised classification. In: WWW 2018: The 2018Web Conference, Lyon, France. ACM, New York, p 10. https://doi.org/10.1145/3178876.3186116

Download references

Acknowledgements

This research is supported by the National Natural Science Foundation of China (Nos: 62172264); Shandong Provincial Natural Science Foundation (ZR2019MF020).

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Luo Chao or Gao Baozhong.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

**n, K., Chao, L. & Baozhong, G. Multiple stocks recommendation: a spatio-temporal hypergraph learning approach. Appl Intell 54, 6466–6482 (2024). https://doi.org/10.1007/s10489-024-05491-1

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10489-024-05491-1

Keywords

Navigation