
Sentiment analysis in social networks
My Bachelor's Thesis. It explored the application of natural-language processing to identify sentiment in social-network conversations.
Premise
This Bachelor’s Thesis analyses opinion expressed on Twitter and YouTube during the 2022 Johnny Depp and Amber Heard defamation trial. Its aim was to observe the prevailing sentiment and how it changed over time using public messages from both platforms.
Methodology
The work used Kaggle datasets, text-cleaning and natural-language-processing techniques, vectorisation and classification models. Random Forest, KNN, Naive Bayes, logistic regression and Support Vector Machine were compared.
It was developed in Python with Jupyter Notebook. Key tools included pandas, NumPy, NLTK, scikit-learn, matplotlib, emoji and enchant, with Kaggle as the data source.
Data and analysis
Twitter posts and comments from Law & Crime YouTube broadcasts were cleaned and vectorised before classification. Naive Bayes was selected for its balance of accuracy and efficiency to study positive-negative ratios, frequent words and changes across specific days and hours.
Conclusions
The analysis showed a generally more favourable sentiment towards Johnny Depp during the period studied and demonstrated how NLP can turn large volumes of social conversation into interpretable time series. Its scope is limited to a specific time window; the thesis received a 10/10 grade.
Next project
David Reigns on YouTube