Skip to content

Using historical financial data and aggregated social media sentiment from Twitter to determine the stock signal (Buy or Sell) for a given trading day. Comparing the performance of deep learning models such as LSTMs, GRUs, and RNNs when performing stock signal prediction with and without social media sentiments

Notifications You must be signed in to change notification settings

DDave94/Stock-Prediction-DL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stock-Prediction-DL

Purpose:

Developing deep learning models which utililze historical financial stock data in combination with daily aggregated twitter sentiments to determine the stock buy or sell siganl for a given trading day. Three types of deep learning models were used for this task: RNN, LSTM, and GRUs. Trying to understand the role of social sentiments today when predicting the signal of Microsoft and Tesla.

Repository Structure:

This repository contains the following:

  • datasets

    • raw
      • Contains raw extracted tweets for each year from 2017 to 2020 for Microsoft and Tesla
    • msft-tweet-sentiments-lstm.csv
      • Contans the daily aggregate sentiment scores after classifying each Microsft tweet using the sentiment analysis model
    • tsla-tweet-sentiments-lstm.csv
      • Contans the daily aggregate sentiment scores after classifying each Tesla tweet using the sentiment analysis model
  • src

    • Microsoft Models
      • Source code for LSTM, RNN, and GRU models which predict the Microsoft stock signals for a given trading day
    • Sentiment Analysis Model
      • Source code for bidirectional LSTM model used to generate generate sentiment scores for tweets from Microsoft and Tesla
      • This model was trained using the Sentiment140 training dataset created by created by Alec Go, Richa Bhayani, and Lei Huang, who were Computer Science graduate students at Stanford University. (Link to site here: http://help.sentiment140.com/home)
    • Tesla Models
      • Source code for LSTM, RNN, and GRU models which predict the Tesla stock signals for a given trading day
    • Twitter Scraping

About

Using historical financial data and aggregated social media sentiment from Twitter to determine the stock signal (Buy or Sell) for a given trading day. Comparing the performance of deep learning models such as LSTMs, GRUs, and RNNs when performing stock signal prediction with and without social media sentiments

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published