Music-Cluster-Analysis
๐ง Mood-Based Music Analysis & Playlist Generator
This project analyzes songs based on their musical features (like energy, valence, and acousticness), clusters them into mood categories, and creates curated playlists for each mood. It includes an interactive Streamlit web app for exploring the playlists and mood profiles.
๐ Features
๐ Data Preprocessing from a Kaggle music dataset
๐ง Mood Clustering using
KMeanson energy, valence, danceability, and more๐ Visualizations:
Radar charts for cluster mood profiles
Bar plots for top songs by acousticness, energy, etc.
๐ฝ Top Track Rankings within each mood cluster
๐ Interactive Streamlit Web App:
Explore songs by mood
Download mood-based playlists
๐ Directly create a Spotify playlist from your favorite mood!
๐ Tech Stack
Python
Pandas for data manipulation
Scikit-learn for KMeans clustering
Matplotlib / Seaborn for visualization
Streamlit for web app interface
Dotenv for secure environment variable management
๐ฏ Mood Clusters Used
Each song was assigned to one of the following clusters based on its features:
'Feel-good Hits' | High energy, high valence โ perfect for upbeat moods |
'Chill & Acoustic' | Low energy, high acousticness โ calm and emotional |
'Angry / Intense' | High energy, low valence โ aggressive and fast |
'Balanced / Versatile Mix' | Medium values across features โ versatile listening |

