Research Article

A multi-feature approach for musical instrument classification using machine learning

Volume: 28 Number: 1 January 14, 2026
TR EN

A multi-feature approach for musical instrument classification using machine learning

Abstract

This study examines the performance of a collection of spectral audio features, including RMS Energy, Zero Crossing Rate (ZCR), and Spectral Centroid, for musical instrument classification by using the Random Forest and XGBoost classifiers. These machine learning algorithms demonstrate enhanced precision in complex classification scenarios and improve the ability to discriminate among highly correlated instrument classes. Machine learning approaches were employed in this study due to being explainable, computationally efficient, and suitable when deep learning is not feasible under the constraints of hardware or data. As part of the experimental setup, the audio features were obtained from the Philharmonia dataset, which includes 20 instrument classes. Seven different configurations were evaluated, including each feature set individually, as well as their pairwise and triplet combinations. The highest performance in terms of accuracy was obtained when all attributes were utilized: 0.91 with Random Forest and 0.93 with XGBoost. These machine learning algorithms were particularly well adapted to distinguish acoustic differences in music. Confusion matrix analysis indicated that both models worked best for instruments with clear acoustic characteristics, such as guitar and banjo. The findings suggested that the combination of multiple complementary features improves the classification performance of musical instruments.

Keywords

References

  1. J. McKay, Automatic musical instrument identification, Master’s thesis, Dublin Institute of Technology, 2011.
  2. S. Murthy and S. G. Koolagudi, Content-based music information retrieval (cb-mir) and its applications toward the music industry: A review, ACM Computing Surveys (CSUR), vol. 51, no. 3, pp. 1–46, 2018.
  3. C. Constantinescu and R. Brad, An overview of sound features in time and frequency domain, International Journal of Advanced Statistics and IT&C for Economics and Life Sciences, vol. 13, no. 1, 2023.
  4. J. Pons, O. Nieto, M. Prockup, E. Schmidt, A. Ehmann, and X. Serra, End-to-end learning for music audio tagging at scale, arXiv preprint arXiv:1711.02520, 2017.
  5. W. Qin and B. Yin, Environmental sound classification algorithm based on adaptive data padding, in 2022 International Seminar on Computer Science and Engineering Technology (SCSET), pp. 84–88, IEEE, 2022.
  6. B. Toghiani-Rizi and M. Windmark, Musical instrument recognition using their distinctive characteristics in artificial neural networks, arXiv preprint arXiv:1705.04971, 2017.
  7. P. Uruthiran and L. Ranathunga, Optimization of feature selection and classification of oriental music instruments identification, in 1st International Conference on Artificial Intelligence and Data Sciences (AiDAS), pp. 120–125, IEEE, 2019.
  8. H. Tu and Y. Li, Neural network for music instrument identification, CS 229 Machine Learning Final Project, Stanford University, 2023.

Details

Primary Language

English

Subjects

Sound and Music Computing, Machine Learning (Other)

Journal Section

Research Article

Early Pub Date

January 14, 2026

Publication Date

January 14, 2026

Submission Date

May 26, 2025

Acceptance Date

November 17, 2025

Published in Issue

Year 2026 Volume: 28 Number: 1

APA
Ezirmik, A. H., & Çiloğlugil, B. (2026). A multi-feature approach for musical instrument classification using machine learning. Balıkesir Üniversitesi Fen Bilimleri Enstitüsü Dergisi, 28(1), 299-312. https://doi.org/10.25092/baunfbed.1706872
AMA
1.Ezirmik AH, Çiloğlugil B. A multi-feature approach for musical instrument classification using machine learning. Balıkesir Üniversitesi Fen Bilimleri Enstitüsü Dergisi. 2026;28(1):299-312. doi:10.25092/baunfbed.1706872
Chicago
Ezirmik, Abdurrahim Hüseyin, and Birol Çiloğlugil. 2026. “A Multi-Feature Approach for Musical Instrument Classification Using Machine Learning”. Balıkesir Üniversitesi Fen Bilimleri Enstitüsü Dergisi 28 (1): 299-312. https://doi.org/10.25092/baunfbed.1706872.
EndNote
Ezirmik AH, Çiloğlugil B (January 1, 2026) A multi-feature approach for musical instrument classification using machine learning. Balıkesir Üniversitesi Fen Bilimleri Enstitüsü Dergisi 28 1 299–312.
IEEE
[1]A. H. Ezirmik and B. Çiloğlugil, “A multi-feature approach for musical instrument classification using machine learning”, Balıkesir Üniversitesi Fen Bilimleri Enstitüsü Dergisi, vol. 28, no. 1, pp. 299–312, Jan. 2026, doi: 10.25092/baunfbed.1706872.
ISNAD
Ezirmik, Abdurrahim Hüseyin - Çiloğlugil, Birol. “A Multi-Feature Approach for Musical Instrument Classification Using Machine Learning”. Balıkesir Üniversitesi Fen Bilimleri Enstitüsü Dergisi 28/1 (January 1, 2026): 299-312. https://doi.org/10.25092/baunfbed.1706872.
JAMA
1.Ezirmik AH, Çiloğlugil B. A multi-feature approach for musical instrument classification using machine learning. Balıkesir Üniversitesi Fen Bilimleri Enstitüsü Dergisi. 2026;28:299–312.
MLA
Ezirmik, Abdurrahim Hüseyin, and Birol Çiloğlugil. “A Multi-Feature Approach for Musical Instrument Classification Using Machine Learning”. Balıkesir Üniversitesi Fen Bilimleri Enstitüsü Dergisi, vol. 28, no. 1, Jan. 2026, pp. 299-12, doi:10.25092/baunfbed.1706872.
Vancouver
1.Abdurrahim Hüseyin Ezirmik, Birol Çiloğlugil. A multi-feature approach for musical instrument classification using machine learning. Balıkesir Üniversitesi Fen Bilimleri Enstitüsü Dergisi. 2026 Jan. 1;28(1):299-312. doi:10.25092/baunfbed.1706872