古典音樂資料的特徵選取與分類器效能研究
A Study of Feature Selection and Classifier Performance for Classical Music Data
摘要
本研究旨在探討使用機器學習方法對古典音樂進行分類的效能。近年來,隨著音樂串流服務的興起,人們可以輕鬆地訪問各種音樂流派,然而,對於許多人來說,古典音樂多停留在音樂會中音樂家在舞台上彈奏樂器的畫面,亦或是音樂課本中,有談論到幾位著名的音樂家,舉如:貝多芬、莫札特、海頓等,仍然是一個相當陌生的領域。因此,本研究旨在透過 spotify API 建立一個古典音數據集,並比較不同分類器,包含邏輯回歸、隨機森林、LightGBM,堆疊集成分類器等,和參數組合優化、特徵選擇方法的效能,來提供更好的古典音樂分類模型。經實驗,結果以Random Forest、SVM、XGBoost作為基本模型、Logistic Regression作為元模型所組成的堆疊分類器效能最好,希望可以藉由實驗結果,更好地推廣和活化古典音樂市場。
The purpose of this study is to investigate the effectiveness of using machine learning techniques for classifying classical music. In recent years, with the rise of music streaming services, people have easy access to various music genres. However, classical music remains a relatively unfamiliar domain for many individuals, often limited to visuals of musicians performing on stage during concerts or mentioned in music textbooks, featuring renowned composers such as Beethoven, Mozart, and Haydn. Therefore, this research aims to establish a classical music data using the Spotify API and compare different classifiers, including logistic regression, random forest, LightGBM, and stacking ensemble classifiers, along with parameter optimization and feature selection methods, to provide an improved classical music classification model. Through experimentation, it was found that the ensemble classifier composed of Random Forest, SVM, and XGBoost as base models, with Logistic Regression as the meta-model, exhibited the best performance. The results hold the potential to enhance the promotion and revitalization of the classical music market based on the experimental outcomes.