Improvement of neural network approaches for musical compositions genre classification with ensembling
DOI:
https://doi.org/10.21303/2461-4262.2026.004060Keywords:
neural networks, artificial intelligence, parameters adjusting, genre classification, audio featuresAbstract
The object of this research is automatic genre classification of musical creativity. The problem of genre identification of music files was solved using neural networks.
Calculation methods of time, frequency, and time-frequency audio features were explored, which represent different aspects of an audio signal. Performed productivity analysis of their usage as input data for the multilayer perceptron training in genre classification. Two models of neural networks were designed, which were getting sets of 57 and 117 features as input data respectively. Their hyperparameters were determined automatically by a module Optuna, that uses intellectual search strategies with a tree-structured Parzen estimator.
The results show that effectiveness of training in case of fixating of the training, validation and testing sets depends on initial network weights and an input data vector dimension. For increasing prediction stability and classification quality, an ensemble technique was proposed. It involves additional processing of several neural networks results trained with different initial weights with the hard voting, soft voting and Borda count methods.
Unlike popular techniques of usage convolutional and recurrent neural networks, as well as combined architectures for processing spectrograms as images, described strategies of training a multilayer perceptron based on audio features demonstrated a different approach. Their implementation contributed to a significant calculation difficulty reduction while keeping high classification quality.
The applied methods allow performing musical files automatic genre classification in implementing appropriate program complexes.
The scientific novelty of the proposed approach consists of the combined application of an extended 117-dimensional vector of time, frequency, and time-frequency audio features, automatic neural network architecture search, and ensembling of multilayer perceptrons trained with different initial weights. It allowed increasing the average classification accuracy on the GTZAN (named after its author G. Tzanetakis) dataset from 85.3% for a single model to 87.5% with soft voting, which is at the level of computationally heavier convolutional and combined architectures (85–89%), while the obtained model contains only 427,171 trainable parameters, occupies 1.75 MB of memory, and requires about 43,000 operations per single forward pass.
The practical component of the research is the developed specialized software in the Python programming language using the PyTorch, Scikit-learn, Librosa, and Matplotlib libraries. It is advisable to implement the proposed models in server-side and cloud modules of music streaming and recommendation services for automatic structuring of musical catalogs, as well as in mobile applications for music education.
Downloads
References
Shreyas, D. K., Srivatsa, N. J., Vishwas, H. K., Venkataramanan, V., Kaliprasad, C. S. (2023). A Review on Neural Networks and its Applications. Journal of Computer Technology & Applications, 14 (2), 59–70. https://doi.org/10.37591/jocta.v14i2.1062
Goodfellow, I., Bengio, Y., Courville, A. (2016). Deep learning. MIT Press. Available at: https://www.deeplearningbook.org
Molina, E., Parraga-Alava, J. (2024). Redes Neuronales Artificiales en la Resolución de Problemas de Clasificación: Una Revisión Sistemática de la Literatura. Enfoque UTE, 15 (4), 1–10. https://doi.org/10.29019/enfoqueute.1058
Mienye, I. D., Swart, T. G. (2024). A Comprehensive Review of Deep Learning: Architectures, Recent Advances, and Applications. Information, 15 (12), 755. https://doi.org/10.3390/info15120755
Shen, J., Tao, M., Qu, Q., Tao, D., Rui, Y. (2019). Toward efficient indexing structure for scalable content-based music retrieval. Multimedia Systems, 25 (6), 639–653. https://doi.org/10.1007/s00530-019-00613-z
Shin, Y., Ranjan, K., Kowalski, M. C., Yoon, J. (2025). Toward personalized AI-powered recommender systems to support users’ daily music choice experiences. International Journal of Human-Computer Studies, 203, 103574. https://doi.org/10.1016/j.ijhcs.2025.103574
Furini, M., Fragnelli, F. (2024). Social music discovery: an ethical recommendation system based on friend’s preferred songs. Multimedia Tools and Applications, 84 (14), 13469–13483. https://doi.org/10.1007/s11042-024-19505-0
Mycka, J., Mańdziuk, J. (2024). Artificial intelligence in music: recent trends and challenges. Neural Computing and Applications, 37 (2), 801–839. https://doi.org/10.1007/s00521-024-10555-x
Luo, X. (2023). Automatic Music Genre Classification based on CNN and LSTM. Highlights in Science, Engineering and Technology, 39, 61–66. https://doi.org/10.54097/hset.v39i.6494
Asanah, N., Pratama, I. (2025). Deep Learning Approach for Music Genre Classification using Multi-Feature Audio Representations. Sistemasi, 14 (5), 2045. https://doi.org/10.32520/stmsi.v14i5.5369
Jain, S., Yadav, S., Prabir, P., Sundar, S. (2021). Music information retrieval and classification using deep learning. International Research Journal of Engineering and Technology (IRJET), 8 (06), 1059–1066. Available at: https://www.irjet.net/archives/V8/i6/IRJET-V8I6195.pdf
Mounika, K. S., Deyaradevi, S., Swetha, K., Vanitha, V. (2021). Music Genre Classification Using Deep Learning. 2021 International Conference on Advancements in Electrical, Electronics, Communication, Computing and Automation (ICAECA), 1–7. https://doi.org/10.1109/icaeca52838.2021.9675685
Hu, Y., Mogos, G. (2022). Music genres classification by deep learning. Indonesian Journal of Electrical Engineering and Computer Science, 25 (2), 1186. https://doi.org/10.11591/ijeecs.v25.i2.pp1186-1198
Umale, A., Mehul, Bhandw, P., Bagwan, S., Patil, S. M. (2023). Music genre classification. International Journal of Advanced Research in Science, Communication and Technology (IJARSCT), 3 (13), 414–425. Available at: https://ijarsct.co.in/A10781.pdf
Dr Reeja, S. R., Ishfaq Yaseen, P. (2022). Intelligent music genre classification using CNN. IJSTE – International Journal of Science Technology & Engineering, 8 (10), 7–12. Available at: https://www.ijste.org/Article.php?manuscript=IJSTEV8I10003
Ashraf, M., Abid, F., Din, I. U., Rasheed, J., Yesiltepe, M., Yeo, S. F., Ersoy, M. T. (2023). A Hybrid CNN and RNN Variant Model for Music Classification. Applied Sciences, 13 (3), 1476. https://doi.org/10.3390/app13031476
Zhang, A., Lipton, Z. C., Li, M., Smola, A. (2023). Dive into deep learning. Cambridge University Press. Available at: https://www.amazon.com/Dive-into-Learning-Aston-Zhang/dp/1009389432/
He, K., Zhang, X., Ren, S., Sun, J. (2015). Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification. 2015 IEEE International Conference on Computer Vision (ICCV), 1026–1034. https://doi.org/10.1109/iccv.2015.123
Hagan, M. T., Demuth, H. B., Beale, M. H. (2014). Neural network design. PWS Publishing. Available at: https://people.vts.su.ac.rs/~pmiki/AI/NNDesign.pdf
Nielsen, M. (2013). Neural networks and deep learning. Available at: http://neuralnetworksanddeeplearning.com
Tzanetakis, G., Cook, P. (2002). Musical genre classification of audio signals. IEEE Transactions on Speech and Audio Processing, 10 (5), 293–302. https://doi.org/10.1109/tsa.2002.800560
Zheng, J., Oussalah, M. (2006). Automatic system for music genre classification. Available at: https://www.academia.edu/17227319/Automatic_System_for_Music_Genre_Classification
Harte, C., Sandler, M., Gasser, M. (2006). Detecting harmonic change in musical audio. Proceedings of the 1st ACM Workshop on Audio and Music Computing Multimedia, 21–26. https://doi.org/10.1145/1178723.1178727
Hornik, K., Stinchcombe, M., White, H. (1989). Multilayer feedforward networks are universal approximators. Neural Networks, 2 (5), 359–366. https://doi.org/10.1016/0893-6080(89)90020-8
Akiba, T., Sano, S., Yanase, T., Ohta, T., Koyama, M. (2019). Optuna. Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2623–2631. https://doi.org/10.1145/3292500.3330701
Bergstra, J., Bardenet, R., Bengio, Y., Kegl, B. (2011). Algorithms for hyper-parameter optimization. Advances in Neural Information Processing Systems, 24. Available at: https://proceedings.neurips.cc/paper/2011/file/86e8f7ab32cfd12577bc2619bc635690-Paper.pdf
Watanabe, S. (2023). Tree-structured Parzen Estimator: Understanding its algorithm components and their roles for better empirical performance. arXiv. https://doi.org/10.48550/arXiv.2304.11127
Dolhikh, A. O., Baibuz, O. G. (2022). Information technology of ensembles forecasting using parallel computing. Scientific Notes of Taurida National V.I. Vernadsky University. Series: Technical Sciences, 1, 79–86. https://doi.org/10.32838/2663-5941/2022.1/13
Simic, M., Aibin, M. (2025). Hard vs. soft voting classifiers. Available at: https://www.baeldung.com/cs/hard-vs-soft-voting-classifiers
Drotár, P., Gazda, M., Vokorokos, L. (2019). Ensemble feature selection using election methods and ranker clustering. Information Sciences, 480, 365–380. https://doi.org/10.1016/j.ins.2018.12.033
Manconi, A., Armano, G., Gnocchi, M., Milanesi, L. (2022). A Soft-Voting Ensemble Classifier for Detecting Patients Affected by COVID-19. Applied Sciences, 12 (15), 7554. https://doi.org/10.3390/app12157554
Sydorova, M., Baybuz, O., Verba, O., Pidhornyi, P. (2021). Information technology for trajectory data mining. Science and Innovation, 17 (3), 78–86. https://doi.org/10.15407/scine17.03.078
Shyshkanova, G., Zaytseva, T., Frydman, O. (2017). Mobile technologies make education a part of everyday life. Information and Learning Science, 118 (11/12), 570–582. https://doi.org/10.1108/ils-03-2017-0019
Downloads
Published
Versions
- 2026-09-30 (Version of Record 1.0)
Data Availability Statement
The manuscript has connected data in the data storage.
Funding Statement
The research was conducted without financial support.
Issue
Section
License
Copyright (c) 2026 Yevgeniy Suleymanov (Author); Oleg Baybuz (Author); Tetyana Zaytseva (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
Our journal abides by the Creative Commons CC BY copyright rights and permissions for open access journals.
Authors, who are published in this journal, agree to the following conditions:
1. The authors reserve the right to authorship of the work and pass the first publication right of this work to the journal under the terms of a Creative Commons CC BY, which allows others to freely distribute the published research with the obligatory reference to the authors of the original work and the first publication of the work in this journal.
2. The authors have the right to conclude separate supplement agreements that relate to non-exclusive work distribution in the form in which it has been published by the journal (for example, to upload the work to the online storage of the journal or publish it as part of a monograph), provided that the reference to the first publication of the work in this journal is included.
