Cargando…

LSTM based stock prediction using weighted and categorized financial news

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...

Descripción completa

Detalles Bibliográficos
Autores principales: Usmani, Shazia, Shamsi, Jawwad A.
Formato: Online Artículo Texto
Lenguaje:English
Publicado: Public Library of Science 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9990937/
https://www.ncbi.nlm.nih.gov/pubmed/36881605
http://dx.doi.org/10.1371/journal.pone.0282234
_version_ 1784902037473853440
author Usmani, Shazia
Shamsi, Jawwad A.
author_facet Usmani, Shazia
Shamsi, Jawwad A.
author_sort Usmani, Shazia
collection PubMed
description 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.
format Online
Article
Text
id pubmed-9990937
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher Public Library of Science
record_format MEDLINE/PubMed
spelling pubmed-99909372023-03-08 LSTM based stock prediction using weighted and categorized financial news Usmani, Shazia Shamsi, Jawwad A. PLoS One Research Article 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. Public Library of Science 2023-03-07 /pmc/articles/PMC9990937/ /pubmed/36881605 http://dx.doi.org/10.1371/journal.pone.0282234 Text en © 2023 Usmani, Shamsi https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
spellingShingle Research Article
Usmani, Shazia
Shamsi, Jawwad A.
LSTM based stock prediction using weighted and categorized financial news
title LSTM based stock prediction using weighted and categorized financial news
title_full LSTM based stock prediction using weighted and categorized financial news
title_fullStr LSTM based stock prediction using weighted and categorized financial news
title_full_unstemmed LSTM based stock prediction using weighted and categorized financial news
title_short LSTM based stock prediction using weighted and categorized financial news
title_sort lstm based stock prediction using weighted and categorized financial news
topic Research Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9990937/
https://www.ncbi.nlm.nih.gov/pubmed/36881605
http://dx.doi.org/10.1371/journal.pone.0282234
work_keys_str_mv AT usmanishazia lstmbasedstockpredictionusingweightedandcategorizedfinancialnews
AT shamsijawwada lstmbasedstockpredictionusingweightedandcategorizedfinancialnews