Indonesian Journal of Computer Science
Vol. 12 No. 1 (2023): Indonesian Journal of Computer Science Volume 12. No. 1 (2023)

Instrumental Music Emotion Recognition with MFCC and KNN Algorithm

Tri Budi Santoso (Politeknik Elektronika Negeri Surabaya)
Titon Dutono (Politeknik Elektronika Negeri Surabaya)



Article Info

Publish Date
28 Feb 2023

Abstract

Every piece of music contains emotion in every sound presented. Detection of the music emotion is quite difficult to do because the emotions felt are subjective. Based on this problem, it is necessary to have an automatic classification system to detect the emotions produced in music. In this paper, an explanation of the result to develop an emotional classification system of instrumental music. This system described the process starting with the receiving an input in the form of a music file in the format wav. Furthermore, the feature extraction process is carried out using Mel-Frequency Cepstral Coefficients (MFCC). The result of the extraction of such features are used in the classification process using the K-Nearest Neighbor (K-NN). The system produced output in the form of happy, relaxed, and sad emotions. The output of the system has a classification achieved an accuracy of 97.5% for the value of k = 1, reaching an accuracy of 95% for the value of k = 2.95% and for k = 3, reaching an accuracy of up to 90%.

Copyrights © 2023






Journal Info

Abbrev

ijcs

Publisher

Subject

Computer Science & IT Decision Sciences, Operations Research & Management Electrical & Electronics Engineering Engineering Industrial & Manufacturing Engineering

Description

The scope of IJCS includes general computer science, information system, information technology, artificial intelligence, big data, industrial revolution 4.0, and general ...