AI based stock market trending analysis
Forecasting stock market prices is a challenging task that many researchers seek to solve. With the rising trend of using machine learning models to predict stock market prices, creation of an enhanced stock price prediction model is vital in gaining an edge over the market. In this case, social med...
Saved in:
Main Author: | |
---|---|
Other Authors: | |
Format: | Final Year Project |
Language: | English |
Published: |
Nanyang Technological University
2020
|
Subjects: | |
Online Access: | https://hdl.handle.net/10356/137950 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Nanyang Technological University |
Language: | English |
id |
sg-ntu-dr.10356-137950 |
---|---|
record_format |
dspace |
spelling |
sg-ntu-dr.10356-1379502020-04-20T06:31:54Z AI based stock market trending analysis Chan, Lawann Wen Jun Li Fang School of Computer Science and Engineering Wang Zhaoxia asfli@ntu.edu.sg Engineering::Computer science and engineering::Computing methodologies::Artificial intelligence Forecasting stock market prices is a challenging task that many researchers seek to solve. With the rising trend of using machine learning models to predict stock market prices, creation of an enhanced stock price prediction model is vital in gaining an edge over the market. In this case, social media platforms such as Twitter presents a wealth of information that could facilitate stock market price prediction. Similarly, news publications have been shown to affect the movement trend of stock market prices. Presented in this report is the exploration of sentiments, specifically sentiments from Twitter tweets and The New York Times news articles, in the creation of an enhanced Long Short-Term Memory (LSTM) stock price prediction model. Furthermore, this report compares the performance of a baseline LSTM prediction model without inclusion of sentiments against three sentiment enhanced LSTM prediction model. The extraction of relevant New York Times news articles and Twitter tweets within this report is performed using New York Times API and a Twitter Scrapper. After which, sentiment classification for the extracted news articles is performed using vaderSentiment whereas sentiment classification for the extracted tweets is done using a state-of-the-art natural language processing model, Bidirectional Encoders Representing Transformers (BERT). Additionally, this project introduces a sentiment decay function that incorporates sentiment relevancy to the sentiment scores before input to a LSTM model. Experimental results obtained from the comparison of the baseline LSTM model against the sentiment enhanced LSTM models have demonstrated improvement in price prediction performance for three LSTM models which incorporated sentiment scores. This report concludes that incorporation of sentiments extracted from Twitter tweets and New York Times news articles in the creation of a LSTM stock market price prediction model enhances the model’s performance in stock price prediction. Lastly, this project suggests further avenues for research through the exploration of employing a wider range of sentiments obtained from other news and social media platforms in the generation of a stock price prediction model. Bachelor of Engineering (Computer Science) 2020-04-20T06:31:54Z 2020-04-20T06:31:54Z 2020 Final Year Project (FYP) https://hdl.handle.net/10356/137950 en SCSE 19-0125 application/pdf Nanyang Technological University |
institution |
Nanyang Technological University |
building |
NTU Library |
country |
Singapore |
collection |
DR-NTU |
language |
English |
topic |
Engineering::Computer science and engineering::Computing methodologies::Artificial intelligence |
spellingShingle |
Engineering::Computer science and engineering::Computing methodologies::Artificial intelligence Chan, Lawann Wen Jun AI based stock market trending analysis |
description |
Forecasting stock market prices is a challenging task that many researchers seek to solve. With the rising trend of using machine learning models to predict stock market prices, creation of an enhanced stock price prediction model is vital in gaining an edge over the market. In this case, social media platforms such as Twitter presents a wealth of information that could facilitate stock market price prediction. Similarly, news publications have been shown to affect the movement trend of stock market prices.
Presented in this report is the exploration of sentiments, specifically sentiments from Twitter tweets and The New York Times news articles, in the creation of an enhanced Long Short-Term Memory (LSTM) stock price prediction model. Furthermore, this report compares the performance of a baseline LSTM prediction model without inclusion of sentiments against three sentiment enhanced LSTM prediction model.
The extraction of relevant New York Times news articles and Twitter tweets within this report is performed using New York Times API and a Twitter Scrapper. After which, sentiment classification for the extracted news articles is performed using vaderSentiment whereas sentiment classification for the extracted tweets is done using a state-of-the-art natural language processing model, Bidirectional Encoders Representing Transformers (BERT). Additionally, this project introduces a sentiment decay function that incorporates sentiment relevancy to the sentiment scores before input to a LSTM model.
Experimental results obtained from the comparison of the baseline LSTM model against the sentiment enhanced LSTM models have demonstrated improvement in price prediction performance for three LSTM models which incorporated sentiment scores. This report concludes that incorporation of sentiments extracted from Twitter tweets and New York Times news articles in the creation of a LSTM stock market price prediction model enhances the model’s performance in stock price prediction.
Lastly, this project suggests further avenues for research through the exploration of employing a wider range of sentiments obtained from other news and social media platforms in the generation of a stock price prediction model. |
author2 |
Li Fang |
author_facet |
Li Fang Chan, Lawann Wen Jun |
format |
Final Year Project |
author |
Chan, Lawann Wen Jun |
author_sort |
Chan, Lawann Wen Jun |
title |
AI based stock market trending analysis |
title_short |
AI based stock market trending analysis |
title_full |
AI based stock market trending analysis |
title_fullStr |
AI based stock market trending analysis |
title_full_unstemmed |
AI based stock market trending analysis |
title_sort |
ai based stock market trending analysis |
publisher |
Nanyang Technological University |
publishDate |
2020 |
url |
https://hdl.handle.net/10356/137950 |
_version_ |
1681058911871827968 |