Skip to content

Machine learning, when used with social media, can be useful in diagnosis of mental health illnesses as it provides insights into an individual’s behaviour. In this study, we compared several machine learning classifiers on their ability to detect if a given tweet that talks about depression actually shows signs of depression. We fetched tweets …

License

Notifications You must be signed in to change notification settings

parulsaini42/Detecting-Depression-in-Tweets-using-Machine-Learning-Classifiers

Repository files navigation

Detecting-Depression-in-Tweets-using-Machine-Learning-Classifiers

In this study, done as a part of project work for course CSC2515: Introduction to Machine Learning Fall 2021, we compared several machine learning classifiers on their ability to detect if a given tweet that talks about depression actually shows signs of depression. We fetched tweets from Twitter using a hashtag keyword matching procedure and used a pre-trained BERT sentiment model to separate potential tweets about depression into two classes. Since prior research indicated that including emojis can improve classification performance when working with social media textual data, we used Word2Vec and Emoji2Vec to create embeddings for both text and emojis in the tweets. Our best performing model was a Gaussian kernel support vector machine (SVM) with a test accuracy of around 85% both with and without emojis. Contrary to our expectations, including emojis did not noticeably improve performance which we attribute primarily to our limited dataset.

Pre-requisites:

Emoji2Vec repository: https://github.com/uclnlp/emoji2vec nn10000: Pretrained sentiment model on 10000 tweets

About

Machine learning, when used with social media, can be useful in diagnosis of mental health illnesses as it provides insights into an individual’s behaviour. In this study, we compared several machine learning classifiers on their ability to detect if a given tweet that talks about depression actually shows signs of depression. We fetched tweets …

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published