This project aims to classify music genres using machine learning algorithms. The goal is to build a model that can accurately predict the mood of a given piece of music based on audio features. The dataset used for this project is obtained from the Spotify API, which provides a wide range of audio features for each track.
The project is divided into the following main steps:
- Data Collection: Retrieving audio features and track information using the Spotify API and storing them in a SQL database.
- Data Analysis: Exploratory data analysis to understand the distribution and relationships of the audio features.
- Model Selection: Creating and training machine learning models to classify music genres based on the audio features.
- Model Evaluation: Evaluating the performance of the trained models using various metrics.
- Web Application: Creating a Streamlit web application to interactively predict the genre of a user-provided music track.
To showcase the genre prediction model, we developed an interactive web application using Streamlit. This web application allows users to input audio features of a music track and the model predicts the most likely class (active/relax) for the given track. Users can enter specific numerical ranges for attributes such as energy, acousticity, instrumentality and tempo to filter and discover songs that match their criteria. It also includes a recommendation system. Click the link to Discover.
This project is licensed under the MIT License.
Muhammed Maral | Halil Kolatan | Pınar Yıldız |
Please feel free to contact the project team for any questions or feedback.