This project displays visualizations of historical data, predictions, and sentiment analysis data for five NBA teams: Lakers, Celtics, Warriors, Rockets, and Bulls. The historical data has been collected using the NEWS API (articles) and the balldontlie API (past NBA scores). AWS has been used for making predictions (SageMaker) and performing sentiment analysis (Comprehend). The score predictions were made using the historical scores, while the sentiment analysis was made based on the tone of the articles about each team.
- Visualization of historical data.
- Sentiment analysis for each team's related news articles.
- Real-time prediction of each team's future scores.
Score data of the five NBA teams was collected using the Balldontlie API (score) and the News API (articles).
Amazon Comprehend was used to perform sentiment analysis on the news articles related to each team. The results are displayed on a pie chart, with each slice representing the ratio of positive, negative, and neutral news articles.
Amazon SageMaker was used to train a logistic regression model on historical data for each team. The model predicts the scores of each team in upcoming matches. The results are displayed on a line chart.
Tool | Usage |
---|---|
ReactJS | Frontend framework |
Scss | Style the frontend |
Recharts | Chart library for line charts and pie charts |
TypeScript | Provides static types and interfaces to ensure type safety |
Python | Used to create a code that separates JSON files into training and test sets |
News API | Used with TypeScript to download text data for sentiment analysis |
balldontlie API | Used to download past NBA scores |
Amazon DynamoDB | Database service used to store historical score, score predictions, and sentiment analysis data |
Amazon SageMaker | Used to generate predictions |
Amazon Comprehend | Used to perform sentiment analysis on the data downloaded from News API |
Amazon S3 | Storage service used to |
Amazon Lambda | Connect event together for data processing. Triggers sentiment analysis and web sockets update |
Amazon Cloudwatch | Used to monitor other AWS services |
API Gateway | Assign a connection ID to website visitors |
API | Usage |
---|---|
Balldontlie API | Get score data of past NBA matches |
News API | Get news articles for sentiment analysis purposes |
- NBA logo from Wikimedia Commons