User Based Spotify Recommendation System Using Machine Learning Algorithms
User Based Spotify Recommendation System Using Machine Learning Algorithms
ISSN No:-2456-2165
L.Vyshnavi2, G.Dhathrik4
UG Scholar, Dept. of IT, UG Scholar, Dept. of IT,
NRI Institute of Technology, A.P-521212 NRI Institute of Technology, A.P-521212
Abstract:- We have described a personalized music an application by recommending the most acceptable
recommendation system using K-nearest neighbour that and personalized services for each and every user.
is KNN and machine learning methods in this paper. We
present a collaborative filtering and content filtering Keywords: K-NN, SVM, Multiple Linear Regression,
recommendation algorithm to combine the output of the Random Forest Regression, Popularity Model, Content-
network with the log files to recommend music to the Based Model, Collaborative Filtering.
user in a personalized music recommendation system.
The recommended system includes log files that store the I. INTRODUCTION
past or viewed history of the user's music playlist. The
propound music exhortation system pulls the consumer's Everyone’s taste in music is unique, which means that
the beyond records from the log file and provides track no matter what music you make, someone is always bound
tips for each recommendation. Content-based to enjoy listening to it. While the music industry may favor
approaches make suggestions based on the audio certain types of music compared to others, it is important to
characteristics. Speedy development of cell phones and understand that there isn't a single human culture on earth
internet has made possible for us to access various music that has existed without music. Music is such a great bliss to
resources freely. While the music industry may favour us, regardless of whether we are renowned recording artists,
certain types of music more than others, it is salient to karaoke singers, or merely fans of music. The number of
understand that there isn’t a single human culture on songs available increases the listening capacity of every
earth that has existed without music. In this paper, we single individual. According to disclose of MarsBands.com,
have sketched, implemented and examined a song there are at least ninety-seven million songs. These are the
recommendation system. We have used Song text only songs officially released. If we included songs
provided to find relationship between users and songs everyone knows or the incredibly old Celtic songs with no
and to seek from the preceding listening history of users names, we would nearly reach 200 million songs, since the
to deliver recommendations for songs which users may website mostly does not add Happy Birthday or an
prefer to listen mostly. The dataset bottles up over inexpressible song from 1400 A.C. This is when we only
10,000 songs and listeners are advocated the first-class add artists whose names are officially on music charts.
available songs based totally at the mood, style, artist
and top charts of that yr. With a powerful interactive UI, Starting there, let's say that there are presently around
we show the listener the cover songs that were played the one million songwriters active that we know about. Using
maximum and top charts of the year. Listener also have the same percentage as above, we can estimate that there
an option to select his/her favourite artist and albums on have been approximately 15.3 million songwriters
which songs are recommended to them by utilizing the throughout history. To get an innovative idea, there are four
dataset. A recommendation system plays a important million songs on Spotify that have never been played. In
role in providing a well user experience in an application total, there must be billions of songs there, and Spotify itself
by providing the most suitable and personalized services is by no means the limit of music. There are trillions and
for each and every user. Currently, Spotify has one fifty- trillions of songs in the world, so many that an estimate is
five million premium subscribers and three forty five impossible, and the potential for an infinitely greater number
million active users. Spotify’s recommendation system that have not yet been made, creating a world of music for
has also played a dominant role in the success of Spotify. us to enjoy. Keeping this general idea in mind, one can see
In the modern years, music and movie flowing services that the number of songs is too high for a person, even if
have grown extremely. Currently, Netflix and Spotify listening to music is his or her best hobby. People
have a bulk number of users, which has made these sometimes find it difficult to pick from millions of songs.
spurting services victorious. A recommendation system Moreover, music service providers need an efficient way to
plays a vital role in providing a well user experience in manage songs and help their customers discover music by
giving quality recommendations. This means it not only
Technologies Used:
Fig 3 SVM
K-NN:
The K-Nearest Neighbor (K-NN) model for
recommendations is an item-based strategy that searches for
neighbors between objects, in contrast to user-based
algorithms that look for neighbors between users. The best
model for implementing item-based collaborative filtering
and a great place to start when developing a
recommendation system is K-Nearest Neighbor. A non-
parametric learning technique is the K-NN approach. This
technique uses a database with categorized data points to
draw conclusions for new samples. K-NN makes no
assumptions about the distribution of the underlying data
and only relies on the similarity of item attributes. K-NN
ranks the "distance" between each item in the database and
the target item when it arrives to a decision about an item.
Fig 2 Technologies Used
The top K items are then suggested as the most
SVM: comparable items.
A supervised machine learning method called SVM
(Support Vector Machine) can be utilized to resolve The K-Nearest Neighbors method's algorithm is as
classification and regression issues. However, it is usually follows: 2012 (Han et al.)
used to address categorization issues. The value of each
feature corresponds to a certain coordinate in the SVM
Establish the parameter k (number of nearest neighbors).
algorithm, and each piece of data is represented as a point in
Determine the separation between all training data and
n-dimensional space (where n is the number of features you the data that will be examined.
have). Sort the distances created (in ascending order) and find
the one that is the closest.
A linear model called the Support Vector Machine, or Include the proper class (c).
SVM, can be used to address classification and regression Determine how many classes are closest neighbors, and
problems. It is helpful for a variety of applications and can then identify the class as the data evaluation. [fig:4]
Existing System:
Reinforcement learning, or RL, is a type of machine
learning model that responds to its happening environment
in an effort to maximize the ultimate, long-term reward,
Fig 5 SRS
whatever that may be. In our case, that reward is our users'
Popularity Model:
long-term satisfaction with Spotify. RL isn't about short-
It is a straightforward model that ranks the songs in the
term solutions. It's always playing the long game. In other
training set in order of decreasing popularity and suggests words, rather than handing users the "empty calories" of a
the most well-liked ones. This approach disregards the content diet that will only satisfy them in the moment, RL
preferences of the user. [fig:5]
aims to push them toward a more live able, diverse, and
fulfilling content diet that will last one's time. This could
Content Based Model:
mean playing an advanced dance track we think might fit a
A representation of the item and a profile of the user's
user's present mood, or it could mean suggesting a calming,
preferences serve as the foundation for content-based
ambient piece to help them study.
filtering techniques. Recommendation is treated as a user-
specific classification problem by content-based After that e-commerce gained popularity of selling
recommenders, which also learn a classifier for the user's
products and the development of new generation mobile
preferences based on product attributes. phones and innovative inventions like tablets, shopping
become easier than before. Therefore, new kinds of
The system primarily employs two sorts of data to advertising techniques came up. Recommendation systems
build user profiles: a model of the user's preferences and a
are one of the most popular techniques nowadays. They are
history of the user's interactions with the recommender useful for both the company and the user because they
system. Based on song metadata, we constructed a K- increase product sales while reducing the time spent
Nearest Neighbor model to suggest songs. We first built a shopping. However, they have some problems because of
library of songs based on various information elements the huge amount of data. The main problems are being
(artist, genre, etc.), after which we suggested songs that
unable to get really relevant results and being unable to get
were comparable. From among the songs found in the user's
results in a reasonable amount of time.
profile, we choose the k closest neighbors. The nearest
neighbor algorithm, which is based on a ball tree, is used to
Disadvantages:
alleviate the computing shortcomings of the brute-force
Up until now, a lot of methods have been developed to
method. A data structure created using the ball tree
resolve the problems stated above, such as collaborative
algorithm, which divides data into a series of nesting
filtering and content-based filtering. However, they have
hyperspheres, can be particularly effective on highly
some weaknesses. For example, collaborative filtering has
structured data, even in very high dimensions. [fig:5]
the problem of "cold starts," which means that the
recommendation system cannot produce any suggestions or
Collaborative Filtering:
recommendations. This difficulty occurs when items are
The propose behind collaborative filtering is that
provided in the system but there are few customers and few
people who have formerly agreed will do so again and that
or no rankings. And in the other example of content-based
they will continue to enjoy the same kinds of things.
filtering, if the content lacks enough information to
distinguish the items precisely, the recommendation cannot
Recommendations are generated by the algorithm
be made. On the other hand, our system should find the
solely based on data from rating profiles for many persons
most accurate recommendations. Our potential users, whom
or things. It generates recommendations using this
we desire to help with their problems, are companies that
neighborhood by identifying peer users or items with rating
use internet utilities to sell their products. And by proposing
histories similar to the current user or item. We have created
Proposed System:
The creation of a music suggestion app is the major
goal of this endeavor. Users can choose and listen to songs
stored on the device using the program. A log is established
each time a person listens to a certain song. We construct a
recommendation engine using a variety of ways to propose
songs to users.
Users and objects are connected via context awareness Fig 6 System Architecture
in situations like working or dancing. Items are tagged with
user reviews in tag-based recommendations. The goal of Future Scope:
recommendation in the long tail is to reduce the popularity In coming days, the recommendation system plays a
bias. It typically goes hand in hand with collaborative vital in maintaining and developing music systems likewise
filtering and disregards item popularity for content-based improving the user experience.
filtering. Recommendation networks give the
recommendation strategies some new properties. The II. CONCLUSION
creation of playlists can be seen as a variation on top-N
suggestions that satisfies user needs. Group suggestion To improve the quality of music recommendations,
includes some pre- or post-processing, either by combining music recommender systems should first take music genre
several user profiles with shared interests or by combining information into account. Based on the attributes of the
different lists of recommendations into a single list. The songs, the music recommender can make song
system we propose consists of three models. recommendations. By calculating the similarity score for
each recommended song, the music recommender can detect
Advantages of Proposed System: plagiarism in the dataset used. By comparing the lyrics of
The main aim of any recommendation engine is to the supplied song with all the other songs in the dataset, the
stimulate demand and actively engage users. Primarily a mood of the song is predicted. The anticipated mood and
component of an ecommerce personalization strategy, similarity scores are then used to recommend music
recommendation engines dynamically populate various depending on the mood.
products onto websites, apps, or emails, thus enhancing the
customer experience. Because different music recommender systems operate
in various ways, the complicated nature of machine learning
It provides personalization and thus boosts user systems like the Music Recommendation System cannot
engagement. The recommender system is helpful to both have a uniform framework. Our findings allow us to identify
service providers and users. It saves time for the user in additional music aspects for future research in order to
finding and selecting a perfect song and at the same time, it increase the recommender system's accuracy, such as
also helps service providers retain customers for a longer employing tempo gramme to record the local tempo at a
time on their platform certain time.
REFERENCES