/AV-Innoplexus-Online-Hiring-Hackathon-Sentiment-Analysis

Innoplexus Online Hiring Hackathon: Sentiment Analysis organised by Analytics Vidya

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

title

Innoplexus Online Hiring Hackathon: Sentiment Analysis

Problem Statement

Sentiment Analysis for drugs/medicines

Nowadays the narrative of a brand is not only built and controlled by the company that owns the brand. For this reason, companies are constantly looking out across Blogs, Forums, and other social media platforms, etc for checking the sentiment for their various products and also competitor products to learn how their brand resonates in the market. This kind of analysis helps them as part of their post-launch market research. This is relevant for a lot of industries including pharma and their drugs.

The challenge is that the language used in this type of content is not strictly grammatically correct. Some use sarcasm. Others cover several topics with different sentiments in one post. Other users post comments and reply and thereby indicating his/her sentiment around the topic.

Sentiment can be clubbed into 3 major buckets - Positive, Negative and Neutral Sentiments.

You are provided with data containing samples of text. This text can contain one or more drug mentions. Each row contains a unique combination of the text and the drug mention. Note that the same text can also have different sentiment for a different drug.

Given the text and drug name, the task is to predict the sentiment for texts contained in the test dataset. Given below is an example of text from the dataset:

Example:

Stelara is still fairly new to Crohn's treatment. This is why you might not get a lot of replies. I've done some research, but most of the "time to work" answers are from Psoriasis boards. For Psoriasis, it seems to be about 4-12 weeks to reach a strong therapeutic level. The good news is, Stelara seems to be getting rave reviews from Crohn's patients. It seems to be the best med to come along since Remicade. I hope you have good success with it. My daughter was diagnosed Feb. 19/07, (13 yrs. old at the time of diagnosis), with Crohn's of the Terminal Illium. Has used Prednisone and Pentasa. Started Imuran (02/09), had an abdominal abscess (12/08). 2cm of Stricture. Started ​Remicade in Feb. 2014, along with 100mgs. of Imuran.

For Stelara the above text is positive while for Remicade the above text is negative.

Data Description

train.csv Contains the labelled texts with sentiment values for a given drug

Variable Definition
unique_hash Unique ID
text text pertaining to the drugs
drug drug name for which the sentiment is provided
sentiment (Target) 0-positive, 1-negative, 2-neutral

test.csv test.csv contains texts with drug names for which the participants are expected to predict the correct sentiment

Evaluation Metric

The metric used for evaluating the performance of the classification model would be macro F1-Score.

Public and Private Split

The texts in the test data are further randomly divided into Public (40%) and Private (60%) data. Your initial responses will be checked and scored on the Public data. The final rankings would be based on your private score which will be published once the competition is over.

Leaderboard

Things you can Learn!!

  • Keras Classification with Attention layer- BiLSTM
  • Text data Augmentation
  • Different state of Art Keras Models
  • Best Data Preprocessing Steps
  • Keras implementation for Text Classification with more than 2 Inputs (Extracted Features)
  • OvR Logistic Regression
  • Kfold in Keras