Learning to embed music and metadata for context-aware music recommendation

Dongjing WANG, Shuiguang DENG, Xin ZHANG, Guandong XU

Research output: Contribution to journalArticlespeer-review

25 Citations (Scopus)


Contextual factors greatly influence users’ musical preferences, so they are beneficial remarkably to music recommendation and retrieval tasks. However, it still needs to be studied how to obtain and utilize the contextual information. In this paper, we propose a context-aware music recommendation approach, which can recommend music pieces appropriate for users’ contextual preferences for music. In analogy to matrix factorization methods for collaborative filtering, the proposed approach does not require music pieces to be represented by features ahead, but it can learn the representations from users’ historical listening records. Specifically, the proposed approach first learns music pieces’ embeddings (feature vectors in low-dimension continuous space) from music listening records and corresponding metadata. Then it infers and models users’ global and contextual preferences for music from their listening records with the learned embeddings. Finally, it recommends appropriate music pieces according to the target user’s preferences to satisfy her/his real-time requirements. Experimental evaluations on a real-world dataset show that the proposed approach outperforms baseline methods in terms of precision, recall, F1 score, and hitrate. Especially, our approach has better performance on sparse datasets. Copyright © 2017 Springer Science+Business Media, LLC, part of Springer Nature.

Original languageEnglish
Pages (from-to)1399-1423
JournalWorld Wide Web
Early online dateDec 2017
Publication statusPublished - Sept 2018


Wang, D., Deng, S., Zhang, X., & Xu, G. (2018). Learning to embed music and metadata for context-aware music recommendation. World Wide Web, 21, 1399-1423. https://doi.org/10.1007/s11280-017-0521-6


  • Recommender systems
  • Music recommendation
  • Context-aware recommendation
  • Embedding


Dive into the research topics of 'Learning to embed music and metadata for context-aware music recommendation'. Together they form a unique fingerprint.