Skip to content

Latest commit

 

History

History
80 lines (51 loc) · 5.26 KB

README.md

File metadata and controls

80 lines (51 loc) · 5.26 KB

🐂 crypto-news-sentiment-analysis 🧸

sentiment_pointer

Version 1.0 Industry-wide News Sources ✅

  • Target Platform: 42 News Sites
    • Cointelegraph, The Block, Decrypt, The Defiant, CoinDesk, Blockworks, Blockchain News, BeInCrypto, CNBC Blockchain News, Blockchain.com, Yahoo News Crypto Section, Techcrunch Blockchain Section, Economic Times, Forbes
    • Financial Times, Independent, The blockchain.com, The Conversation, Cryptonews, Wired, Fox Business, Crypto News Net, AP News, The Indian Express, The Time of India, BBC News, News Now, Blockchain Magazine
    • CCN, Washington Post, New York Times, Bezinga, Google News, New York Post, People.com, NBC News, Daily Mail, The Guardian, Wall Street Journal, Buzzfeed, MarketWatch, Fortune

  • Methodology and Ouput:
    • Scraping over 42 News Sites with Beautiful Soup and collecting Crypto-related News Titles from the selected pages. Each iteration can obtain over 1400 of the most recent New Titles. We attempted two NLP Models, NLTK.sentiment.vader and a Pre-trained Transformer Model CryptoBERT. We decided to proceed with the Transformer Model as it's trained on a wide range of crypto-related datasets and is fine-tuned specifically for crypto sentiment analysis. Our output will determine the sentiment bias of the 42 websites of our choice and rank the Top 5 Sites with Bullish sentiment and the Top 5 with Bearish sentiment.
    • Check out sample result in ouput_vader.ipynb and ouput_cryptobert.ipynb inside Version 1.0 folder
    • Check out the sample for assigning labels to Twitter messages using the CryptoBERT Transformer model here

  • Weakness and Improvement
    • Testing the robustness of the output result requires obtaining the mass labeling and verifying the result by each. For practical use, one can gather all the obtainable news websites and calculate the overall industry polarity. However, for this approach, some weights on the polarity score should be considered as each website experiences different traffic. One way of obtaining such information without paying for the analytical website is writing a Selenium script and directing it to Similarweb.com, finding monthly visits, and adjusting the weights based on traffic portion for each website multiplied by the given website polarity score. The calculated overall polarity score can be used as log weights for Token-specific news we will calculate in Version 2.0 or weighted factors in other dimensional analysis experiments.
    • Based on the above reason, the output should be used or implemented under careful consideration of the above constructions.


Version 2.0 Token News and Industry News Aggregation 🔜

Target Platform: 5 cryptocurrency market tracking websites

  • CoinMarketCap, CoinGecko, Livecoinwatch.com, Coincodex, CryptoCompare

Methodology:

  • Obtain Coin-specific News from the above 5 platforms through APIs (if not attempt Selenium)
  • Obtain Coin-specific Media Post (Twitter or Reddit) from the above 5 platforms through APIs (if not attempt Selenium)
  • Obtain Industry News from the Coincodex News Aggregation Site
  • Place Weights to the Polarity Score referenced from Semrush

Model:


Result: TBA


The $ith$ Industry-wide News Source Polarity Score: $$S_i(Industry)$$ The $ith$ Token-specific News Source Polarity Score: $$S_i(Token)$$ The $Total$ Industry-wide News Source Polarity Score: $$S_{Total}(Industry) = \sum_{i=1}^m |S_i(Industry)|$$ The $Weighted$ Token-specific News Source Polarity Score: $$S_{weighted}(Token) = \sum_{i=1}^m [ \log \frac{S_i(Industry)}{S_{Total}(Industry)} + \log S_i(Token)]$$



Version 2.2 Model Upgrade

  • Considering fine-tuning an advanced word embedding method of choice (BERT): CryptoBERT
  • Conduct a Robustness Test (if possible)


Version 2.5 More Sources

  • Website Views: Use Selenium to go to Similarweb Website Analysis Dashboard (Google "Similar Web traffic checker" if need to ). Then scrape the recent month's views.
  • YouTube Comments: Since Twitter and Reddit API are prohibited from free use, we can consider using YouTube API to search for "Today" News choose the top five results from the search, and scrape their comment sections to produce a general sentiment from the viewers.


Version 3.0 GUI

  • Streamlit for display