AIMusicRecommender
Tag-Free AI Music Recommendation System
Created on 25th January 2026
•
AIMusicRecommender
Tag-Free AI Music Recommendation System
The problem AIMusicRecommender solves
The AIMusicRecommender system solves its music recommendation problem.
The system uses audio signals to present music recommendations which include its first track. The system does not use musical categories or predefined labels or artist information or any form of music identification data.
Musical tracks get converted into distinctive numerical patterns through signal analysis which evaluates their musical characteristics to determine their rhythm and tempo and their energy levels and their instrumental and vocal sound qualities and their brightness levels and their music structure. The system transforms musical identifications into a similarity space which uses learned patterns to group similar sounding songs together.
The system uses user listening patterns to create personalized music recommendations which work for both new users and unclassified music collections. The system provides complete system transparency which enables users to understand recommendation methods which base their decisions on musical attributes (e.g. “similar tempo + similar timbre”). This system enables users to find music through suitable methods while producing recommendations that work with all audio assets.
Challenges we ran into
Different songs had different feature sizes (variable length issue)
The audio tracks establish different lengths which creates a problem because their extracted features produce different MFCC and chroma results. The approach generated system failures which occurred when we tried to compare songs or process them for further activities.
We achieved audio standardization through our process which required audio to exist in single channel format at matched sampling frequency before we used statistical methods to create permanent time-based audio features. The system achieved constant feature length through the following process which produced identical feature vectors for all songs. The system achieved operational stability through this process.
The team could not complete user interface development because necessary data files had not been produced.
The system encountered a problem which caused Streamlit website elements to initialize before the required embedding and feature files were complete. The system experienced file-not-found crashes which blocked the process.
Challenges we ran into
Challenges we ran into
Different songs had different feature sizes (variable length issue)
Bug/Hurdle: Audio tracks have different durations, so extracted features like MFCC/chroma produce different shapes. This caused errors when comparing songs or feeding them into the next step.
How we solved it: We standardized audio (mono + same sample rate) and converted time-based features into fixed-size vectors using simple statistics like mean and standard deviation. After this, every song produced the same-length feature vector and the pipeline became stable.
UI integration was blocked because data files were not ready
Bug/Hurdle: While integrating the Streamlit website, the UI often ran before the embeddings/features files were generated, causing file-not-found crashes and blocking our work.
How we solved it: We implemented a fallback mechanism: if required files like song_features.csv or song_embeddings.npy are missing, the system generates mock data so the website always runs. This allowed parallel development without waiting for other modules.
Feature-embedding mismatch (wrong recommendations even though code looked correct)
Bug/Hurdle: We noticed recommendations sometimes didn’t make sense, and the issue was that embeddings and features were not aligned properly (song_id order mismatch).
How we solved it: We enforced a strict mapping using song_ids.npy and an id_to_idx dictionary. Every module accesses embeddings through this mapping only, preventing silent alignment errors.
Recommendations looked like a black box (low trust during demo)
Bug/Hurdle: Even when recommendations were correct, it was hard to justify them to users/judges because “embedding similarity” is not human-friendly.
How we solved it: We added an explainability layer that breaks similarity into musical components like tempo/rhythm, timbre (MFCC distance), brightness (spectral centroid), and harmony (chroma similarity). Each recommendation now comes with clear musical reasons, improving trust and demo quality.
Technologies used
