IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i10p1565-d1652684.html
   My bibliography  Save this article

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

Author

Listed:
  • 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)

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.

Suggested Citation

  • Yuchen Wu & Liang Xie & Hongyang Wan & Haijiao Xu, 2025. "A Pretrained Spatio-Temporal Hypergraph Transformer for Multi-Stock Trend Forecasting," Mathematics, MDPI, vol. 13(10), pages 1-21, May.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:10:p:1565-:d:1652684
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/10/1565/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/10/1565/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:10:p:1565-:d:1652684. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.