• Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
Tuesday, June 10, 2025
newsaiworld
  • Home
  • Artificial Intelligence
  • ChatGPT
  • Data Science
  • Machine Learning
  • Crypto Coins
  • Contact Us
No Result
View All Result
  • Home
  • Artificial Intelligence
  • ChatGPT
  • Data Science
  • Machine Learning
  • Crypto Coins
  • Contact Us
No Result
View All Result
Morning News
No Result
View All Result
Home Artificial Intelligence

How I Constructed BeatBuddy: A Internet App that Analyzes Your Spotify Information | by Lazare Kolebka | Aug, 2024

Admin by Admin
August 6, 2024
in Artificial Intelligence
0
1twe49h3arizhqktfoa0khg.png
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter

READ ALSO

The best way to Transition From Knowledge Analyst to Knowledge Scientist

Choice Bushes Natively Deal with Categorical Information


Lazare Kolebka

Towards Data Science

Picture generated by DALL·E 3

Hello there, and welcome to this text! I’m going to clarify how I constructed BeatBuddy, an internet app that analyzes what you’re listening to on Spotify. Impressed by Spotify Wrapped, it goals to interpret your present temper and supply suggestions that you may tweak primarily based on that evaluation.

In case you don’t wish to learn all the things and simply wish to give it a attempt, you are able to do so right here: BeatBuddy. For the remainder, maintain studying!

The Start of the Mission

I’m a knowledge analyst and a music lover, and I consider that knowledge evaluation is a robust technique to perceive the world we dwell in and who we’re as people.

Music, specifically, can act as a mirror, reflecting your id and feelings at a given second. The kind of music you select usually depends upon your present actions and temper. For instance, in the event you’re figuring out, you may select an brisk playlist to inspire you.

However, if you’re busy finding out or specializing in crushing some knowledge, chances are you’ll wish to take heed to calm and peaceable music. I’ve even heard of individuals listening to white noise to focus, which will be described because the sound you hear while you open the home windows of your automotive on the freeway.

One other instance of how music can replicate your temper is at a celebration. Think about you might be having a celebration with pals and you must select the music. If it’s an informal dinner, you may wish to play some clean jazz or mellow tunes. However in the event you’re aiming for the type of occasion the place everybody finally ends up dancing on the furnishings or doing their greatest drunken karaoke efficiency of an ’80s hit, you’ll wish to select songs which can be energetic and danceable. We’ll come again to those ideas in a second.

Actually, all of the music you take heed to and the alternatives you make can reveal fascinating facets of your persona and emotional state at any given second. These days, folks are likely to take pleasure in analytics about themselves, and it’s changing into a world pattern! This pattern is named the “quantified self,” a motion the place folks use analytics to trace their actions, comparable to health, sleep, and productiveness, to make knowledgeable selections (or not).

Don’t get me fallacious, as a knowledge nerd, I really like all these items, however typically it goes too far — like with AI-connected toothbrushes. Firstly, I don’t want a toothbrush with a Wi-Fi antenna. Secondly, I don’t want a line chart exhibiting the evolution of how nicely I’ve been brushing over the past six weeks.

Anyway, again to the music trade. Spotify was one of many pioneers in turning consumer knowledge assortment into one thing cool, they usually known as it Spotify Wrapped.

FIGURE I : Instance of Spotify Wrapped | Picture by the writer

On the finish of the 12 months, Spotify compiles what you’ve listened to and creates Spotify Wrapped, which matches viral on social media. Its recognition lies in its capability to disclose facets of your persona and preferences that you may examine to your mates.

This idea of how Spotify collects and aggregates knowledge for these year-end summaries has at all times fascinated me. I bear in mind asking myself, “How do they try this?” and that curiosity was the place to begin for this challenge.

Properly, not precisely. Let’s be trustworthy: The thought to research Spotify knowledge was written on a observe titled “knowledge challenge”-you know, the type of observe crammed with concepts you’ll most likely by no means begin or end. It sat there for a 12 months.

At some point, I regarded on the checklist once more, and with a brand new confidence in my knowledge evaluation abilities (due to a 12 months of development and enhancements of ChatGPT), I made a decision to select an merchandise and begin the challenge.

At first, I simply needed to entry and analyze my Spotify knowledge for no specific goal. I used to be merely curious to see what I might do with it.

Beginning a challenge like this, the primary query you wish to ask your self is the place the information supply is and what knowledge is accessible. Basically, there are two methods to acquire your knowledge:

  1. Within the privateness settings, you’ll be able to request a duplicate of your historic knowledge, but it surely takes 30 days to be delivered — probably not handy.
  2. Utilizing Spotify’s API, which lets you retrieve your individual knowledge on demand and use completely different parameters to tweak the API name and retrieve numerous data.

Clearly, I went for the second choice. To take action, you first have to create a developer challenge to get your API keys, and then you definately’re good to go.

API Response Instance

Keep in mind we talked about the truth that sure tracks are extra probably danceable than others. As human beings, it’s fairly simple to really feel if a track is danceable or not — it’s all about what you’re feeling in your physique, proper? However how do computer systems decide this?

Spotify makes use of its personal algorithms to research each track in its catalog. For each track, they supply a listing of options related to it. One use of this evaluation is to create playlists and provide you with suggestions. The excellent news is that their API offers entry to those analyses via the audio_features endpoint, permitting you to entry all of the options of any track.

For instance, let’s analyze the audio options of the well-known track “Macarena,” which I’m positive everybody is aware of. I gained’t cowl each parameter of the monitor intimately, however let’s deal with one side to higher perceive the way it works — the danceability rating of 0.823.

FIGURE II : Instance of Macarena’s audio_features | Picture by the writer

In line with Spotify’s documentation, danceability describes how appropriate a monitor is for dancing primarily based on a mixture of musical parts, together with tempo, rhythm stability, beat power, and total regularity. A rating of 0.0 is the least danceable, and 1.0 is essentially the most danceable. With a rating of 0.823 (or 82.3%), it’s simple to say that this monitor could be very danceable.

The Three Temporalities

Earlier than going additional, I have to introduce an idea with the Spotify API known as time_range. This attention-grabbing parameter means that you can retrieve knowledge from completely different time durations by specifying the time_range:

  • short_term: the final 4 weeks of listening exercise
  • medium_term: the final 6 months of listening exercise
  • long_term: all the lifetime of your listening exercise

Let’s illustrate this with an instance: if you wish to get your high 10 tracks from the final 4 weeks, you’ll be able to name the corresponding endpoint and move the time_range as a parameter like this : https://api.spotify.com/v1/me/high/artists?time_range=short_term&restrict=10

Calling this offers you your high 10 artists from the previous month.

With all this data out there, my thought was to create a knowledge product that enables customers to know what they’re listening to, and to detect variations of their temper by evaluating completely different temporalities. This evaluation can then present how adjustments in our lives are mirrored in our music selections.

For instance, I just lately began operating once more, and this variation in my routine has affected my music preferences. I now take heed to music that’s sooner and extra energetic than what I usually listened to previously. That’s my interpretation, in fact, but it surely’s attention-grabbing to see how a change in my bodily exercise can have an effect on what I take heed to.

This is only one instance, as everybody’s musical journey is exclusive and will be interpreted in another way primarily based on private experiences and life adjustments. By analyzing these patterns, I believe it’s fairly cool to have the ability to make connections between our way of life selections and the music that we prefer to take heed to.

Making Information Perception Accessible

The deeper I received into this challenge, the extra I got here to comprehend that, sure, I might analyze my knowledge and are available to sure conclusions myself, however I needed everybody to do it.

To me, the only technique to share knowledge insights with non-technical folks and make it so very accessible is just not via a flowery BI dashboard. My thought was to create one thing universally accessible, which led me to develop a mobile-friendly net utility that anybody might use.

To make use of the app, all you want is a Spotify account, join it to BeatBuddy with the clicking of 1 button, and also you’re executed !

FIGURE III : Instance of the appliance screens | Picture by the writer

Measuring Musical Feelings

Let’s take a look at one other function of the app: measuring the happiness degree of the music you’re listening to, which might replicate your present temper. The app aggregates knowledge out of your latest high tracks, specializing in the ‘valence’ parameter, which represents musical happiness, with 1 being tremendous joyful music. For example, if the common valence of your present tracks is 0.432, and your all-time common is 0.645, it would counsel a shift in the direction of extra melancholic music just lately.

Nonetheless, these analyses needs to be taken with a grain of salt, as these numbers characterize tendencies fairly than absolute truths. Generally, we shouldn’t at all times attempt to discover a purpose behind these numbers.

For instance, in the event you had been monitoring your strolling tempo and found you’ve gotten been strolling sooner these days, it doesn’t essentially imply you’re in additional of a rush — it may very well be attributable to numerous minor components like adjustments in climate, new footwear, or just a unconscious shift. Generally adjustments happen with out specific causes, and whereas it’s potential to measure these variations, they don’t at all times require easy explanations.

That being stated, noticing vital adjustments in your music listening habits will be attention-grabbing. It could assist you consider how your emotional state or life state of affairs is perhaps affecting your musical preferences. This side of BeatBuddy presents an attention-grabbing perspective, though it’s price noting that these interpretations are just one piece of the complicated puzzle of our feelings and experiences

Let’s be trustworthy, analyzing your listening habits is one factor, however how do you’re taking motion primarily based on this evaluation? In the long run, making data-driven selections is the last word objective of information evaluation. That is the place suggestions come into play.

Suggestions Primarily based on Your Chosen Temper

An attention-grabbing function of BeatBuddy is its capability to offer music suggestions primarily based on a temper you choose and the music you want.

For example, you may understand that what you might be listening to has a rating of 75% recognition (which is kind of excessive), and also you wish to discover hidden gems tailor-made to your tastes. You’ll be able to then tweak the “Reputation” slider to, say, 25% to create a recent playlist with a mean rating of 25% recognition.

FIGURE IV : Adjustment of the recognition slider to 25% | Picture by the writer

Behind the scenes, there’s an API name to Spotify’s algorithm to create a advice primarily based on the factors you’ve chosen. This name generates a playlist advice tailor-made to each your preferences and the temper parameters you’ve set. It makes use of your high 5 latest tracks to fine-tune Spotify’s advice algorithm based on your selections.

FIGURE V: API endpoint rationalization | Picture by the writer

When you’re pleased with the playlist, it can save you it on to your Spotify library. Every playlist comes with an outline that particulars the parameters you selected, serving to you bear in mind the temper every playlist is supposed to evoke.

FIGURE VI: Saving a playlist to Spotify | Picture by the writer

Growing an internet utility that analyzes Spotify knowledge has been a difficult however rewarding journey. I’ve been pushed out of my consolation zone and gained data in a number of areas, together with net API, cookie administration, net safety, OAuth2, front-end growth, cell optimization, and web optimization. Under is a diagram of the high-level structure of the appliance:

FIGURE VII: Excessive degree structure | Picture by the writer

My preliminary objective was to start out a modest knowledge challenge to research my listening habits. Nonetheless, it become a three-month challenge wealthy in studying and discovery.

All through the method, I noticed how intently associated knowledge evaluation and net growth are, particularly relating to delivering an answer that’s not solely purposeful but additionally user-friendly and simply accessible. In the long run, software program growth is actually about shifting knowledge from one place to a different.

One final observe: I needed to create an utility that was clear and offered a seamless consumer expertise. That’s the reason BeatBuddy is totally ad-free, no knowledge is bought or shared with any third events. I’ve created this with the only goal of giving customers a technique to higher perceive their music selections and uncover new tracks.

You may give the app a attempt right here: https://www.beatbuddy.cloud

When you’ve got any feedback or solutions, I’m all ears! Your suggestions is absolutely necessary.

For these curious about a deeper dive, maintain a watch out for my upcoming article.

Cheers!

Lazare

Tags: AnalyzesAppAugBeatBuddyBuiltDataKolebkaLazareSpotifyWeb

Related Posts

0 brlbtvg9haryy7 h.jpg
Artificial Intelligence

The best way to Transition From Knowledge Analyst to Knowledge Scientist

June 10, 2025
Tree.png
Artificial Intelligence

Choice Bushes Natively Deal with Categorical Information

June 9, 2025
The new york public library lxos0bkpcjm unsplash scaled 1.jpg
Artificial Intelligence

5 Essential Tweaks That Will Make Your Charts Accessible to Individuals with Visible Impairments

June 8, 2025
Ric tom e9d3wou pkq unsplash scaled 1.jpg
Artificial Intelligence

The Function of Luck in Sports activities: Can We Measure It?

June 8, 2025
Kees streefkerk j53wlwxdsog unsplash scaled 1.jpg
Artificial Intelligence

Prescriptive Modeling Unpacked: A Full Information to Intervention With Bayesian Modeling.

June 7, 2025
Mahdis mousavi hj5umirng5k unsplash scaled 1.jpg
Artificial Intelligence

How I Automated My Machine Studying Workflow with Simply 10 Strains of Python

June 6, 2025
Next Post
1scggnrpw4ls24u7k j8f7w.jpeg

ChatGPT vs. Claude vs. Gemini for Information Evaluation (Half 1) | by Yu Dong | Aug, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

0 3.png

College endowments be a part of crypto rush, boosting meme cash like Meme Index

February 10, 2025
Gemini 2.0 Fash Vs Gpt 4o.webp.webp

Gemini 2.0 Flash vs GPT 4o: Which is Higher?

January 19, 2025
1da3lz S3h Cujupuolbtvw.png

Scaling Statistics: Incremental Customary Deviation in SQL with dbt | by Yuval Gorchover | Jan, 2025

January 2, 2025
0khns0 Djocjfzxyr.jpeg

Constructing Data Graphs with LLM Graph Transformer | by Tomaz Bratanic | Nov, 2024

November 5, 2024
How To Maintain Data Quality In The Supply Chain Feature.jpg

Find out how to Preserve Knowledge High quality within the Provide Chain

September 8, 2024

EDITOR'S PICK

Ai Shutterstock 2285020313 Special.png

Find out how to Craft an AI Plan for Buyer Service

December 3, 2024
Memecoin Holders Surpass Bitcoin 1.png

What Does This Imply for Crypto? – CryptoNinjas

December 19, 2024
Image D877abfd35ef9f77c558cf4f206d6d0a Scaled.jpg

Public Belief in AI-Powered Facial Recognition Programs

March 14, 2025
Melania Meme Coin Pumps 18 But Smart Money Is Flooding Into The Mind Of Pepe Presale.jpg

Melania Meme Coin Pumps 18%, However Good Cash Is Flooding Into The Thoughts of Pepe Presale

February 6, 2025

About Us

Welcome to News AI World, your go-to source for the latest in artificial intelligence news and developments. Our mission is to deliver comprehensive and insightful coverage of the rapidly evolving AI landscape, keeping you informed about breakthroughs, trends, and the transformative impact of AI technologies across industries.

Categories

  • Artificial Intelligence
  • ChatGPT
  • Crypto Coins
  • Data Science
  • Machine Learning

Recent Posts

  • Information Bytes 20250609: AI Defying Human Management, Huawei’s 5nm Chips, WSTS Semiconductor Forecast
  • The best way to Transition From Knowledge Analyst to Knowledge Scientist
  • How UK crypto taxes work and what it’s essential know
  • Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy

© 2024 Newsaiworld.com. All rights reserved.

No Result
View All Result
  • Home
  • Artificial Intelligence
  • ChatGPT
  • Data Science
  • Machine Learning
  • Crypto Coins
  • Contact Us
  • en English▼
    nl Dutchen Englishiw Hebrewit Italianes Spanish

© 2024 Newsaiworld.com. All rights reserved.

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?