An open API service indexing awesome lists of open source software.

https://github.com/oguzhantekeli06/spotifymoodanalyzer

A application integrated with a deep learning model to analyze and predict user moods based on Spotify listening habits.
https://github.com/oguzhantekeli06/spotifymoodanalyzer

asp-net-core csharp flask-api machine-learning mood-analysis mvc prediction spotify-api

Last synced: 2 months ago
JSON representation

A application integrated with a deep learning model to analyze and predict user moods based on Spotify listening habits.

Awesome Lists containing this project

README

        

## 🎢 Spotify Mood Prediction with ASP.NET Core MVC & Flask API
This ASP.NET Core MVC application integrates with the Spotify API to fetch audio features of recently played tracks. It sends these features to a Flask API hosting a machine learning model, which predicts the user's mood (e.g., happy, sad) based on listening habits.

## πŸ”§ Features
Spotify API Integration: Retrieves audio features like valence, energy, and tempo.
Mood Prediction: Uses a Flask API model to predict emotional states.
Interactive Dashboard: Displays mood insights on the web interface.
## πŸ“ Project Structure
### ASP.NET Core MVC
Model: There is no models for a now.
View: ASP.NET Core MVC views display user mood predictions and data.
Controller: Manages data flow between Spotify, Flask API, and the frontend.

### FlaskApΔ±
ModelApiPKL.py: Flask API hosts the machine learning model for mood prediction.
mood_prediction_model.pkl: This file contains a machine learning model trained to predict users' moods. The model is trained on data derived from users' music listening habits and makes predictions about their emotional state.

## πŸš€ Getting Started
Prerequisites
.NET SDK
Python & Flask
Spotify Developer Account

Clone the Repository
```
git clone https://github.com/OguzhanTekeli06/SpotifyMoodAnalyzer
```

Configure Spotify API. Set up Client ID and Secret in the app configuration.From your spotifyapi app.

```
python ModelApi.py
```

Start project
```
dotnet run
```

Usage
Log in via Spotify to fetch recent audio data.
The app displays your mood based on audio features.

## πŸ€– Model Details
The Flask API model processes audio features for mood predictions using machine learning.

## πŸ“œ License
Licensed under MIT.