Cargando…

Stock Price Movement Prediction Using Sentiment Analysis and CandleStick Chart Representation

Determining the price movement of stocks is a challenging problem to solve because of factors such as industry performance, economic variables, investor sentiment, company news, company performance, and social media sentiment. People can predict the price movement of stocks by applying machine learn...

Descripción completa

Detalles Bibliográficos
Autores principales: Ho, Trang-Thi, Huang, Yennun
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2021
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8659448/
https://www.ncbi.nlm.nih.gov/pubmed/34883961
http://dx.doi.org/10.3390/s21237957
_version_ 1784612964688461824
author Ho, Trang-Thi
Huang, Yennun
author_facet Ho, Trang-Thi
Huang, Yennun
author_sort Ho, Trang-Thi
collection PubMed
description Determining the price movement of stocks is a challenging problem to solve because of factors such as industry performance, economic variables, investor sentiment, company news, company performance, and social media sentiment. People can predict the price movement of stocks by applying machine learning algorithms on information contained in historical data, stock candlestick-chart data, and social-media data. However, it is hard to predict stock movement based on a single classifier. In this study, we proposed a multichannel collaborative network by incorporating candlestick-chart and social-media data for stock trend predictions. We first extracted the social media sentiment features using the Natural Language Toolkit and sentiment analysis data from Twitter. We then transformed the stock’s historical time series data into a candlestick chart to elucidate patterns in the stock’s movement. Finally, we integrated the stock’s sentiment features and its candlestick chart to predict the stock price movement over 4-, 6-, 8-, and 10-day time periods. Our collaborative network consisted of two branches: the first branch contained a one-dimensional convolutional neural network (CNN) performing sentiment classification. The second branch included a two-dimensional (2D) CNN performing image classifications based on 2D candlestick chart data. We evaluated our model for five high-demand stocks (Apple, Tesla, IBM, Amazon, and Google) and determined that our collaborative network achieved promising results and compared favorably against single-network models using either sentiment data or candlestick charts alone. The proposed method obtained the most favorable performance with 75.38% accuracy for Apple stock. We also found that the stock price prediction achieved more favorable performance over longer periods of time compared with shorter periods of time.
format Online
Article
Text
id pubmed-8659448
institution National Center for Biotechnology Information
language English
publishDate 2021
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-86594482021-12-10 Stock Price Movement Prediction Using Sentiment Analysis and CandleStick Chart Representation Ho, Trang-Thi Huang, Yennun Sensors (Basel) Article Determining the price movement of stocks is a challenging problem to solve because of factors such as industry performance, economic variables, investor sentiment, company news, company performance, and social media sentiment. People can predict the price movement of stocks by applying machine learning algorithms on information contained in historical data, stock candlestick-chart data, and social-media data. However, it is hard to predict stock movement based on a single classifier. In this study, we proposed a multichannel collaborative network by incorporating candlestick-chart and social-media data for stock trend predictions. We first extracted the social media sentiment features using the Natural Language Toolkit and sentiment analysis data from Twitter. We then transformed the stock’s historical time series data into a candlestick chart to elucidate patterns in the stock’s movement. Finally, we integrated the stock’s sentiment features and its candlestick chart to predict the stock price movement over 4-, 6-, 8-, and 10-day time periods. Our collaborative network consisted of two branches: the first branch contained a one-dimensional convolutional neural network (CNN) performing sentiment classification. The second branch included a two-dimensional (2D) CNN performing image classifications based on 2D candlestick chart data. We evaluated our model for five high-demand stocks (Apple, Tesla, IBM, Amazon, and Google) and determined that our collaborative network achieved promising results and compared favorably against single-network models using either sentiment data or candlestick charts alone. The proposed method obtained the most favorable performance with 75.38% accuracy for Apple stock. We also found that the stock price prediction achieved more favorable performance over longer periods of time compared with shorter periods of time. MDPI 2021-11-29 /pmc/articles/PMC8659448/ /pubmed/34883961 http://dx.doi.org/10.3390/s21237957 Text en © 2021 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Ho, Trang-Thi
Huang, Yennun
Stock Price Movement Prediction Using Sentiment Analysis and CandleStick Chart Representation
title Stock Price Movement Prediction Using Sentiment Analysis and CandleStick Chart Representation
title_full Stock Price Movement Prediction Using Sentiment Analysis and CandleStick Chart Representation
title_fullStr Stock Price Movement Prediction Using Sentiment Analysis and CandleStick Chart Representation
title_full_unstemmed Stock Price Movement Prediction Using Sentiment Analysis and CandleStick Chart Representation
title_short Stock Price Movement Prediction Using Sentiment Analysis and CandleStick Chart Representation
title_sort stock price movement prediction using sentiment analysis and candlestick chart representation
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8659448/
https://www.ncbi.nlm.nih.gov/pubmed/34883961
http://dx.doi.org/10.3390/s21237957
work_keys_str_mv AT hotrangthi stockpricemovementpredictionusingsentimentanalysisandcandlestickchartrepresentation
AT huangyennun stockpricemovementpredictionusingsentimentanalysisandcandlestickchartrepresentation