Back to Search Start Over

LSTM based stock prediction using weighted and categorized financial news.

Authors :
Usmani S
Shamsi JA
Source :
PloS one [PLoS One] 2023 Mar 07; Vol. 18 (3), pp. e0282234. Date of Electronic Publication: 2023 Mar 07 (Print Publication: 2023).
Publication Year :
2023

Abstract

A significant correlation between financial news with stock market trends has been explored extensively. However, very little research has been conducted for stock prediction models that utilize news categories, weighted according to their relevance with the target stock. In this paper, we show that prediction accuracy can be enhanced by incorporating weighted news categories simultaneously into the prediction model. We suggest utilizing news categories associated with the structural hierarchy of the stock market: that is, news categories for the market, sector, and stock-related news. In this context, Long Short-Term Memory (LSTM) based Weighted and Categorized News Stock prediction model (WCN-LSTM) is proposed. The model incorporates news categories with their learned weights simultaneously. To enhance the effectiveness, sophisticated features are integrated into WCN-LSTM. These include, hybrid input, lexicon-based sentiment analysis, and deep learning to impose sequential learning. Experiments have been performed for the case of the Pakistan Stock Exchange (PSX) using different sentiment dictionaries and time steps. Accuracy and F1-score are used to evaluate the prediction model. We have analyzed the WCN-LSTM results thoroughly and identified that WCN-LSTM performs better than the baseline model. Moreover, the sentiment lexicon HIV4 along with time steps 3 and 7, optimized the prediction accuracy. We have conducted statistical analysis to quantitatively assess our findings. A qualitative comparison of WCN-LSTM with existing prediction models is also presented to highlight its superiority and novelty over its counterparts.<br />Competing Interests: We have no conflicts of interest to disclose.<br /> (Copyright: © 2023 Usmani, Shamsi. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.)

Details

Language :
English
ISSN :
1932-6203
Volume :
18
Issue :
3
Database :
MEDLINE
Journal :
PloS one
Publication Type :
Academic Journal
Accession number :
36881605
Full Text :
https://doi.org/10.1371/journal.pone.0282234