Hyperparameter Optimization of CNN Classifier for Music Genre Classification

  • Rendra Soekarta Universitas Muhammadiyah Sorong
  • Suhardi Aras Universitas Muhammadiyah Sorong
  • Ahmad Nur Aswad Universitas Muhammadiyah Sorong
Keywords: deep learning, music genre classification, GTZAN dataset

Abstract

Playing music through a digital platform that has a large database of songs requires automated classification of music genres, highlighting the need to develop a model for music genre classification that is more efficient and accurate. This study evaluated the hyperparameters in the music genre classification process using CNN in the GTZAN dataset with 30-second duration data optimized using MFCC feature extraction. The model that is formed with a time of 3 (three) seconds classifies music genres in the first 3 seconds of music. This model has a high potential for error because the first 3 seconds of initial music are varied and cannot be used as a benchmark in determining music genres. This study performed hyperparameters on batch size, epoch, and split data set variables with various scenarios. The highest precision result was obtained at 72% with a data split of 85%:15%, 32 batch sizes, and 500 epochs.

Downloads

Download data is not yet available.

References

M. A. As Sarofi, I. Irhamah, and A. Mukarromah, “Identifikasi Genre Musik dengan Menggunakan Metode Random Forest,” Jurnal Sains dan Seni ITS, vol. 9, no. 1, pp. 79–86, 2020, doi: 10.12962/j23373520.v9i1.51311.

R. Ajoodha, R. Klein, and B. Rosman, “Single-labelled Music Genre Classification Using Content-Based Features.”

N. Ndou, R. Ajoodha, and A. Jadhav, “Music genre classification: A review of deep-learning and traditional machine-learning approaches,” 2021 IEEE International IOT, Electronics and Mechatronics Conference, IEMTRONICS 2021 - Proceedings, 2021, doi: 10.1109/IEMTRONICS52119.2021.9422487.

M. Masekwameng and R. Ajoodha, “A Hybrid Method of Using Feedback from Users to Improve Music,” 2022, [Online]. Available: https://ssrn.com/abstract=4332719

T. Nkambule, “Classification of Music by Genre using Probabilistic Models and Deep Learning Models.”

M. Shah, N. Pujara, K. Mangaroliya, L. Gohil, T. Vyas, and S. Degadwala, “Music Genre Classification using Deep Learning,” in 2022 6th International Conference on Computing Methodologies and Communication (ICCMC), 2022, pp. 974–978. doi: 10.1109/ICCMC53470.2022.9753953.

F. Ahmad and Sahil, “Music genre classification using spectral analysis techniques with hybrid convolution-recurrent neural network,” International Journal of Innovative Technology and Exploring Engineering, vol. 9, no. 1, pp. 149–154, 2019, doi: 10.35940/ijitee.A3956.119119.

D. Xie, “AlexNet and ResNet for Music Genre Classification 1”.

Y. Vita Via, I. Yuniar Purbasari, and A. Putra Pratama, “Analisa Algoritma Convolution Neural Network (Cnn) Pada Klasifikasi Genre Musik Berdasar Durasi Waktu,” SCAN Jurnal Teknologi dan Informasi, vol. 17, no. 1, pp. 35–41, 2022, [Online]. Available: http://ejournal.upnjatim.ac.id/index.php/scan/article/view/3251/2003

W. Zhang, W. Lei, X. Xu, and X. Xing, “Improved music genre classification with convolutional neural networks,” Proceedings of the Annual Conference of the International Speech Communication Association, INTERSPEECH, vol. 08-12-Sept, pp. 3304–3308, 2016, doi: 10.21437/Interspeech.2016-1236.

S. Vishnupriya and K. Meenakshi, “Automatic Music Genre Classification using Convolution Neural Network,” in 2018 International Conference on Computer Communication and Informatics (ICCCI), 2018, pp. 1–4. doi: 10.1109/ICCCI.2018.8441340.

W. Suo, “Efficient Music Genre Classification with Deep Convolutional Neural Networks,” in 2022 5th International Conference on Data Science and Information Technology (DSIT), 2022, pp. 1–5. doi: 10.1109/DSIT55514.2022.9943952.

N. Purnama, “Music Genre Recommendations Based on Spectrogram Analysis Using Convolutional Neural Network Algorithm with RESNET-50 and VGG-16 Architecture,” JISA(Jurnal Informatika dan Sains), vol. 5, no. 1, pp. 69–74, 2022, doi: 10.31326/jisa.v5i1.1270.

F. M. Rammo and M. N. Al-Hamdani, “Detecting the Speaker Language Using CNN Deep Learning Algorithm,” Iraqi Journal for Computer Science and Mathematics, vol. 3, no. 1, pp. 43–52, 2022, doi: 10.52866/ijcsm.2022.01.01.005.

A. Akbar and A. Lawi, “Konferensi Nasional Ilmu Komputer (KONIK) 2021 Implementasi Algoritma Deep Artificial Neural Network Menggunakan Mel Frequency Cepstrum Coefficient Untuk Klasifikasi Audio Emosi Manusia”, [Online]. Available: https://www.kaggle.com/ejlok1/toronto-

K. Nugroho, Edy Winarno, Eri Zuliarso, and Sunardi, “Multi-Accent Speaker Detection Using Normalize Feature MFCC Neural Network Method,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 7, no. 4, pp. 832–836, Aug. 2023, doi: 10.29207/resti.v7i4.4652.

M. O. Faruk and S. Ghosh, “Developing Music Recommendation System by Integrating an MGC with Deep Learning Techniques,” Technology, Engineering & Mathematics (EPSTEM), vol. 19, 2022, [Online]. Available: www.isres.org

G. Tzanetakis and P. Cook, “Musical genre classification of audio signals,” IEEE Transactions on Speech and Audio Processing, vol. 10, no. 5, pp. 293–302, 2002, doi: 10.1109/TSA.2002.800560.

D. S. Lau and R. Ajoodha, “Music Genre Classification: A Comparative Study Between Deep Learning and Traditional Machine Learning Approaches,” Lecture Notes in Networks and Systems, vol. 217, no. 1433596, pp. 239–247, 2022, doi: 10.1007/978-981-16-2102-4_22.

S. Aras and A. Setyanto, “Deep Learning Untuk Klasifikasi Motif Batik Papua Menggunakan EfficientNet dan Trasnfer Learning,” vol. 8, no. 1, 2022.

S. Aras, A. Setyanto, and Rismayani, “Classification of Papuan Batik Motifs Using Deep Learning and Data Augmentation,” in 2022 4th International Conference on Cybernetics and Intelligent System (ICORIS), 2022, pp. 1–5. doi: 10.1109/ICORIS56080.2022.10031320.

K. Eckle and J. Schmidt-Hieber, “A comparison of deep networks with ReLU activation function and linear spline-type methods,” 2018.

R. O. Ogundokun, R. Maskeliunas, S. Misra, and R. Damaševičius, “Improved CNN Based on Batch Normalization and Adam Optimizer,” in Computational Science and Its Applications – ICCSA 2022 Workshops, O. Gervasi, B. Murgante, S. Misra, A. M. A. C. Rocha, and C. Garau, Eds., Cham: Springer International Publishing, 2022, pp. 593–604.

A. Ameh Joseph, M. Abdullahi, S. B. Junaidu, H. Hassan Ibrahim, and H. Chiroma, “Improved multi-classification of breast cancer histopathological images using handcrafted features and deep neural network (dense layer),” Intelligent Systems with Applications, vol. 14, p. 200066, May 2022, doi: 10.1016/J.ISWA.2022.200066.

Y. Martha, K. Damanik, K. Adi, and C. E. Widodo, “THE EFFECT OF EPOCH ON THE ACCURACY OF DETECTION OF LUNG CANCER,” International Journal of Innovative Research in Advanced Engineering, vol. 7, no. 8, pp. 331–337, Aug. 2020, doi: 10.26562/ijirae.2020.v0708.004.

R. Lin, “Analysis on the Selection of the Appropriate Batch Size in CNN Neural Network,” in 2022 International Conference on Machine Learning and Knowledge Engineering (MLKE), 2022, pp. 106–109. doi: 10.1109/MLKE55170.2022.00026.

M. Hu and Y.-H. F. Hu, “The Effects of Different Parameters on the Accuracy of Deep Learning Models for Predicting U.S. Citizen’s Life Expectancy,” in 2021 International Conference on Computational Science and Computational Intelligence (CSCI), 2021, pp. 105–109. doi: 10.1109/CSCI54926.2021.00016.

Published
2023-10-23
How to Cite
Soekarta, R., Aras, S., & Ahmad Nur Aswad. (2023). Hyperparameter Optimization of CNN Classifier for Music Genre Classification. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 7(5), 1205 - 1210. https://doi.org/10.29207/resti.v7i5.5319
Section
Information Technology Articles