MACHINE LEARNING DRIVEN MOOD-TUNES MUSIC RECOMMENDATION VIA FACIAL EMOTION RECOGNISATION

Authors

  • NAMMI MOHANA VAMSI KRISHNA , E. SATEESH Author

DOI:

https://doi.org/10.62643/

Abstract

Emotions provide valuable insight into a persons psychological state, while facial expressions offer a convenient non-invasive method for emotion recognition. MoodTunes is a full-stack Django-based web application that uses facial emotion recognition to recommend music according to the users detected mood. The system captures a single webcam image, processes it using the DeepFace framework, and identifies six emotions: happy, sad, angry, neutral, surprise, and fear. The detected emotion is mapped to an offline catalogue of 46 songs, from which suitable recommendations are generated through a Djangobased recommendation module. The system provides REST APIs for emotion detection and music recommendations, with detection results stored in a relational database for basic analytics. To improve portability, MoodTunes includes a fallback mechanism using OpenCV Haar-Cascade face detection and a lightweight simulated emotion response when DeepFace or TensorFlow is unavailable. The application uses Djangos ORM with SQLite for persistence and a vanilla JavaScript interface for webcam capture and API communication. Its three-tier architecture separates the presentation, application, and data layers, making the system lightweight, modular, and extensible. The proposed architecture can be further enhanced by integrating external music services, user authentication, personalized playlists, and advanced recommendation algorithms. Keywords: Facial Emotion Recognition, DeepFace, OpenCV, Django REST Framework, Music Recommendation, Computer Vision, WebRTC, Affective Computing, Human-Computer Interaction, SQLite.

Downloads

Published

27-08-2026

How to Cite

MACHINE LEARNING DRIVEN MOOD-TUNES MUSIC RECOMMENDATION VIA FACIAL EMOTION RECOGNISATION. (2026). International Journal of Engineering Research and Science & Technology, 22(3(1), 2542-2564. https://doi.org/10.62643/