Data-Driven Artist Recommendation and Trend Analysis

November 2024

This project uses social and listening data to build a music recommendation system. By analyzing user-artist interactions, it generates personalized recommendations, computes artist similarity, and uncovers listening trends.

Tools: Python, NumPy, Pandas, Plotly

Techniques: Data Cleaning, aggregation, Statistics, Exploratory Data Analysis

Introduction

As an abundant music fan, I have always been intrigued with music recommendation systems when using platforms such as Spotify and Apple Music. This data analysis project uses the 2011 ACM Conference on Recommender Systems dataset to analyze music trends and artist recommendations based on artist and user trends. These are simple queries built using coding and analysis techniques, check out my code to learn more.

What artists have the most listeners?

            Artist  ID Listeners
         Lady Gaga  89 611
    Britney Spears 289 522
           Rihanna 288 484
       The Beatles 227 480
        Katy Perry 300 473
           Madonna  67 429
     Avril Lavigne 333 417
Christina Aguilera 292 407
              Muse 190 400
          Paramore 498 399

Who are the top artists in terms of play counts?

            Artist  ID Count
    Britney Spears 289 2393140
      Depeche Mode  72 1301308
         Lady Gaga  89 1291387
Christina Aguilera 292 1058405
          Paramore 498  963449
           Madonna  67  921198
           Rihanna 288  905423
           Shakira 701  688529
       The Beatles 227  662116
        Katy Perry 300  532545
            Artist        ID  listeners weight   average plays per listener
      Depeche Mode        72        282 1301308                      4615.0
    Britney Spears       289        522 2393140                      4585.0
         In Flames       503         67  237148                      3540.0
       Duran Duran        51        111  348919                      3143.0
      All Time Low       687         77  215777                      2802.0
              Blur       203        114  318221                      2791.0
                U2       511        185  493024                      2665.0
Christina Aguilera       292        407 1058405                      2601.0
          Paramore       498        399  963449                      2415.0
       Evanescence       378        226  513476                      2272.0

What artists with at least 50 listeners have the highest average number of plays per listener?

                Artist        ID  listeners  weight  average listeners
          Viking Quest      8388          1   35323            35323.0
            Tyler Adam      6373          1   30614            30614.0
                Rytmus     18121          1   23462            23462.0
       Johnny Hallyday      8308          2   32995            16498.0
           Dicky Dixon     14986          1   15345            15345.0
RICHARD DIXON-COMPOSER     14987          1   14082            14082.0
                Thalía       792         26  350035            13463.0
                80kidz     15075          1   12520            12520.0
              Tribraco      4625          1   10776            10776.0
            Kontrafakt     18122          1   10726            10726.0

What artists have the highest average number of plays per listener?

How similar are two artists?

The Rolling Stones and The Who : 0.24581005586592178
The Rolling Stones and Lady Gaga : 0.01643835616438356
The Rolling Stones and Britney Spears : 0.013975155279503106
Lady Gaga and Britney Spears : 0.6255380200860832
Lady Gaga and Madonna : 0.4246575342465753
Madonna and The Rolling Stones : 0.029411764705882353

Recommend artists based on two friends

       ID         Artist       average listeners
     1104      Rammstein       18478.000000
      511             U2        6611.750000
      159       The Cure        4155.200000
      285  Janet Jackson        3499.000000
     1001  Pet Shop Boys        3432.666667
      289 Britney Spears        3120.000000
      874     Roxy Music        2740.500000
     2562        Arcadia        2594.000000
      190           Muse        2547.500000
     2552   Culture Club        2361.500000
Previous
Previous

Understanding Global Happiness: Feature Analysis and Prediction

Next
Next

XOXO By Molly