Musical Instrument Classification

Development of an automatic recognition system based on audio spectrograms and Machine Learning algorithms.

Audio spectrogram of a musical instrument
Artistic viola
CNN for classification

Project Information

  • Category: Machine Learning
  • Course: Machine Learning - UNIKORE
  • Year: 2024
  • Dataset: Musical instruments (sampled sounds and spectrograms)
  • Technologies: Python, Librosa, Scikit-Learn, TensorFlow

Objectives and Results

The project aimed to develop a system capable of automatically recognizing musical instruments from audio files. Signals were transformed into spectrograms and processed using feature extraction techniques.

Several Machine Learning and Deep Learning models were implemented, including SVM, Random Forest, and Convolutional Neural Networks (CNN). The best model achieved 92% accuracy in classifying instruments such as guitar, piano, and violin.

This work strengthened skills in audio signal processing, supervised classification, and performance evaluation using metrics like accuracy and confusion matrix.