IDEAS home Printed from https://ideas.repec.org/a/alk/jcsts0/v6y2024i1id6804.html

The Influence of Social Media on Stock Market: A Transformer-Based Stock Price Forecasting with External Factors

Author

Listed:
  • Mst Zannatun Ferdus

    (Department of Science in Information Technology (MSIT), Washington University of Science and Technology Alexandria, USA)

  • Nishat Anjum

    (Department of Computer Science, University of South Dakota, Vermillion, South Dakota, USA)

  • Tuan Ngoc Nguyen

    (VNDirect Securities, 97 Lo Duc, Hai Ba Trung, Hanoi, Vietnam)

  • Afjal Hossain Jisan

    (Department of Supply Chain & Information Systems, The Pennsylvania State University, University Park, Pennsylvania, USA)

  • Md Azad Hossain Raju

    (Department of Computer Science, University of South Dakota, Vermillion, South Dakota, USA)

Abstract

This paper introduces an innovative approach to forecasting stock prices. Forecasting stock prices is crucial in assisting investors in making informed decisions. Our research presents a unique method that utilizes transformer-based machine learning approach for stock price forecasting. This method exploits self-attention mechanisms to grasp intricate patterns and dynamics within historical stock price data. To bolster our model performance, we integrate investors’ sentiment collected from social media by using sentiment analysis with the help of natural language processing. Utilizing the variation caused by investors’ sentiment over time, as well as external macroeconomic factors, our proposed model outperforms benchmark models. Through extensive comparisons with various benchmark machine-learning algorithms, results produced by our proposed method are favorably comparable to those produced by conventional approaches. Across multiple machine learning models, our preferred model demonstrates superior performance, achieving an RMSE value of 0.96 compared to the RMSE value of 1.58 obtained from LSTM model.

Suggested Citation

  • Mst Zannatun Ferdus & Nishat Anjum & Tuan Ngoc Nguyen & Afjal Hossain Jisan & Md Azad Hossain Raju, 2024. "The Influence of Social Media on Stock Market: A Transformer-Based Stock Price Forecasting with External Factors," Journal of Computer Science and Technology Studies, Al-Kindi Center for Research and Development, vol. 6(1), pages 189-194, January.
  • Handle: RePEc:alk:jcsts0:v:6:y:2024:i:1:id:6804
    DOI: 10.32996/jcsts.2024.6.1.20
    as

    Download full text from publisher

    File URL: https://al-kindipublisher.com/index.php/jcsts/article/view/6804
    File Function: Abstract page
    Download Restriction: no

    File URL: https://al-kindipublisher.com/index.php/jcsts/article/download/6804/5771
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.32996/jcsts.2024.6.1.20?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    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:alk:jcsts0:v:6:y:2024:i:1:id:6804. 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: Al-Kindi Center for Research and Development (email available below). General contact details of provider: https://al-kindipublisher.com/index.php/jcsts .

    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.