The Data Science of “Someone Like You” or Sentiment Analysis of Adele’s Songs
An extensive analysis of Adele's songs using Natural Language Processing (NLP) on the lyrics, to uncover the underlying emotions and sentiments.
Adele is one of the most famous contemporary singers and undoubtedly one of the few artists loved by people of all ages. Her album 21 received tremendous success and earned numerous mentions in the Guinness Book of World Records. Adele was also the first female artist to get two albums in the top five of the Billboard 200 at the same time and two singles in the top five of the Billboard Hot 100. As a lead artist she was the first woman in the history of the Billboard Hot 100 to have three simultaneous top 10 singles -- "Rolling in the Deep", "Someone Like You", and "Set Fire to the Rain".
Enough said about her singing prowess! What’s fascinating for us is the easy availability of her lyrics exposed by Genius API, audio features via Spotify’s API and the potential to analyze them. In this study, I’ll be performing sentiment analysis on her studio albums, i.e.,19, 21, 25.
The Genius.com API allowed me to download the lyrics and associated data points. In total the data set consists of 41 tracks and the following data fields:
- artist name
- album name
- track title
- track number
- lyric text
- line number
The goal of this study is to perform text mining techniques, specifically Natural Language Processing (NLP) on the lyrics to uncover the underlying emotions and sentiments. Given below are the specific questions we’ll answer:
- What are the most frequent words used by her?
- Which are the positive and negative words prevalent in her songs?
- What are the overall sentiments expressed in her songs?
- Which are the top words used to describe different emotions?
- Which are the songs associated with different emotions?
- What type of relationship exists between the emotions and the albums?
- What does the valence score vary for her albums? (Spotify API will be used here)
Most frequent words
Let’s begin by loading the required packages. After that we will create a word cloud to get an overview of the word frequency.
This gives us the following visualization:
We can see that ‘love’ is the most frequently used word and the other high frequency words are ‘like’, ‘never’, ‘say’, ‘heart’ and ‘ill’. This makes sense as many of her songs are actually about love and heartbreak.
Positive and negative words in the songs
This will be another word cloud, but this time we’re going to segregate the words into positive and negative polarity. We’ll are using the ‘bing’ method of ‘syuzhet’ package for this visualization.
The resulting visualization shows that the predominant positive words are ‘love’, ‘like’, ‘better’, ‘right, free’, ‘wonders’ and negative words are ‘rumours’, ‘miss’, ‘fall’, ‘fool’, ‘crazy’, pain, hurts’, ‘wrong’, ‘tired’.
Overall sentiments expressed
This chart will show us the cumulative score generated for different emotions expressed in her songs. For this chart we’ll use the ‘nrc’ method of ‘syuzhet’ package. Given below is the code for the same:
The chart given below shows that the positive score is higher than negative which might have resulted from the high frequency usage of ‘love’. We also see that ‘joy’, ‘anticipation’ and ‘sadness’ are the top three emotions.
Top words used to describe different emotions
This chart will help us find out the most frequently used words that are associated with the emotions spanning across all the albums. Execute the following code to generate the chart.
The chart shows that in terms of polarity, ‘love’, ‘baby’, ‘young’ are the top 3 positive words and ‘fall’, ‘words’, ‘leave’ are the negative words. Coming to emotions, sadness is primarily respected by words such as ‘fall’, ’leave’, ‘crazy’.
Top Stories Past 30 Days