EconPapers    
Economics at your fingertips  
 

A Pretrained Spatio-Temporal Hypergraph Transformer for Multi-Stock Trend Forecasting

Yuchen Wu, Liang Xie (), Hongyang Wan and Haijiao Xu
Additional contact information
Yuchen Wu: School of Mathematics and Statistics, Wuhan University of Technology, Wuhan 430070, China
Liang Xie: School of Mathematics and Statistics, Wuhan University of Technology, Wuhan 430070, China
Hongyang Wan: School of Mathematics and Statistics, Wuhan University of Technology, Wuhan 430070, China
Haijiao Xu: School of Computer Science, Guangdong University of Education, Guangzhou 510303, China

Mathematics, 2025, vol. 13, issue 10, 1-21

Abstract: Predicting stock trends has garnered extensive attention from investors and researchers due to its potential to optimize stock investment returns. The fluctuation of stock prices is complex and influenced by multiple factors, presenting two major challenges: the first challenge lies in the the temporal dependence of individual stocks and the spatial correlation among multiple stocks. The second challenge emerges from having insufficient historical data availability for newly listed stocks. To address these challenges, this paper proposes a spatio-temporal hypergraph transformer (STHformer). The proposed model employs a temporal encoder with an aggregation module to capture temporal patterns, utilizes self-attention to dynamically generate hyperedges, and selects cross-attention to implement hypergraph-associated convolution. Furthermore, pretraining based on reconstruction of masked sequences is implemented. This framework enhances the model’s cold-start capability, making it more adaptable to newly listed stocks with insufficient training data. Experimental results show that the proposed model, after pretraining on data from over two thousand stocks, performed well on datasets from the stock markets of the United States and China.

Keywords: stock trend prediction; self-supervised pretraining; hypergraph neural network; time series analysis (search for similar items in EconPapers)
JEL-codes: C (search for similar items in EconPapers)
Date: 2025
References: Add references at CitEc
Citations:

Downloads: (external link)
https://www.mdpi.com/2227-7390/13/10/1565/pdf (application/pdf)
https://www.mdpi.com/2227-7390/13/10/1565/ (text/html)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:gam:jmathe:v:13:y:2025:i:10:p:1565-:d:1652684

Access Statistics for this article

Mathematics is currently edited by Ms. Emma He

More articles in Mathematics from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().

 
Page updated 2025-05-10
Handle: RePEc:gam:jmathe:v:13:y:2025:i:10:p:1565-:d:1652684