Music Emotion Recognition with Machine Learning Based on Audio Features
Authors:
- Mehmet Bilal ErMEMehmet Bilal Er
- Emin Murat Esi̇nEEEmin Murat Esi̇n
- 7 July 2021
- journal article
- research article
- Published by Anatolian Science - Bilgisayar Bilimleri Dergisi in Computer Science
- Vol. 6 (3) , 133-144
Abstract
Müziğin dinleyicileri üzerindeki duygusal etkisini anlamak bilim, psikoloji, müzikoloji ve sanat gibi birçok disiplinin ortak çalışma alanıdır. Bu çalışmada, Türk Müziği'nden farklı örneklerin duygu durumunu tahmin etmek için akustik özelliklere dayalı bir yöntem önerilmiştir. Önerilen yöntem, seçilen müzik parçaları üzerinde ön işleme, özellik çıkarma ve sınıflandırma olmak üzere 3 adımdan oluşmaktadır. İlk adım olarak, ön işlemde sinyallerdeki gürültü giderilir ve veri setindeki tüm sinyaller eşit örnekleme frekansına getirilir. İkinci adımda, müziğin duygusal içeriğini yansıtan her sinyalden 1x34 boyutunda bir öznitelik vektörü çıkarılır. Sınıflandırıcılar eğitilmeden önce öznitelikler normalleştirilir. Son adımda, veriler Destek Vektör Makineleri (SVM), K-En Yakın Komşu (K-NN) ve Yapay Sinir Ağı (YSA) kullanılarak sınıflandırılır. Doğruluk, kesinlik, duyarlılık ve F-skoru sınıflandırma ölçütleri olarak kullanılır. Model, Türk müziği verilerinden oluşan 4 sınıflı yeni bir veri seti üzerinde test edildi. Önerilen modelden %79.30 Doğruluk, %78.77 duyarlılık, %78.94 özgüllük ve %79.03 F skoru elde edilmiştir. Understanding the emotional impact of music on its audience is a common field of study in many disciplines such as science, psychology, musicology and art. In this study, a method based on acoustic features is proposed to predict the emotion of different samples from Turkish Music. The proposed method consists of 3 steps: preprocessing, feature extraction and classification on selected music pieces. As a first step, the noise in the signals is removed in the pre-process and all the signals in the data set are brought to the equal sampling frequency. In the second step, a 1x34 size feature vector is extracted from each signal, reflecting the emotional content of the music. The features are normalized before the classifiers are trained. In the last step, the data are classified using Support Vector Machines (SVM), K-Nearest Neighbor (K-NN) and Artificial Neural Network (ANN). Accuracy, precision, sensitivity and F-score are used as classification metrics. The model was tested on a new 4-class data set consisting of Turkish music data. 79.30% Accuracy, 78.77% sensitivity, 78.94% specificity and 79.03% F-score are obtained from the proposed model.Keywords
This publication has 16 references indexed in Scilit:
- Automatic Music Mood Classification Based on Timbre and Modulation FeaturesIEEE Transactions on Affective Computing, 2015
- Music Emotion Recognition with Standard and Melodic Audio FeaturesApplied Artificial Intelligence, 2015
- Mel Frequency Cepstral Coefficients (MFCC) based speaker identification in noisy environment using wiener filter2014
- Machine Recognition of Music EmotionACM Transactions on Intelligent Systems and Technology, 2012
- Learning emotion-based acoustic features with deep belief networks2011
- Automated Music Emotion Recognition: A Systematic EvaluationJournal of New Music Research, 2010
- Product Quantization for Nearest Neighbor SearchIEEE Transactions on Pattern Analysis and Machine Intelligence, 2010
- Support vector machine in machine condition monitoring and fault diagnosisMechanical Systems and Signal Processing, 2007
- Musical genre classification of audio signalsIEEE Transactions on Speech and Audio Processing, 2002
- Experimental Studies of the Elements of Expression in MusicThe American Journal of Psychology, 1936