Научный журнал «Вестник науки»

Режим работы с 09:00 по 23:00

zhurnal@vestnik-nauki.com

Информационное письмо
  1. Главная
  2. Архив
  3. Вестник науки от 12 января 2025 г.
  4. Научная статья № 154
Просмотры  264 просмотра

NOVEL EMOTION-BASED MUSIC RECOMMENDATION SYSTEM USING FUZZY LOGIC

Abstract: this study proposes a novel music recommendation system that generates personalized playlists based on real-time emotional states, leveraging fuzzy logic to address the subjective nature of emotions. Using a Fuzzy Nearest-Mean (FNM) classifier for music emotion classification and a Fuzzy Inference System (FIS) for facial emotion recognition, the system integrates these components to provide intelligent, emotion-driven music recommendations. The system is evaluated using diverse datasets and user feedback to validate its accuracy, adaptability, and user satisfaction. Results show the proposed approach effectively enhances user engagement and emotional connection with music.

Keywords: emotion-based music, fuzzy logic, personalized playlists.

I. INTRODUCTION.The automatic analysis and understanding of music by computers have opened up new possibilities in the field of music information retrieval. Researchers from diverse disciplines, such as computer science, digital signal processing, mathematics, and musicology, have been actively pursuing various research topics, including automatic audio genre/mood classification, music similarity computation, audio artist identification, and query-by-singing/humming. Among these research areas, content-based music recommendation systems have gained considerable attention as a promising application [1], [2].

Integrating emotion-based features and fuzzy logic [3], [4], this research aims to develop an emotion-based music recommendation system that offers more intelligent suggestions to users.In order to perceive and appreciate music, emotions are essential. They fall within the larger category of affect, which also includes emotions, preferences, and personality traits. Emotions differ from simply cognitive judgments in that they have valence, which is an evaluative sensation of positive or negativity, and a specific level of arousal. It’s important to capture how emotions react to key events in the external or internal world in a relatively brief, intense, and fast changing manner in order to comprehend emotions in the context of music.

When experiencing an emotion, a person’s thoughts, feelings, expressive behavior, and action tendencies all coincide [5].Psychological research [6] provides insights into the nature of emotions and their underlying processes. Emotions are considered scientific constructs that encompass a range of phenomena, including feelings, behaviors, and bodily reactions. Psychological theories of emotion operate at the functional level, explaining the structure of individual information processing, storage, and dynamic interactions with the environment. While emotions have a biological basis, sociocultural influences also shape their manifestation.The perception and experience of emotions are crucial aspects in conceptualizing and differentiating them.

Categorical theories view emotions as distinct categories such as happiness, sadness, anger, surprise, disgust, and interest. Dimensional theories, on the other hand, conceptualize emotions along broad affective dimensions like arousal and valence. Prototype theories propose that language shapes how we conceptualize emotions, and emotions are categorized based on their resemblance to prototypical exemplars.Music researchers have explored both categorical and dimensional theories in their operationalization of listeners’ responses to music. Music classification by perceived emotion is a significant research area that offers content-based and functionally powerful methods for organizing and searching music databases.

However, the subjective nature of human perception poses challenges in accurately classifying the emotion of music. Factors such as listening mood, environment, personality, age, and cultural background can influence emotional perception, making deterministic classification methods less effective. The bulk of studies [5], [6] adapt Russel’s circumplex model of emotions [figure 1], which shows how basic emotions are distributed in two dimensions according to valence and arousal. Such a method enables the defining of a desired emotion and the assessment of its strength using only two-dimensional analysis.Figure 1.

Russel’s model of emotions.To address the subjective nature of emotion perception, this research paper adopts a fuzzy logic approach in music emotion classification. Fuzzy classifiers are employed to measure the strength of emotion classes associated with music, allowing for the tracking of emotion variations within a song. By considering the subjective nature of human perception, this approach represents a pioneering effort in music emotion classification.This research aims to contribute to the development of a robust and accurate emotion-based music recommendation system. By leveraging fuzzy logic and integrating emotion-based features, the system will provide users with contextually relevant and intelligent music recommendations.

The subsequent sections will delve into the taxonomy of emotion used in this work, provide an overview of the classification system, present experimental results, and conclude with discussions and potential extensions.II. METHODOLOGY.The proposed system integrates two primary methodologies: music emotion recognition and facial emotion recognition, both powered by fuzzy logic to handle the inherent subjectivity and complexity of emotional perception. These methodologies aim to establish a robust framework for emotion-based music recommendation by leveraging machine learning and advanced classification techniques.Music Emotion Recognition.This component classifies music tracks based on their emotional attributes using a Fuzzy Nearest-Mean (FNM) classifier. The system extracts acoustic features from music tracks, such as tempo, pitch, and rhythm, and assigns them to specific emotional categories represented as fuzzy vectors.

This approach captures subtle emotional variations and enables a nuanced understanding of musics emotional impact.Facial Emotion Recognition.Real-time analysis of facial expressions is conducted using a Fuzzy Inference System (FIS). The system processes facial images to detect and extract features, such as eye openness, mouth curvature, and eyebrow position, which are mapped to emotional states using fuzzy logic. The integration of the RaFD dataset ensures robustness against variations in age, gender, and ethnicity.Integration for Recommendation.The outputs from both components are combined to generate personalized playlists. The system maps the user’s detected emotional state to corresponding music tracks using established emotional models like Russell’s 2D valence-arousal framework and the Geneva Emotion Wheel.

This mapping ensures the recommended playlists align with the users current emotional state and preferences.By combining these methodologies, the system addresses the limitations of traditional deterministic classification methods and provides a more flexible, adaptive, and user-centric approach to music recommendation.A. Emotion classification using Fuzzy Nearest-Mean classifier.The Fuzzy Nearest-Mean (FNM) classifier is employed to classify music tracks based on emotional attributes. This methodology consists of two main components: the Model Generator (MG) and the Emotion Classifier (EC). Figures 2 and 3 provide block schematics, while the following subsections provide more information.Model Generator (MG):The MG is responsible for creating classification models based on the features extracted from the training dataset.

Features such as tempo, rhythm, pitch, and timbre are analyzed to define the emotional characteristics of music tracks. Using these attributes, the MG assigns fuzzy vectors representing the relative strength of different emotional classes.Figure 2. Music emotion model generator diagram.Emotion Classifier (EC):The EC utilizes the models generated by the MG to classify input samples. Unlike traditional classifiers that assign a single label, the EC provides a fuzzy vector for each sample, capturing the degree of association with multiple emotional classes.

For example, a fuzzy vector like (0.2, 0.5, 0.3) indicates varying strengths for three emotional categories, allowing for nuanced classification.Figure 3. Music emotion classifier diagram.Classification Approach:The EC processes input samples through several steps:Feature Preprocessing: The raw features are normalized and prepared for analysis.Fuzzy Vector Assignment: Each input is mapped to a fuzzy vector using the trained model.Final Classification Decision: The class with the highest value in the fuzzy vector is selected, and ties are resolved by considering the closest sample in the feature space.Feature Selection:The system employs a stepwise backward selection strategy to enhance classification accuracy. Starting with all available features, weaker features are iteratively removed until no further improvement is observed. This ensures an optimal feature set for accurate emotion classification.Validation Process:The performance of the FNM classifier is validated using a 10-fold cross-validation approach.

This involves splitting the dataset into training and testing subsets multiple times to ensure robustness. Results are averaged over 50 iterations to provide reliable accuracy metrics.The FNM classifier effectively handles the subjective nature of music emotion perception, leveraging fuzzy logic to accommodate ambiguities and providing a robust foundation for emotion-based music classification.B. Emotion Recognition from Facial Expression using Fuzzy Inference System.The Fuzzy Inference System (FIS) is designed to recognize and classify emotions based on facial expressions, leveraging fuzzy logic to account for the complexity and subjectivity of human emotions. This approach ensures accurate emotion recognition even in challenging scenarios, such as partial occlusion or variations in facial structure.Process Overview:The emotion recognition process comprises three main stages:Face Detection: The system identifies and isolates facial regions within input images.

This step is crucial for ensuring subsequent analysis focuses solely on relevant areas.Feature Extraction: Key facial features, such as eye openness, eyebrow movement, mouth shape, and lip curvature, are extracted. These features serve as input variables for the fuzzy inference system.Emotion Classification: The extracted features are mapped to specific emotional states using a set of predefined fuzzy rules and linguistic variables. This allows the system to handle the ambiguity inherent in human emotions effectively.Dataset and Validation:The RaFD (Radboud Faces Database) is utilized for training and validating the FIS. This dataset includes a diverse range of facial expressions across different age groups, ethnicities, and genders, ensuring the systems robustness and generalizability.

Performance is measured using precision, recall, and F1-score metrics.Figure 4. Facial Emotion Recognition diagram.Fuzzy Rule Base:The FIS employs a rule-based approach to map input features to emotional states. For example, if "eye openness" is low and "mouth curvature" is high, the system may infer a state of sadness. These rules are designed to reflect psychological insights into facial expressions and emotions.Robustness to Variations:The system is designed to handle variations in lighting, facial angles, and partial occlusions.

This is achieved through feature normalization and the inherent flexibility of fuzzy logic, which can accommodate overlapping and imprecise input data.Integration with Recommendation System:The recognized emotional state is forwarded to the recommendation module, where it is used to tailor music playlists to the user’s current mood. This integration ensures that the system dynamically adapts to the users emotional context in real time.By leveraging fuzzy logic and a comprehensive facial expression dataset, the FIS provides a robust and flexible solution for real-time emotion recognition, forming a critical component of the overall music recommendation system.III. RECOMMENDATION MODULE.The recommendation module is the core of the system, responsible for generating playlists that align with the user’s emotional state and preferences. This module combines emotional insights from the music emotion classifier and the facial emotion recognition system to create a dynamic and personalized music experience.A.

Mapping and Playlist Generation.Using emotional data derived from Russell’s 2D valence-arousal model and the Geneva Emotion Wheel, the module categorizes music tracks based on the user’s emotional state. The mapping process involves:Emotional State Analysis: The user’s detected emotional state is mapped to a specific region in the emotional model, associating it with relevant musical attributes such as tempo, intensity, and genre.Music Clustering: Songs are clustered based on their emotional similarity using cosine distance calculations. Features are compared in short intervals to ensure precision in emotional mapping.Playlist Construction: A personalized playlist is generated by grouping songs that align with the user’s current emotional state. Users can further refine playlists by marking favorite tracks or adjusting song classifications to better reflect their preferences.B.

Adaptive Music Player.The adaptive music player dynamically updates playlists in real-time, using feedback from user interactions and stochastic gradient descent (SGD) for optimization. Key functionalities include:Dynamic Reclassification: Users can modify song labels to better reflect their emotional connection to specific tracks. The system adapts by reclassifying songs using updated emotional labels.Continuous Learning: By incorporating new user data, the player refines its recommendations over time, ensuring they remain relevant and engaging.User-Centric Adjustments: The player prioritizes songs that align with user feedback, emphasizing tracks marked as favorites or frequently replayed. This ensures the playlist evolves to reflect user preferences while maintaining relevance to their detected emotional state.

By leveraging continuous input, the system guarantees a personalized and emotionally resonant music experience.IV. EVALUATION AND RESULTS.A. Experimental Setup.The proposed system was evaluated using a comprehensive experimental framework to assess its performance across multiple dimensions, including emotion recognition accuracy, playlist relevance, and user satisfaction. Two datasets were used:Music Dataset: A curated collection of music tracks annotated with emotional metadata based on valence and arousal.Facial Expression Dataset: The Radboud Faces Database (RaFD) was utilized to train and validate the facial emotion recognition model.B.

Metrics for Evaluation.The following metrics were used to evaluate system performance:Accuracy: The proportion of correctly classified emotional states for both music and facial expressions.Precision and Recall: To measure the relevance and comprehensiveness of the classified emotional states.User Satisfaction: Assessed through user studies, where participants rated the relevance and emotional alignment of the generated playlists.C. Results.1. Emotion Recognition Accuracy:Music emotion classification achieved an average accuracy of 87%.Facial emotion recognition maintained an accuracy of 91%, even under conditions of partial occlusion and varied lighting.2. Playlist Relevance:Generated playlists scored an average of 4.5 out of 5 in user surveys for emotional alignment and personalization.3.

Adaptability:The system demonstrated dynamic adaptability to real-time emotional changes, with a response time under 2 seconds.The system outperformed traditional recommendation systems that relied solely on historical user data by achieving higher emotional alignment and faster adaptability.V. CONCLUSION.In this research paper, we presented a comprehensive approach to developing an emotion-based music recommendation system. By combining the Emotion Classification using the Fuzzy Nearest-Mean (FNM) classifier and Facial Emotion Recognition using a Fuzzy Inference System (FIS), we aimed to create a personalized music recommendation system that considers the user’s emotional state.In conclusion, our research presents a novel approach to music recommendation systems that takes into account the user’s emotional state. By integrating the FNM classifier and FIS for emotion recognition, we have developed a system that provides personalized and emotionally relevant music recommendations.

We anticipate that our system will enhance the user’s listening pleasure and strengthen their emotional connection with the music, ultimately contributing to a more enjoyable and immersive music experience.


Полная версия статьи PDF

Номер журнала «Вестник науки» № 1 (82) том 2


Ссылка для цитирования:

Kartbayev A.Zh., Aldeshov A.A. NOVEL EMOTION-BASED MUSIC RECOMMENDATION SYSTEM USING FUZZY LOGIC // Журнал «Вестник науки» от 12 января 2025 г. № 1 (82) том 2. С. 1119 - 1130. 2025 г. ISSN 2712-8849 // Электронный ресурс: https://www.вестник-науки.рф/article/20748 (дата обращения: 29.11.2026 г.)


Альтернативная ссылка латинскими символами: vestnik-nauki.com/article/20748



Нашли грубую ошибку (плагиат, фальсифицированные данные или иные нарушения научно-издательской этики) ?
- напишите письмо в редакцию журнала: zhurnal@vestnik-nauki.com


Вестник науки © 2025.    16+




* В выпусках журнала могут упоминаться организации (Meta, Facebook, Instagram) в отношении которых судом принято вступившее в законную силу решение о ликвидации или запрете деятельности по основаниям, предусмотренным Федеральным законом от 25 июля 2002 года № 114-ФЗ «О противодействии экстремистской деятельности» (далее - Федеральный закон «О противодействии экстремистской деятельности»), или об организации, включенной в опубликованный единый федеральный список организаций, в том числе иностранных и международных организаций, признанных в соответствии с законодательством Российской Федерации террористическими, без указания на то, что соответствующее общественное объединение или иная организация ликвидированы или их деятельность запрещена.