https://spotify-ai-platform.streamlit.app
Spotify AI Platform is a full-stack Machine Learning application that combines:
- π΅ Mood-based playlist generation
- βοΈ Song skip prediction
- β€οΈ Music recommendation system
- π Interactive analytics dashboard
The project demonstrates the implementation of:
- Unsupervised Learning
- Supervised Learning
- Recommendation Systems
- Feature Engineering
- Interactive Web Applications
Generate playlists using AI-based mood clustering.
Features:
- Happy
- Relax
- Party
- Workout
- Focus
- Sad
Predict whether users are likely to skip a song.
Algorithm:
- Random Forest Classifier
Input Features:
- Popularity
- Energy
- Danceability
- Tempo
- Acousticness
- Duration
- Mood Cluster
Generate similar song recommendations using:
- Nearest Neighbors
- Cosine Similarity
Output:
- Top 10 similar songs
- Artist information
- Genre information
- Predicted mood
Visualize:
- Genre distributions
- Mood distributions
- Dataset statistics
- Model performance
Spotify Dataset
|
βΌ
Data Cleaning
|
βΌ
Feature Engineering
|
ββββββββββββββΊ Mood Clustering
β |
β βΌ
β Playlist Generator
|
ββββββββββββββΊ Skip Prediction
β |
β βΌ
β Random Forest
|
ββββββββββββββΊ Recommendation Engine
|
βΌ
Nearest Neighbors
|
βΌ
Streamlit App
- Missing value handling
- Duplicate removal
- Feature engineering
- Mood generation
- Skip label generation
Algorithm:
K-Means Clustering
Features:
- Danceability
- Energy
- Valence
- Tempo
- Acousticness
- Liveness
- Speechiness
- Instrumentalness
Performance:
Silhouette Score: 0.20
Clusters: 6
Algorithm:
Random Forest Classifier
Performance:
| Metric | Score |
|---|---|
| Accuracy | 99% |
| ROC AUC | 0.999 |
| Precision | 99% |
| Recall | 98% |
Algorithm:
Nearest Neighbors
Similarity Metric:
Cosine Similarity
Output:
Top 10 recommendations
| Feature | Importance |
|---|---|
| Duration | 0.449 |
| Popularity | 0.230 |
| Energy | 0.138 |
| Danceability | 0.066 |
| Acousticness | 0.033 |
- Python
- Pandas
- NumPy
- Scikit-learn
- Streamlit
- Plotly
- Matplotlib
- Joblib
spotify-ai-platform/
βββ datasets/
βββ models/
βββ notebooks/
βββ streamlit_app/
βββ assets/
βββ reports/
βββ requirements.txt
βββ README.md
βββ LICENSEClone repository:
git clone https://github.com/Johan621/spotify-ai-platform.gitInstall dependencies:
pip install -r requirements.txtRun application:
cd streamlit_app
streamlit run app.py- Spotify API integration
- Deep Learning recommendation system
- User authentication
- Playlist export
- Real-time prediction
Developed an end-to-end Machine Learning project demonstrating:
- Machine Learning
- Recommendation Systems
- Data Science
- Model Explainability
- Interactive AI Applications



