Music Genre Classification Using Machine Learning
Music Genre Classification Using Machine Learning
Music Genre Classification Using Machine Learning
Volume 5 Issue 4, May-June 2021 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470
@ IJTSRD | Unique Paper ID – IJTSRD41263 | Volume – 5 | Issue – 4 | May-June 2021 Page 829
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
II. PROPOSED SYSTEM is 30 seconds long. Ten classifications are available in this
The advent of huge music collections has represented the dataset containing 100 tracks each. Each track is in .wav
test of how to recover, browse, and suggest their contained format. It contains sound records of 10 genres [2].
items. One approach to facilitate the access of huge music
B. Mel Frequency Cepstral Coefficients (MFCC)
classification is to keep label explanations of all music
The first phase in any music genre classification system is to
resources. Labels can be added either manually or
extract features i.e. recognize the segments of the audio
automatically. However, because of the high human effort
signal that are useful for distinguishing the linguistic content
needed for manual labels, the execution of automatic labels
and disposing of the wide range of various stuff which
is more cost-effective. To solve this issue, we compared K-
conveys data like background noise, emotion etc. [2].
NN and SVM classifiers to classify the genres by using the
GTZAN dataset. From the results, we found that the k-NN
gave more accurate outcomes compared to the SVM
classifier [3].
@ IJTSRD | Unique Paper ID – IJTSRD41263 | Volume – 5 | Issue – 4 | May-June 2021 Page 830
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
After that, we have to take the value of K i.e. the nearest IV. CONCLUSION
data points. K can be any number. We have presented a methodology for automatically
extracting musical features from audio files and classifying
Calculate the distance between test data and each row of
them according to their genre in this paper. We feature
training data with the assistance of Euclidean distance.
extraction and selection, and finally classification process.
To calculate Euclidean distance is.
KNN is a supervised learning classifier that is easy to
implement. From results we found that k-Nearest Neighbors
classifier gave more accurate outcomes compared to support
vector machine classifier. If training data is much larger than
Now, based on the distance value, sort them in number of features, k-NN gives better results than SVM. SVM
ascending order. can only identify limited set of patterns. Overall KNN is more
effective classifier which gave 75% accuracy for the
Next, it will pick the top K rows from the arranged array. classification of music genre.
Now, it will allocate a class to the test point dependent V. REFERENCES
on most frequent class of these rows[11]. [1] Wing W. Y. Ng, Weijie Zeng, Ting Wang(2020) “Multi-
D. Support vector Machine Algorithm (SVM) Level Local Feature Coding Fusion for Music Genre
Support Vector Machine is a model for classification and Recognition”.
regression. It can deal with linear and non-linear issues and [2] Nilesh M. Patil, Dr. Milind U. Nemade(2017) “Music
function admirably for some reasonable issues. The Genre Classification Using MFCC, K-NN and SVM
algorithm makes a hyperplane which isolates the data into Classifier”.
classes[6]. The target of the SVM algorithm is used to settle
the decision boundary that can seclude n-dimensional space [3] Sergio Oramas, Francesco Barbieri, Oriol Nieto, Xavier
into classes so it can put the new data point in the right Serra (2018) “Multimodal Deep Learning for Music
category. This decision boundary is known as a hyperplane. Genre Classification”.
SVM picks the vectors that assistance in making the [4] Muhammad AsimAli, Zain Ahmed Siddiqui (2017)
hyperplane. These extreme cases are called as support “Automatic Music Genres Classification using Machine
vectors, and algorithm is named as Support Vector Learning”
Machine[6].
[5] Ahmet Elbir; Hilmi Bilal Çam; Mehmet Emre
III. RESULTS AND DISCUSSIONS Iyican; BerkayÖztürk; Nizamettin Aydin(2018) “Music
Accuracy of classification by different genres with k-NN and Genre Classification and Recommendation by Using
SVM algorithms is varied. The achievement rate of k-NN was Machine Learning Techniques”.
75% yet the blues genre was misconstrued as rock. The k-NN
did badly while perceiving blues with a recognizing [6] Anirudh Ghildiyal; Komal Singh; Sachin Sharma
percentage of 66%. The SVM misconceived classical genre as (2020) “Music Genre Classification using Machine
jazz or hip-hop, yet the rock genre was precisely related to Learning”.
progress rate of 94%. Similarly, the k-NN did well with [7] KonstantinMarkov; Tomoko Matsui(2014) “Music
perceiving entire categories however then again it likewise Genre and Emotion Recognition Using Gaussian
erroneously distinguished disco with rock and metal with Processes”.
jazz. The k-NN classification had the success rate of country
was 73% however with rock genre it was simply 40%. Hip [8] Ali Karatana; Oktay Yildiz(2017) “Music genre
hop genre had the achievement rate of 75%. The classical classification with machine learning techniques”.
and raggae had success rate of 69% which is better than SVM [9] DivyanshRana(2019) “Music Recommendation System
however trouble to differentiates with many other genres. Using machine learning algorithms”.
By and large we found that k-NN is more successful classifier
which gave 70% of accuracy. [10] J. Umamaheswari; A. Akila(2019) “ An Enhanced
Human Speech Emotion Recognition Using Hybrid of
Genres K-NN classifier SVM classifier PRNN and KNN”.
Classical 0.69 0.62
[11] QhansaDi’Ayu Putri Bayu; Suyanto Suyanto;
Country 0.73 0.70
AndityaArifianto (2019) “Hierarchical SVM-kNN to
Pop 0.70 0.65
Classify Music Emotion”.
Hip-Hop 0.75 0.55
Blues 0.66 0.80 [12] JeremyReed, Chin-Hui Lee ”A Study on Music Genre
Reggae 0.69 0.14 Classification Based on Universal Acoustic Models”.
Accuracy 75% 65%
@ IJTSRD | Unique Paper ID – IJTSRD41263 | Volume – 5 | Issue – 4 | May-June 2021 Page 831