journal article·2024-08-06Open access

FFA-BiGRU: Attention-Based Spatial-Temporal Feature Extraction Model for Music Emotion Classification

Yuping Su, Jie Chen, Ruiting Chai, Xiaojun Wu, Yumei Zhang

Applied Sciences· Volume 14· Issue 16

Abstract

Music emotion recognition is becoming an important research direction due to its great significance for music information retrieval, music recommendation, and so on. In the task of music emotion recognition, the key to achieving accurate emotion recognition lies in how to extract the affect-salient features fully. In this paper, we propose an end-to-end spatial-temporal feature extraction method named FFA-BiGRU for music emotion classification. Taking the log Mel-spectrogram of music audio as the input, this method employs an attention-based convolutional residual module named FFA, which serves as a spatial feature learning module to obtain multi-scale spatial features. In the FFA module, three group architecture blocks extract multi-level spatial features, each of which consists of a stack of multiple channel-spatial attention-based residual blocks. Then, the output features from FFA are fed into the bidirectional gated recurrent units (BiGRU) module to capture the temporal features of music further. In order to make full use of the extracted spatial and temporal features, the output feature maps of FFA and those of the BiGRU are concatenated in the channel dimension. Finally, the concatenated features are passed through fully connected layers to predict the emotion classification results. The experimental results of the EMOPIA dataset show that the proposed model achieves better classification accuracy than the existing baselines. Meanwhile, the ablation experiments also demonstrate the effectiveness of each part of the proposed method.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Music and Audio Processing · Speech and Audio Processing · Neuroscience and Music Perception

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Computer Science, Shaanxi Normal University, Xi’an 710119, China

Key Laboratory of Intelligent Computing and Service Technology for Folk Song, Ministry of Culture and Tourism, Xi’an 710119, China

Funding

Xi’an Science and Technology Plan Project, China · Fundamental Research Funds for the Central Universities · National Natural Science Foundation of China · Shaanxi Key Science and Technology Innovation Team Project

References (46)

Show source-provided references
1. Yang, Y.H., and Chen, H.H. (2011). Music Emotion Recognition, CRC Press.10.1201/b10731 ↗
2. Emotional Detection and Music Recommendation System based on User Facial Expression10.1088/1757-899X/912/6/062007 ↗
3. An Emotional Recommender System for Music10.1109/MIS.2020.3026000 ↗
4. Generating Music With Emotions10.1109/TMM.2022.3163543 ↗
5. Huang, C.F., and Huang, C.Y. (2022, January 23–25). Emotion-based AI Music Generation System with CVAE-GAN. Proceedings of the 2020 IEEE Eurasia Conference on IOT, Communication and Engineering (ECICE), Yunlin, Taiwan.10.1109/ECICE50847.2020.9301934 ↗
6. Review of data features-based music emotion recognition methods10.1007/s00530-017-0559-4 ↗
7. Donghong, H., Yanru, K., Jiayi, H., and Guoren, W. (2022). A survey of music emotion recognition. Front. Comput. Sci., 16.10.1007/s11704-021-0569-4 ↗
8. A Circumplex Model of Affect10.1037/h0077714 ↗
9. Chin, Y.H., Lin, C.H., Siahaan, E., Wang, I.C., and Wang, J.C. (2013, January 12–16). Music emotion classification using double-layer support vector machines. Proceedings of the 2013 1st International Conference on Orange Technologies (ICOT), Tainan, Taiwan.
10. Chiang, W.C., Wang, J.S., and Hsu, Y. (2014, January 10–12). A Music Emotion Recognition Algorithm with Hierarchical SVM Based Classifiers. Proceedings of the 2014 International Symposium on Computer, Consumer and Control, Taichung, Taiwan.10.1109/IS3C.2014.323 ↗
11. Dewi, K.C., and Harjoko, A. (2010, January 2–3). Kid’s song classification based on mood parameters using K-Nearest Neighbor classification method and Self Organizing Map. Proceedings of the 2010 International Conference on Distributed Frameworks for Multimedia Applications, Jogjakarta, Indonesia.
12. Wu, W., and Xie, L. (2008, January 27–30). Discriminating Mood Taxonomy of Chinese Traditional Music and Western Classical Music with Content Feature Sets. Proceedings of the 2008 Congress on Image and Signal Processing, Sanya, China.10.1109/CISP.2008.272 ↗
13. Automatic mood detection and tracking of music audio signals10.1109/TSA.2005.860344 ↗
14. Emotion recognition using a hierarchical binary decision tree approach10.1016/j.specom.2011.06.004 ↗
15. Liu, X., Chen, Q., Wu, X., Liu, Y., and Liu, Y. (2017). CNN based music emotion classification. arXiv.
16. Recognition of emotion in music based on deep convolutional neural network10.1007/s11042-019-08192-x ↗
17. Li, X.X., Tian, J.S., Xu, M.X., Ning, Y.S., and Cai, L.H. (2016, January 11–15). DBLSTM-based multi-scale fusion for dynamic emotion prediction in music. Proceedings of the 2016 IEEE International Conference on Multimedia and Expo (ICME), Seattle, WA, USA.10.1109/ICME.2016.7552956 ↗
18. Liu, H.P., Fang, Y., and Huang, Q.H. (2018, January 22–23). Music emotion recognition using a variant of recurrent neural network. Proceedings of the 2018 International Conference on Mathematics, Modeling, Simulation and Statistics Application (MMSSA 2018), Shanghai, China.10.2991/mmssa-18.2019.4 ↗
19. Yang, P.T., Kuang, S.M., Wu, C.C., and Hsu, J.L. (2020). Predicting music emotion by using convolutional neural network. HCI in Business, Government and Organizations, Springer.10.1007/978-3-030-50341-3_21 ↗
20. Weninger, F., Eyben, F., and Schuller, B.W. (2014, January 4–9). On-line continuous-time music mood regression with deep recurrent neural networks. Proceedings of the 2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Florence, Italy.10.1109/ICASSP.2014.6854637 ↗
21. Bidirectional convolutional recurrent sparse network (BCRSN): An efficient model for music emotion recognition10.1109/TMM.2019.2918739 ↗
22. Chen, Z., and Liu, C. (2021, January 4–6). Music Audio Sentiment Classification Based on CNN-BiLSTM and Attention Model. Proceedings of the 2021 4th International Conference on Robotics, Control and Automation Engineering (RCAE), Wuhan, China.10.1109/RCAE53607.2021.9638811 ↗
23. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., and Polosukhin, I. (2017, January 4–9). Attention is all you need. Proceedings of the International Conference on Neural Information Processig Systems, Long Beach, CA, USA.
24. Ma, Y., Li, X.X., Xu, M., Jia, J., and Cai, L. (2017, January 23–27). Multi-scale Context Based Attention for Dynamic Music Emotion Prediction. Proceedings of the 25th ACM international conference on Multimedia, Mountain View, CA, USA.10.1145/3123266.3123408 ↗
25. Zhang, M., Zhu, Y., Ge, N., Zhu, Y., Feng, T., and Zhang, W. (2021, January 11–12). Attention-based Joint Feature Extraction Model For Static Music Emotion Classification. Proceedings of the 2021 14th International Symposium on Computational Intelligence and Design (ISCID), Hangzhou, China.10.1109/ISCID52796.2021.00074 ↗
26. Zhao, J., Ru, G., Yu, Y., Wu, Y., Li, D., and Li, W. (2022, January 18–22). Multimodal Music Emotion Recognition with Hierarchical Cross-Modal Attention Network. Proceedings of the 2022 IEEE International Conference on Multimedia and Expo (ICME), Taipei, Taiwan, China.10.1109/ICME52920.2022.9859812 ↗
27. Huang, Z., Ji, S., Hu, Z., Cai, C., Luo, J., and Yang, X. (2022, January 18–22). ADFF: Attention Based Deep Feature Fusion Approach for Music Emotion Recognition. Proceedings of the 23rd Interspeech Conference, Incheon, Republic of Korea.10.21437/Interspeech.2022-726 ↗
28. Xiao, Y., Ruan, H., Zhao, X., Jin, P., and Cai, X. (2023, January 10–13). Music Emotion Recognition Using Multi-head Self-attention-Based Models. Proceedings of the International Conference on Intelligent Computing, Zhengzhou, China.10.1007/978-981-99-4752-2_9 ↗
29. He, K., Zhang, X., Ren, S., and Sun, J. (July, January 26). Deep Residual Learning for Image Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.
30. Zhao, J., and Yoshii, K. (November, January 31). Multimodal Multifaceted Music Emotion Recognition Based on Self-Attentive Fusion of Psychology-Inspired Symbolic and Acoustic Features. Proceedings of the 2023 Asia Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC), Taipei, Taiwan.10.1109/APSIPAASC58517.2023.10317539 ↗
31. Du, X., Yang, J., and Xie, X. (2023, January 24–26). Multimodal emotion recognition based on feature fusion and residual connection. Proceedings of the 2023 IEEE 2nd International Conference on Electrical Engineering, Big Data and Algorithms (EEBDA), Changchun, China.10.1109/EEBDA56825.2023.10090537 ↗
32. Qin, X., Wang, Z., Bai, Y., Xie, X., and Jia, H. (February, January 27). FFA-Net: Feature Fusion Attention Network for Single Image Dehazing. Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA.
33. Hung, H., Ching, J., Doh, S., Kim, N., Nam, J., and Yang, Y. (2021, January 7–12). EMOPIA: A multi-modal pop piano dataset for emotion recognition and emotion-based music generation. Proceedings of the 22nd International Society for Music Information Retrieval Conference, Online.
34. Kim, M., and Kwon, H.C. (2011, January 7–9). Lyrics-based emotion classification using feature selection by partial syntactic analysis. Proceedings of the 2011 IEEE 23rd International Conference on Tools with Artificial Intelligence, Boca Raton, FL, USA.10.1109/ICTAI.2011.165 ↗
35. Emotionally-Relevant Features for Classification and Regression of Music Lyrics10.1109/TAFFC.2016.2598569 ↗
36. Hu, X., Li, F., and Ng, J. (2018, January 23–27). On the Relationships between Music-Induced Emotion and Physiological Signals. Proceedings of the 19th International Society for Music Information Retrieval Conference, Paris, France.
37. Xu, J., Li, X., Hao, Y., and Yang, G. (2014, January 1–4). Source separation improves music emotion recognition. Proceedings of the International Conference on Multimedia Retrieval, Glasgow, UK.10.1145/2578726.2578784 ↗
38. Keelawat, P., Thammasan, N., Kijsirikul, B., and Numao, M. (2019, January 8–9). Subject-Independent Emotion Recognition During Music Listening Based on EEG Using Deep Convolutional Neural Networks. Proceedings of the 2019 IEEE 15th International Colloquium on Signal Processing & Its Applications (CSPA), Penang, Malaysia.10.1109/CSPA.2019.8696054 ↗
39. Speech emotion recognition using 3d convolutions and attention-based sliding recurrent networks with auditory front-ends10.1109/ACCESS.2020.2967791 ↗
40. Rajamani, S.T., Rajamani, K.T., and Schuller, B. (2020, January 14–15). Emotion and Theme Recognition in Music Using Attention-Based Methods. Proceedings of the MediaEval’20, Online.
41. Hu, J., Shen, L., and Sun, G. (2018, January 18–22). Squeeze-and-excitation networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA.10.1109/CVPR.2018.00745 ↗
42. A Multimodal Framework for Large-Scale Emotion Recognition by Fusing Music and Electrodermal Activity Signals10.1145/3490686 ↗
43. Deshpande, H., Singh, R., and Nam, U. (2001, January 6–8). Classification of music signals in the visual domain. Proceedings of the COST G-6 Conference on Digital Audio Effects (DAFX-01), Limerick, Ireland.
44. Won, M., Ferraro, A., Bogdanov, D., and Serra, X. (2020, January 24–26). Evaluation of CNN-based automatic music tagging models. Proceedings of the 17th Sound and Music Computing Conference, Torino, Italy.
45. Woo, S., Park, J., Lee, J.Y., and Kweon, I.S. (2018, January 8–14). CBAM: Convolutional Block Attention Module. Proceedings of the 15th European Conference on Computer Vision, Munich, Germany.10.1007/978-3-030-01234-2_1 ↗
46. Lin, Z., Feng, M., Santos, C.N.D., Yu, M., Xiang, B., Zhou, B., and Bengio, Y. (2017, January 24–26). A structured self-attentive sentence embedding. Proceedings of the International Conference on Learning Representations (ICLR), Toulon, France.