Skip to main content

SINATRA: A Music Genre Classifier Based on Clustering and Graph Analysis

  • Chapter
  • First Online:
Cutting Edge Applications of Computational Intelligence Tools and Techniques

Part of the book series: Studies in Computational Intelligence ((SCI,volume 1118))

  • 126 Accesses

Abstract

At the dawn of a new era of intelligent applications in the music sector, the automatic genre-based classification of music tracks is a paramount task for the development of different services, such as music recommenders. In that sense, current solutions to uncover the genre of a song usually follow a multi-class approach revealing only a single genre per target song. However, songs do not usually belong to a single music genre but a mixture of them. In this context, the present work introduces SINATRA, a novel multi-label classifier of music genres of songs. By following an iterative procedure that continuously reduces the dimensional space of the genres, SINATRA is able to tag a song with multiple and complementary genres. The aforementioned dimensionality reduction is done by computing a graph comprising the co-occurrences of genres in songs. The evaluation results shows that SINATRA achieve an accuracy score above 0.5 given genre space covering more than 2,000 music genres.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://newsroom.spotify.com/company-info/.

  2. 2.

    https://www.apple.com/apple-music/.

  3. 3.

    https://developer.spotify.com/documentation/web-api/reference/get-track.

  4. 4.

    https://developer.spotify.com/documentation/web-api/reference/get-several-audio-features.

  5. 5.

    https://charts.spotify.com/charts/overview/global.

  6. 6.

    https://developer.spotify.com/discover/.

  7. 7.

    We assumed that the release date of a song was the one of the album on which it appeared.

References

  1. Franklin, J.C.: Ancient Greek Music and the Near East. A Companion to Ancient Greek and Roman Music, 229–241 (2020)

    Google Scholar 

  2. Terroso-Saenz, F., Soto, J., Muñoz, A.: Evolution of global music trends: An exploratory and predictive approach based on spotify data. Entertainment Computing 44, 100536 (2023)

    Article  Google Scholar 

  3. Elbir, A., Aydin, N.: Music genre classification and music recommendation by using deep learning. Electronics Letters 56(12), 627–629 (2020)

    Article  Google Scholar 

  4. Gunawan, A.A., Suhartono, D., et al.: Music recommender system based on genre using convolutional recurrent neural networks. Procedia Computer Science 157, 99–109 (2019)

    Article  Google Scholar 

  5. Singh, J., Bohat, V.K.: Neural network model for recommending music based on music genres. In: 2021 International Conference on Computer Communication and Informatics (ICCCI), pp. 1–6 (2021). IEEE

    Google Scholar 

  6. Mehta, J., Gandhi, D., Thakur, G., Kanani, P.: Music genre classification using transfer learning on log-based MEL spectrogram. In: 2021 5th International Conference on Computing Methodologies and Communication (ICCMC), pp. 1101–1107 (2021). IEEE

    Google Scholar 

  7. Cai, X., Zhang, H.: Music genre classification based on auditory image, spectral and acoustic features. Multimedia Systems 28(3), 779–791 (2022)

    Article  Google Scholar 

  8. Jiang, Y., Jin, X.: Using k-means clustering to classify protest songs based on conceptual and descriptive audio features. In: Culture and Computing: 10th International Conference, C &C 2022, Held as Part of the 24th HCI International Conference, HCII 2022, Virtual Event, June 26–July 1, 2022, Proceedings, pp. 291–304 (2022). Springer

    Google Scholar 

  9. Popli, C., Pai, A., Thoday, V., Tiwari, M.: Electronic Dance Music Sub-genre Classification Using Machine Learning. In: Artificial Intelligence and Sustainable Computing: Proceedings of ICSISCET 2021, pp. 321–331. Springer (2022)

    Google Scholar 

  10. Schedl, M., Brandl, S., Lesota, O., Parada-Cabaleiro, E., Penz, D., Rekabsaz, N.: LFM-2b: A Dataset of Enriched Music Listening Events for Recommender Systems Research and Fairness Analysis. In: Proceedings of the 2022 Conference on Human Information Interaction and Retrieval. CHIIR ’22, pp. 337–341. Association for Computing Machinery, New York, NY, USA (2022). DOI https://doi.org/10.1145/3498366.3505791

  11. Jena, K.K., Bhoi, S.K., Mohapatra, S., Bakshi, S.: A hybrid deep learning approach for classification of music genres using wavelet and spectrogram analysis. Neural Computing and Applications, 1–26 (2023)

    Google Scholar 

  12. Prabhakar, S.K., Lee, S.-W.: Holistic Approaches to Music Genre Classification using Efficient Transfer and Deep Learning Techniques. Expert Systems with Applications 211, 118636 (2023) DOI https://doi.org/10.1016/j.eswa.2022.118636

  13. Ignatius Moses Setiadi, D.R., Satriya Rahardwika, D., Rachmawanto, E.H., Atika Sari, C., Irawan, C., Kusumaningrum, D.P., Nuri, Trusthi, S.L.: Comparison of SVM, KNN, and NB Classifier for Genre Music Classification based on Metadata. In: 2020 International Seminar on Application for Technology of Information and Communication (iSemantic), pp. 12–16 (2020). DOI https://doi.org/10.1109/iSemantic50169.2020.9234199

  14. Singhal, R., Srivatsan, S., Panda, P.: Classification of Music Genres using Feature Selection and Hyperparameter Tuning. Journal of Artificial Intelligence and Capsule Networks 4(3), 167–178 (2022)

    Article  Google Scholar 

  15. Raghavan, U.N., Albert, R., Kumara, S.: Near linear time algorithm to detect community structures in large-scale networks. Physical review E 76(3), 036106 (2007)

    Google Scholar 

  16. Cover, T., Hart, P.: Nearest neighbor pattern classification. IEEE transactions on information theory 13(1), 21–27 (1967)

    Article  MATH  Google Scholar 

  17. Abdulameer, A.S., Tiun, S., Sani, N.S., Ayob, M., Taha, A.Y.: Enhanced clustering models with wiki-based k-nearest neighbors-based representation for web search result clustering. Journal of King Saud University - Computer and Information Sciences 34(3), 840–850 (2022) DOI https://doi.org/10.1016/j.jksuci.2020.02.003

  18. Cheng, D., Huang, J., Zhang, S., Wu, Q.: A robust method based on locality sensitive hashing for K-nearest neighbors searching. Wireless Networks, 1–14 (2022)

    Google Scholar 

  19. Elshenawy, L.M., Chakour, C., Mahmoud, T.A.: Fault detection and diagnosis strategy based on k-nearest neighbors and fuzzy C-means clustering algorithm for industrial processes. Journal of the Franklin Institute 359(13), 7115–7139 (2022) DOI https://doi.org/10.1016/j.jfranklin.2022.06.022

  20. Tsai, C.-F., Eberle, W., Chu, C.-Y.: Genetic algorithms in feature and instance selection. Knowledge-Based Systems 39, 240–247 (2013) DOI https://doi.org/10.1016/j.knosys.2012.11.005

  21. Uddin, S., Haque, I., Lu, H., Moni, M.A., Gide, E.: Comparative performance analysis of K-nearest neighbour (KNN) algorithm and its different variants for disease prediction. Scientific Reports 12(1), 1–11 (2022)

    Article  Google Scholar 

  22. Bezdek, J.C., Ehrlich, R., Full, W.: Fcm: The fuzzy c-means clustering algorithm. Computers & geosciences 10(2-3), 191–203 (1984)

    Article  Google Scholar 

  23. Genuer, R., Poggi, J.-M., Tuleau-Malot, C., Villa-Vialaneix, N.: Random forests for big data. Big Data Research 9, 28–46 (2017) DOI https://doi.org/10.1016/j.bdr.2017.07.003

  24. Nie, K.: Inaccurate Prediction or Genre Evolution? Rethinking Genre Classification. In: Ismir 2022 Hybrid Conference (2022)

    Google Scholar 

  25. Zhang, R., Zhou, X., Song, J.: Music and musician influence, similarity measure, and music genre division based on social network analysis. In: 2nd International Conference on Artificial Intelligence, Automation, and High-Performance Computing (AIAHPC 2022), vol. 12348, pp. 95–104 (2022). SPIE

    Google Scholar 

  26. Read, J., Puurula, A., Bifet, A.: Multi-label classification with meta-labels. In: 2014 IEEE International Conference on Data Mining, pp. 941–946 (2014). IEEE

    Google Scholar 

Download references

Acknowledgements

Financial support for this research has been provided under grant PID2020-112827GB-I00 funded by MCIN/AEI/10.13039/501100011033. It is also partially granted by the “EMERGIA” programme, funded by the Junta de Andalucía through the grant EMC21_004171.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Fernando Terroso-Saenz .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Terroso-Saenz, F., Soto, J., Muñoz, A. (2023). SINATRA: A Music Genre Classifier Based on Clustering and Graph Analysis. In: Daimi, K., Alsadoon, A., Coelho, L. (eds) Cutting Edge Applications of Computational Intelligence Tools and Techniques. Studies in Computational Intelligence, vol 1118. Springer, Cham. https://doi.org/10.1007/978-3-031-44127-1_9

Download citation

Publish with us

Policies and ethics