GitHunt
IS

isaacarroyov/spotify_anomalies_kmeans-lof

Data Science project where I explore my own Spotify data, specifically the song I listened to during my time in college

Unsupervised Anomaly Detection on Spotify data ๐ŸŽต: K-Means vs Local Outlier Factor

Anomaly detection is a crucial in any Data Science project. It's an important component during
Exploratory Data Analysis and sometimes it's overlooked.

In this project I show the steps (methodology) that I followed for Anomaly Detection in my own personal
Spotify data (only song features). I implemented a characterisation of the dataset with K-Means algorithm
and parallely used Local Outlier Factor, to find the anomalies/outliers.

What's in this repository

Here you can find the notebook where the anomaly detection analysis is performed
(here)
and how I got the data (here)

Data Visualizations

Scatter plot comparing anomalies detected between K-Means and Local Outlier Factor
Histogram and Scatter plot of the anomalies detected byLocal Outlier Factor

Languages

Jupyter Notebook99.9%Python0.1%

Contributors

Created January 5, 2022
Updated July 10, 2025