Emotion-Based Music Classification using the Fuzzy Inference System (FIS) Mamdani Algorithm
DOI:
https://doi.org/10.31315/cip.v2i1.10763Abstract
This article presents a comprehensive research endeavor focusing on the classification of music based on emotions, utilizing the Fuzzy Inference System (FIS) Mamdani algorithm. The primary objective of this study is to accurately categorize music into distinct emotional moods by employing the FIS algorithm in conjunction with carefully selected audio features. Additionally, the research endeavors to analyze the impact of music on playlists and user preferences concerning emotional content. The FIS Mamdani algorithm, with its ability to effectively handle uncertainties inherent in music emotion classification, is meticulously implemented through the four fundamental steps of fuzzification, rule evaluation, aggregation, and defuzzification, incorporating linguistic variables representing various emotional states like happiness, sadness, anger, and relaxation. By employing mutual information-based feature selection, the research enhances the accuracy and efficiency of music emotion classification by identifying and leveraging the most pertinent audio features, including danceability, energy, valence, and tempo, to determine the emotional qualities of music more precisely. The performance evaluation based on a confusion matrix reveals promising results, showcasing an average accuracy of 75%, precision of 85%, and recall of 81%, thereby affirming the efficacy of the FIS Mamdani algorithm in proficiently categorizing music emotions. The implications of this study are wide-ranging, suggesting potential applications in personalized music recommendation systems, elevating user experiences on music streaming platforms, and exploring extensions to incorporate other psychological models of emotions. In essence, this research constitutes a significant stride towards advancing emotion-based music recommendation systems, consequently augmenting the digital music landscape to cater to diverse user preferences worldwide.References
R. A. Rehfeldt, I. Tyndall, and J. Belisle, “Music as a Cultural Inheritance System: A Contextual-Behavioral Model of Symbolism, Meaning, and the Value of Music,” Behav. Soc. Issues, vol. 30, no. 1, pp. 749–773, Dec. 2021, doi: 10.1007/s42822-021-00084-w.
F. Vass, “Visuosonic Counterpoint: Seeing Music and Hearing Dance,” in William Forsythe’s Postdramatic Dance Theater. Cognitive Studies in Literature and Performance. Palgrave Macmillan, Cham, 2023, pp. 157–179.
W. Xu, M. Li, W. Liu, and G. Lin, “Ritualizing the mundanity of holidays in usual environment,” Tour. Manag. Perspect., vol. 47, p. 101133, Jun. 2023, doi: 10.1016/j.tmp.2023.101133.
E. Perzycka-Borowska, M. Gliniecka, K. Kukiełko, and M. Parchimowicz, “Socio-Educational Impact of Ukraine War Murals: Jasień Railway Station Gallery,” Arts, vol. 12, no. 3, p. 112, May 2023, doi: 10.3390/arts12030112.
S. Saifullah, Y. Fauziah, and A. S. Aribowo, “Comparison of Machine Learning for Sentiment Analysis in Detecting Anxiety Based on Social Media Data,” Jan. 2021, [Online]. Available: http://arxiv.org/abs/2101.06353.
N. Di Stefano, P. Vuust, and E. Brattico, “Consonance and dissonance perception. A critical review of the historical sources, multidisciplinary findings, and main hypotheses,” Phys. Life Rev., vol. 43, pp. 273–304, Dec. 2022, doi: 10.1016/j.plrev.2022.10.004.
M. Majno, “‘The two voices,’ or more? Music and gender from myth and conquests to the neurosciences,” J. Neurosci. Res., vol. 101, no. 5, pp. 604–632, May 2023, doi: 10.1002/jnr.25175.
V. Hänninen and A. Koski-Jännes, “Being Moved: A Meaningful but Enigmatic Emotional Experience,” Hum. Arenas, Apr. 2023, doi: 10.1007/s42087-023-00340-y.
K. Li, L. Weng, and X. Wang, “The State of Music Therapy Studies in the Past 20 Years: A Bibliometric Analysis,” Front. Psychol., vol. 12, Jun. 2021, doi: 10.3389/fpsyg.2021.697726.
N. Mao, “The Role of Music Therapy in the Emotional Regulation and Psychological Stress Relief of Employees in the Workplace,” J. Healthc. Eng., vol. 2022, pp. 1–7, Jan. 2022, doi: 10.1155/2022/4260904.
X. Lin et al., “Virtual Reality-Based Musical Therapy for Mental Health Management,” in 2020 10th Annual Computing and Communication Workshop and Conference (CCWC), Jan. 2020, pp. 0948–0952, doi: 10.1109/CCWC47524.2020.9031157.
O. Brancatisano, A. Baird, and W. F. Thompson, “Why is music therapeutic for neurological disorders? The Therapeutic Music Capacities Model,” Neurosci. Biobehav. Rev., vol. 112, pp. 600–615, May 2020, doi: 10.1016/j.neubiorev.2020.02.008.
D. Hesmondhalgh, R. Campos Valverde, D. B. V. Kaye, and Z. Li, “The Impact of Algorithmically Driven Recommendation Systems on Music Consumption and Production: A Literature Review,” UK Cent. Data Ethics Innov. Reports, 2023, [Online]. Available: https://ssrn.com/abstract=4365916.
Z. Sarsenbayeva et al., “Does Smartphone Use Drive our Emotions or vice versa? A Causal Analysis,” in Proceedings of the 2020 CHI Conference on Human Factors in Computing Systems, Apr. 2020, pp. 1–15, doi: 10.1145/3313831.3376163.
F. O. Akinloye, O. Obe, and O. Boyinbode, “Development of an affective-based e-healthcare system for autistic children,” Sci. African, vol. 9, p. e00514, Sep. 2020, doi: 10.1016/j.sciaf.2020.e00514.
S. Vashishtha and S. Susan, “Unsupervised Fuzzy Inference System for Speech Emotion Recognition using audio and text cues (Workshop Paper),” in 2020 IEEE Sixth International Conference on Multimedia Big Data (BigMM), Sep. 2020, pp. 394–403, doi: 10.1109/BigMM50055.2020.00067.
Tundo and S. Saifullah, “Fuzzy Inference System Mamdani dalam Prediksi Produksi Kain Tenun Menggunakan Rule Berdasarkan Random Tree,” J. Teknol. Inf. dan Ilmu Komput., vol. 9, no. 3, pp. 443–452, 2022.
Š. Mrvelj and M. Matulin, “FLAME-VQA: A Fuzzy Logic-Based Model for High Frame Rate Video Quality Assessment,” Futur. Internet, vol. 15, no. 9, p. 295, Sep. 2023, doi: 10.3390/fi15090295.
S. Vashishtha, V. Gupta, and M. Mittal, “Sentiment analysis using fuzzy logic: A comprehensive literature review,” WIREs Data Min. Knowl. Discov., Jun. 2023, doi: 10.1002/widm.1509.
A. F. Claret, K. R. Casali, T. S. Cunha, and M. C. Moraes, “Automatic Classification of Emotions Based on Cardiac Signals: A Systematic Literature Review,” Ann. Biomed. Eng., Aug. 2023, doi: 10.1007/s10439-023-03341-8.
E. H. Margulis, P. C. M. Wong, C. Turnbull, B. M. Kubit, and J. D. McAuley, “Narratives imagined in response to instrumental music reveal culture-bounded intersubjectivity,” Proc. Natl. Acad. Sci., vol. 119, no. 4, Jan. 2022, doi: 10.1073/pnas.2110406119.
J. Z. Wang et al., “Unlocking the Emotional World of Visual Media: An Overview of the Science, Research, and Impact of Understanding Emotion,” Proc. IEEE, pp. 1–51, 2023, doi: 10.1109/JPROC.2023.3273517.
Y. Xia and F. Xu, “Study on Music Emotion Recognition Based on the Machine Learning Model Clustering Algorithm,” Math. Probl. Eng., vol. 2022, pp. 1–11, Oct. 2022, doi: 10.1155/2022/9256586.
R. F. Cádiz, “Creating Music With Fuzzy Logic,” Front. Artif. Intell., vol. 3, no. 59, Oct. 2020, doi: 10.3389/frai.2020.00059.
M. M. Mariani, R. Perez‐Vega, and J. Wirtz, “AI in marketing, consumer research and psychology: A systematic literature review and research agenda,” Psychol. Mark., vol. 39, no. 4, pp. 755–776, Apr. 2022, doi: 10.1002/mar.21619.
M. Barthet, G. Fazekas, and M. Sandler, “Music Emotion Recognition: From Content- to Context-Based Models,” Lect. Notes Comput. Sci., vol. 7900, pp. 228–252, 2013, doi: 10.1007/978-3-642-41248-6_13.
Z. Dair, R. Donovan, and R. O’Reilly, “Classification of Emotive Expression Using Verbal and Non Verbal Components of Speech,” in 2021 32nd Irish Signals and Systems Conference (ISSC), Jun. 2021, pp. 1–8, doi: 10.1109/ISSC52156.2021.9467869.
S. Saifullah, “The Fuzzy-AHP approach using Normalized Decision Matrix on Tourism Trend Ranking based-on Social Media,” JIKO (Jurnal Inform. dan Komputer), vol. 6, no. 2, p. 153, Sep. 2022, doi: 10.26798/jiko.v6i2.304.
Y. Fauziah, S. Saifullah, and A. S. Aribowo, “Design Text Mining for Anxiety Detection using Machine Learning based-on Social Media Data during COVID-19 pandemic,” in Proceeding of LPPM UPN “Veteran” Yogyakarta Conference Series 2020–Engineering and Science Series, 2020, vol. 1, no. 1, pp. 253–261, doi: 10.31098/ess.v1i1.117.
A. Meng, P. Ahrendt, J. Larsen, and L. K. Hansen, “Temporal Feature Integration for Music Genre Classification,” IEEE Trans. Audio, Speech Lang. Process., vol. 15, no. 5, pp. 1654–1664, Jul. 2007, doi: 10.1109/TASL.2007.899293.
S. Saifullah, “Fuzzy-AHP approach using Normalized Decision Matrix on Tourism Trend Ranking based-on Social Media,” J. Inform., vol. 13, no. 2, pp. 16–23, Jul. 2019, doi: 10.26555/jifo.v13i2.a15268.
Published
Issue
Section
License
License and Copyright Agreement
In submitting the manuscript to the journal, the authors certify that:
- They are authorized by their co-authors to enter into these arrangements.
- The work described has not been formally published before, except in the form of an abstract or as part of a published lecture, review, thesis, or overlay journal. Please also carefully read SITech's Posting Your Article Policy.
- That it is not under consideration for publication elsewhere,
- That its publication has been approved by all the author(s) and by the responsible authorities – tacitly or explicitly – of the institutes where the work has been carried out.
- They secure the right to reproduce any material that has already been published or copyrighted elsewhere.
- They agree to the following license and copyright agreement.
Copyright
Authors who publish with Computing and Information Processing Letters agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (CC BY-SA 4.0) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.
Licensing for Data Publication
Science in Information Technology Letters use a variety of waivers and licenses, that are specifically designed for and appropriate for the treatment of data:
Open Data Commons Attribution License, http://www.opendatacommons.org/licenses/by/1.0/ (default)
Creative Commons CC-Zero Waiver, http://creativecommons.org/publicdomain/zero/1.0/
Open Data Commons Public Domain Dedication and Licence, http://www.opendatacommons.org/licenses/pddl/1-0/
Other data publishing licenses may be allowed as exceptions (subject to approval by the editor on a case-by-case basis) and should be justified with a written statement from the author, which will be published with the article.
Open Data and Software Publishing and Sharing
The journal strives to maximize the replicability of the research published in it. Authors are thus required to share all data, code, or protocols underlying the research reported in their articles. Exceptions are permitted but have to be justified in a written public statement accompanying the article.
Datasets and software should be deposited and permanently archived in appropriate, trusted, general, or domain-specific repositories (please consult http://service.re3data.org and/or software repositories such as GitHub, GitLab, Bioinformatics.org, or equivalent). The associated persistent identifiers (e.g., DOI or others) of the dataset(s) must be included in the data or software resources section of the article. Reference(s) to datasets and software should also be included in the article's reference list with DOIs (where available). Where no domain-specific data repository exists, authors should deposit their datasets in a general repository such as ZENODO, Dryad, Dataverse, or others.
Small data may also be published as data files or packages supplementary to a research article; however, the authors should prefer a deposition in data repositories in all cases.