Vol. 7 No. 1 (2026) • Articles
Open Access

Analisis Emosi dalam Lirik Lagu menggunakan Natural Language Processing

Michael Sabda Husada
Universitas Kristen Satya Wacana
Sri Yulianto J.P
Universitas Kristen Satya Wacana
Published: January 10, 2026 Pages: 137-155
Original Full-Text Article
Download published version for reading and archiving
Abstract

Music is a universal medium for expressing emotions, with song lyrics serving as a narrative component rich in affective content. This study aims to analyze the emotional landscape within popular English song lyrics collected from the Spotify platform and to examine the effectiveness of Natural Language Processing (NLP) approaches in classifying these emotions. The research corpus consists of 57,494 randomly collected song lyrics without genre restrictions. Through a comprehensive analytical pipeline---ranging from text preprocessing (case folding, normalization, cleaning, tokenization, filtering, stemming), custom lexicon-based emotion labeling, TF-IDF feature extraction, to classification using a Random Forest model---the study reveals two key findings. Empirically, song lyrics are dominated by positive emotions, with romantic (36.2%) and happy (26.2%) emerging as the main themes, followed by sad (16.3%), while angry expressions (4.4%) appear least frequently, indicating significant class imbalance. Methodologically, the proposed model demonstrates solid performance with an overall accuracy of 83.03% and a weighted avg F1 score of 0.82. However, analysis of the confusion matrix and classification report uncovers performance disparities across emotion classes: angry and energetic emotions exhibit low recall (42% and 62%, respectively), likely due to imbalanced data distribution and lexicon limitations in capturing context. In conclusion, this study not only succeeds in mapping the dominance of love- and happiness-related themes in popular song lyrics but also demonstrates that classical NLP models can achieve competitive performance. The findings additionally highlight the importance of addressing class imbalance and developing more context-rich emotion lexicons or employing deep learning models in future research, in order to capture the emotional spectrum of lyrics more evenly and comprehensively.

Article Metrics & Downloads Graph
Monthly Download Trends:
Author Biographies
Michael Sabda Husada Universitas Kristen Satya Wacana

Program Studi Teknik Informatika, Fakultas Teknologi Informasi, Universitas Kristen Satya Wacana, Kota Salatiga, Provinsi Jawa Tengah, Indonesia.

Sri Yulianto J.P Universitas Kristen Satya Wacana

Program Studi Teknik Informatika, Fakultas Teknologi Informasi, Universitas Kristen Satya Wacana, Kota Salatiga, Provinsi Jawa Tengah, Indonesia.

How to Cite
Husada, M. S., & J.P, S. Y. (2026). Analisis Emosi dalam Lirik Lagu menggunakan Natural Language Processing. Jurnal Indonesia : Manajemen Informatika Dan Komunikasi, 7(1), 137-155. https://doi.org/10.63447/jimik.v7i1.1697
License

Creative Commons Attribution 4.0 International License (CC BY 4.0)

This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License .

  • Share: You are free to copy, distribute, and transmit the work in any medium or format.
  • Adapt: You are free to remix, transform, and build upon the work for any purpose, even commercially.
  • Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
Copyright & Retention: Authors retain copyright without restrictions and grant this journal the right of first publication under an open-access model. The journal retains non-exclusive publishing rights for archiving, indexing, and scholarly dissemination.

References
Total: 19 References
  1. Abdillah, J., Asror, I., & Wibowo, Y. F. A. (2020). Emotion classification of song lyrics using Bidirectional LSTM method. Resti Journal, 4(4), 723–729. https://doi.org/10.29207/resti.v4i4.2156.
  2. Akaishi, J., Sakata, M., Yoshinaga, J., Nakano, M., Koshi, K., & Kiyota, K. (2022). Estimating the emotional information in Japanese songs using search engines. Sensors, 22(5), 1–11. https://doi.org/10.3390/s22051800.
  3. Ara, A., & Rekha, V. (2024). Enhancing music emotion classification using multi-feature approach. International Journal of Advanced Computer Science and Applications (IJACSA), 15(9), 794–803. https://doi.org/10.14569/IJACSA.2024.0150981.
  4. Ardianti, I. A. P. G., Andriyani, A. A. A. D., & Swabawa, I. B. M. S. (2023). Discourse analysis on Jiwa yang Bersedih song lyrics. Lire Journal (Journal of Linguistics and Literature), 7(2), 290–300. https://doi.org/10.33019/lire.v7i2.227.
  5. Bužić, D., & Dobša, J. (2025). Emotions in Eurovision Song Contest lyrics. 2025 MIPRO 48th ICT and Electronics Convention, 137–142. https://doi.org/10.1109/MIPRO65660.2025.11131930.
  6. Chowdary, P., Singh, B., Agarwal, R., & Alluri, V. (2024). Lyrically speaking: Exploring the link between lyrical emotions, themes and depression risk. 25th International Society for Music Information Retrieval Conference. https://doi.org/10.48550/arXiv.2408.15575.
  7. Czarnek, G., & Stillwell, D. (2022). Two is better than one: Using a single emotion lexicon can lead to unreliable conclusions. PLOS One, 17(10), 1–22. https://doi.org/10.1371/journal.pone.0275910.
  8. Gayatri, N. S. A., & Zulfiningrum, R. (2025). Kajian semiotika: Urgensi dukungan sosial dalam lirik lagu "Stay Alive" karya Bangtan Sonyeondan. Jurnal Komunikasi Universitas Garut: Hasil Pemikiran dan Penelitian, 11(1), 250–268. https://doi.org/10.52434/jk.v11i1.41490.
  9. Hutabarat, S. W., Helvira, J., Harahap, N. I., Manalu, N., Pasya, M. R., Hutauruk, R. A. R., & Amalia, N. (2025). Afiksasi dalam lirik lagu: Studi kasus album Short N’ Sweet karya Sabrina Carpenter. Jurnal Sistem Informasi, Teknik Komputer dan Teknologi Pendidikan, 5(1), 27–34. https://doi.org/10.55338/justikpen.v5i1.154.
  10. Jim, J. R., Talukder, M. A. R., Malakar, P., Kabir, M. M., Nur, K., & Mridha, M. F. (2024). Recent advancements and challenges of NLP-based sentiment analysis: A state-of-the-art review. Natural Language Processing Journal, 6, 100059. https://doi.org/10.1016/j.nlp.2024.100059.
  11. Jo, W., & Kim, M. J. (2022). Tracking emotions from song lyrics: Analyzing 30 years of K-Pop hits. Emotion, 23(6), 1658–1669. https://doi.org/10.1037/emo0001185.
  12. Mishra, N., & Chingre, S. S. (2024). Enhanced mood and theme recognition in music using lyrical sentiment analysis. International Journal for Research, 12(11), 2437–2442. https://doi.org/10.22214/ijraset.2024.65624.
  13. Mohammad, S. M. (2023). Best practices in the creation and use of emotion lexicons. Findings of the Association for Computational Linguistics: EACL, 1825–1836. https://doi.org/10.18653/v1/2023.findings-eacl.136.
  14. Ngo, G., Beard, R., & Chandra, R. (2022). Evolutionary bagging for ensemble learning. Neurocomputing, 510, 1–14. https://doi.org/10.1016/j.neucom.2022.08.055.
  15. Pratama, I. R., Cahyana, Y., & Wahiddin, D. (2025). Model machine learning untuk analisis sentimen masyarakat terhadap kenaikan PPN di media sosial X. Bulletin of Computer Science Research, 5(4), 277–286. https://doi.org/10.47065/bulletincsr.v5i4.523.
  16. Saptono, H., Achmar, Y. F., Hadi, H. S., Shiroth, S. F., Aria, L. R. P., & Alfarizqi, M. M. (2025). Implementasi deteksi intrusi aplikasi web berbasis supervised machine learning: Studi kasus LMS STT Terpadu Nurul Fikri. Decode: Jurnal Pendidikan Teknologi Informasi, 5(3), 888–902. https://doi.org/10.51454/decode.v5i3.1313.
  17. Simbolon, L., Suhadi, J., & Pratiwy, D. (2025). Exploring the experiential meaning of song lyrics: A systematic literature review. SIBATIK Journal: Jurnal Ilmiah Bidang Sosial, Ekonomi, Budaya, Teknologi, dan Pendidikan, 4(11), 3661–3672. https://doi.org/10.54443/sibatik.v4i11.3624.
  18. Sutriawan, Rustad, S., Shidik, G. F., & Pujiono. (2025). Performance evaluation of text embedding models for ambiguity classification in Indonesian news corpus: A comparative study of TF-IDF, Word2Vec, FastText, BERT, and GPT. International Information and Engineering Technology Association, 30(6), 1469–1482. https://doi.org/10.18280/isi.300606.
  19. Yusupov, K., Muminov, I., Islam, M. R., & Sahlabadi, M. (2024). Comparative analysis of machine learning and deep learning models for email spam classification using TF-IDF and word embedding techniques. International Conference on Broadband and Wireless Computing, Communication and Applications. https://doi.org/10.1007/978-3-031-76452-3.
Similar Articles

Articles sharing related keywords and machine learning classifications:

Analisis dan Perbandingan Sentimen Lirik Lagu pada Album Logic Mess dan Life Update Karya Arash Buana Menggunakan NRC Emotion Lexicon
Analisa Tweet Mahasiswa untuk Deteksi Gejala Depresi dengan Penerapan Natural Language Processing
Analisis Sentimen Teks Komentar Produk Skincare Menggunakan Model IndoBERT
Implementasi Chatbot Cuaca Berbasis SBERT dan LLM Gemini Menggunakan OpenWeather API
Aplikasi Chatbot Rekomendasi Laptop Menggunakan Natural Language Processing