Music Recommendation Using Emotion Analysis
Music Recommendation Using Emotion Analysis
ISSN No:-2456-2165
Abstract:- In this era of internet, all the music is now new content, i.e. music that is recently released or hasn’t been
available on the commercial music services in abundance. played too many times.
The quantity of the available music pieces is in dozens of 2. Content-based filtering recommends music which is
millions. This makes choosing an appropriate music piece similar to a user ‘s favourites music in terms of its features.
out of this abundance of music is a time-consuming task. This leads to a great artist variety; with various music pieces
Whenever users want to listen to music of specific genre, a including unrated ones being recommended.
need to find a music piece similar to what user likes to
hear arises. Hence it is very important to develop a system II. MATERIAL AND METHODS
that can select music to a user based on certain criteria.
This system is designed to recommend music to users i. LITERATURE REVIEW
according to their mood by recognizing their facial In 2009, Byeong-jun Han et al.[1] presented a content-
expressions using machine learning algorithm to decide a based recommendation system. The paper aimed at
user’s emotional state. developing a hybrid system that used both content-based
recommendation with music ontology. A model was trained
Keywords:- OpenCV, Facial Emotion Recognition, by analysing low-level features of music. It was proposed in
Haarcascade, Music Recommendation etc. three steps. An emotion state transition model (ESTM), an
emotion transition matrix (ETM) and an ontology to depict
I. INTRODUCTION emotions and a model was proposed to map the emotion
transition with low level features of music.
The property of music to trigger emotions in humans is
the main reason of widespread use of music in daily lives. Kyoungro Yoon et al. [2] proposed developing a system
Most people are aware about the ability of music triggering that used collaborative approach for music recommendation.
emotions such as happy, sad, and angry etc. But content- For this, it uses low level features of music pieces that can
based methods recommend music pieces that are similar to trigger an emotional response from an individual. The system
user’s favourites. But in actual scenario, users don’t rate used selected low-level music features tackle scalability
every music piece they like. Rather a very small amount of problem that occurs in tag-based system. The system was
music pieces is actually rated by users which makes the pool based on 6 high-level features, 28 mid-level features and 890
of user reviews smaller. In turn, this makes the system low-level features. The drawbacks that accompanied by either
recommend a very narrow range of music pieces to the user. content-based or collaborative approach was addressed by
Because a lot of focus is given on developing music retrieval Marius Kaminskas et al. [3] Content-based systems study
systems in which user preference representing queries are features like genre, artist etc. to find similarity. This method
prepared. Music recommendation is needed today is because tackles the problem of popularity bias in collaborative
we can access a huge number of music pieces on the internet. filtering. But systems that use audio features need high
To find songs using retrieval systems, we have to execute computational power. Modern commercial music libraries are
queries manually and repeatedly and hence it is difficult to humongous in sizes, and hence useless for commercial use.
find about which queries are appropriate. To overcome this, it Both filtering methods have drawbacks and hence there have
is expected that a recommender system selects probably- been many attempts to combine both the approaches. Hence
preferred pieces from the database by estimating user authors [4] proposed a hybrid system that combines both the
preferences. filtering algorithms. For music similarity, they used waited
Euclidean algorithm using users listening history which
The two most widely used classification techniques are addresses both the filtering techniques.
collaborative filtering approach and content-based filtering
approach. ii. HAAR CASCADE CLASSIFIERS
1. Collaborative methods recommend pieces to a user by Object Detection is used to detect various shapes,
taking ratings of those pieces by other people. For example, objects and people from image or video feeds. This method
consider there are three users. User is a person who likes was proposed by authors [5]. The basis of Haar object
music pieces X and Y. If there are many other users who like classifier and detection method is the Haar-like features.
the music pieces X, Y, and Z then the music Z will most Instead of using the intensity of a pixel, haar features use
likely be recommended that user. This method is widely used variance in contrast between neighbouring pixel groups for
in E-commerce services (e.g., Amazon and Flipkart) and is detection of object’s edge. The difference between the
proven to be effective. But this system doesn’t work well for contrast of various pixel groups is used to determine light and
dark areas in an image. A group of points with contrast
iv. ARCHITECTURE