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

Instrumental Music Emotion Recognition with MFCC and KNN Algorithm

Santoso, Tri Budi (Unknown)
Dutono, Titon (Unknown)



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 Electrical & Electronics Engineering Engineering

Description

The Indonesian Journal of Computer Science (IJCS) is a bimonthly peer-reviewed journal published by AI Society and STMIK Indonesia. IJCS editions will be published at the end of February, April, June, August, October and December. The scope of IJCS includes general computer science, information ...