Utterance-Level Text Emotion Classification on MELD: A Performance and Inference-Efficiency Comparison of BERT-Base and DistilBERT
DOI:
https://doi.org/10.21063/jtif.2026.V14.2.947Kata Kunci:
BERT-Base, Conversational Dialogue, DistilBERT, Emotion Detection, Transformer, MELDAbstrak
Text-based emotion detection presents a significant challenge in the development of modern interactive systems, given the lack of non-verbal cues in digital communication. This study evaluates two Transformer-based models, namely BERT-Base and DistilBERT, in the task of single-label multi-class classification emotion classification using the Multimodal EmotionLines Dataset, which consists of multi-utterance conversations from the TV series Friends. The research focuses on the models’ performance in understanding emotions from individual text-based utterances. BERT-Base is known for its high accuracy in capturing semantic context but requires substantial computational resources. In contrast, DistilBERT is a lightweight version offering better computational efficiency, though its performance relative to BERT-Base in the context of emotion detection needs further investigation. This study involved data collection and preprocessing, model training with consistent hyperparameter settings, and evaluation using accuracy, precision, recall, and F1-score metrics. Each utterance was classified independently without conversational context. BERT-Base achieved 65% accuracy, a macro-F1 score of 0.39, and an inference time of 9.448 ms, while DistilBERT achieved 63% accuracy, a macro-F1 score of 0.40, and an inference time of 5.238 ms. These results indicate that DistilBERT provides comparable classification performance with approximately 44.6% lower inference latency, although its suitability for resource-constrained devices requires further evaluation.
Referensi
[1] J. Wang and C. Zhang, “Cross-modality fusion with EEG and text for enhanced emotion detection in English writing,” Front. Neurorobotics, vol. 18, Jan. 2025, doi: 10.3389/fnbot.2024.1529880.
[2] S. Poria, D. Hazarika, N. Majumder, G. Naik, E. Cambria, and R. Mihalcea, “MELD: A Multimodal Multi-Party Dataset for Emotion Recognition in Conversations,” in Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, A. Korhonen, D. Traum, and L. Màrquez, Eds., Florence, Italy: Association for Computational Linguistics, Jul. 2019, pp. 527–536. doi: 10.18653/v1/P19-1050.
[3] F. Mohammad et al., “Text Augmentation-Based Model for Emotion Recognition Using Transformers,” Comput. Mater. Contin., vol. 76, no. 3, pp. 3523–3547, 2023, doi: 10.32604/cmc.2023.040202.
[4] J. Zhao et al., “Multimodal Feature Fusion Method for Unbalanced Sample Data in Social Network Public Opinion,” Sensors, vol. 22, no. 15, p. 5528, Jan. 2022, doi: 10.3390/s22155528.
[5] D. A. Dharma and A. Zahra, “Emotion Recognition on Multimodal with Deep Learning and Ensemble,” Int. J. Adv. Comput. Sci. Appl., vol. 13, no. 12, 2022, doi: 10.14569/IJACSA.2022.0131278.
[6] S. Mustavi Maheen, M. Rahman Faisal, Md. R. Rahman, and Md. S. Karim, “Alternative non-BERT model choices for the textual classification in low-resource languages and environments,” in Proceedings of the Third Workshop on Deep Learning for Low-Resource Natural Language Processing, C. Cherry, A. Fan, G. Foster, G. (Reza) Haffari, S. Khadivi, N. (Violet) Peng, X. Ren, E. Shareghi, and S. Swayamdipta, Eds., Hybrid: Association for Computational Linguistics, Jul. 2022, pp. 192–202. doi: 10.18653/v1/2022.deeplo-1.20.
[7] E. Michael, G. M. Rose-Mary Owusuaa, T. Kate, A. Peter, P. O. Kwame, and B. A. Linda, “Sentiment analysis and classification of Ghanaian football tweets from the 2022 FIFA World Cup,” Indones. J. Electr. Eng. Comput. Sci., vol. 34, no. 1, pp. 497–507, Apr. 2024, doi: 10.11591/ijeecs.v34.i1.pp497-507.
[8] D. Cortiz, “Exploring Transformers models for Emotion Recognition: a comparision of BERT, DistilBERT, RoBERTa, XLNET and ELECTRA,” in Proceedings of the 2022 3rd International Conference on Control, Robotics and Intelligent System, in CCRIS ’22. New York, NY, USA: Association for Computing Machinery, Oct. 2022, pp. 230–234. doi: 10.1145/3562007.3562051.
[9] M. H. Mozhdehi and A. E. Moghadam, “Textual emotion detection utilizing a transfer learning approach,” J. Supercomput., vol. 79, no. 12, pp. 13075–13089, Aug. 2023, doi: 10.1007/s11227-023-05168-5.
[10] A. Igali, A. Abdrakhman, Y. Torekhan, and P. Shamoi, “Tracking Emotional Dynamics in Chat Conversations: A Hybrid Approach using DistilBERT and Emoji Sentiment Analysis,” Aug. 03, 2024, arXiv: arXiv:2408.01838. doi: 10.48550/arXiv.2408.01838.
[11] F. Makhmudov, A. Kultimuratov, and Y.-I. Cho, “Enhancing Multimodal Emotion Recognition through Attention Mechanisms in BERT and CNN Architectures,” Appl. Sci., vol. 14, no. 10, p. 4199, Jan. 2024, doi: 10.3390/app14104199.
[12] D. Ghosal, N. Majumder, S. Poria, N. Chhaya, and A. Gelbukh, “DialogueGCN: A Graph Convolutional Neural Network for Emotion Recognition in Conversation,” in Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), K. Inui, J. Jiang, V. Ng, and X. Wan, Eds., Hong Kong, China: Association for Computational Linguistics, Nov. 2019, pp. 154–164. doi: 10.18653/v1/D19-1015.
[13] D. Ghosal, N. Majumder, A. Gelbukh, R. Mihalcea, and S. Poria, “COSMIC: COmmonSense knowledge for eMotion Identification in Conversations,” in Findings of the Association for Computational Linguistics: EMNLP 2020, T. Cohn, Y. He, and Y. Liu, Eds., Online: Association for Computational Linguistics, Nov. 2020, pp. 2470–2481. doi: 10.18653/v1/2020.findings-emnlp.224.
[14] D. Hu, L. Wei, and X. Huai, “DialogueCRN: Contextual Reasoning Networks for Emotion Recognition in Conversations,” in Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), C. Zong, F. Xia, W. Li, and R. Navigli, Eds., Online: Association for Computational Linguistics, Aug. 2021, pp. 7042–7052. doi: 10.18653/v1/2021.acl-long.547.
[15] P. Pereira, H. Moniz, and J. P. Carvalho, “Deep emotion recognition in textual conversations: a survey,” Artif. Intell. Rev., vol. 58, no. 1, p. 10, Nov. 2024, doi: 10.1007/s10462-024-11010-y.
[16] H. Zou and Z. Wang, “A semi-supervised short text sentiment classification method based on improved Bert model from unlabelled data,” J. Big Data, vol. 10, no. 1, p. 35, Mar. 2023, doi: 10.1186/s40537-023-00710-x.
[17] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” in Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), J. Burstein, C. Doran, and T. Solorio, Eds., Minneapolis, Minnesota: Association for Computational Linguistics, Jun. 2019, pp. 4171–4186. doi: 10.18653/v1/N19-1423.
[18] Y. Chang, “Multilingual sentiment analysis during the pandemic using deep learning models,” Appl. Comput. Eng., vol. 43, pp. 284–293, Feb. 2024, doi: 10.54254/2755-2721/43/20230847.
[19] M. S. Islam and L. Zhang, “A Review on BERT: Language Understanding for Different Types of NLP Task,” Jan. 26, 2024, Preprints: 2024011857. doi: 10.20944/preprints202401.1857.v1.
[20] X. Xu, Y. Chang, J. An, and Y. Du, “Chinese text classification by combining Chinese-BERTology-wwm and GCN,” PeerJ Comput. Sci., vol. 9, p. e1544, Aug. 2023, doi: 10.7717/peerj-cs.1544.
[21] R. S. Barbon and A. T. Akabane, “Towards Transfer Learning Techniques—BERT, DistilBERT, BERTimbau, and DistilBERTimbau for Automatic Text Classification from Different Languages: A Case Study,” Sensors, vol. 22, no. 21, p. 8184, Jan. 2022, doi: 10.3390/s22218184.
[22] B. P. Kumar, M. S. Ahmed, and M. Sadanandam, “DistilBERT: A Novel Approach to Detect Text Generated by Large Language Models (LLM),” Feb. 01, 2024, Research Square. doi: 10.21203/rs.3.rs-3909387/v1.
[23] V. Sanh, L. Debut, J. Chaumond, and T. Wolf, “DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter,” Mar. 01, 2020, arXiv: arXiv:1910.01108. doi: 10.48550/arXiv.1910.01108.
[24] D. Gifu and C. Silviu-Vasile, “AI vs. Human: Decoding Text Authenticity with Transformers,” Jul. 25, 2024, Preprints: 2024072014. doi: 10.20944/preprints202407.2014.v1.
[25] S. Kumar, S. Deep, and P. Kalra, “Enhancing Customer Service in Banking with AI: Intent Classification Using Distilbert,” Int. J. Curr. Sci. Res. Rev., vol. 07, no. 05, May 2024, doi: 10.47191/ijcsrr/V7-i5-32.
[26] S. Bunrit, V. N. Kerdprasop, and K. Kerdprasop, “Systematic Configuration for Hyperparameters Optimization in Transferring of CNN Model to Disaster Events Classification from UAV Images,” J. Image Graph., vol. 11, no. 3, pp. 263–270, Sep. 2023, doi: 10.18178/joig.11.3.263-270.
[27] J. a Ilemobayo et al., “Hyperparameter Tuning in Machine Learning: A Comprehensive Review,” J. Eng. Res. Rep., vol. 26, no. 6, pp. 388–395, Jun. 2024, doi: 10.9734/jerr/2024/v26i61188.
[28] A. Tharwat, “Classification assessment methods,” Appl. Comput. Inform., vol. 17, no. 1, pp. 168–192, Jul. 2020, doi: 10.1016/j.aci.2018.08.003.
[29] G. Naidu, T. Zuva, and E. M. Sibanda, “A Review of Evaluation Metrics in Machine Learning Algorithms,” in Artificial Intelligence Application in Networks and Systems, R. Silhavy and P. Silhavy, Eds., Cham: Springer International Publishing, 2023, pp. 15–25. doi: 10.1007/978-3-031-35314-7_2.
Unduhan
Diterbitkan
Terbitan
Bagian
Lisensi
Hak Cipta (c) 2026 Hilqudz Dzikri, Arrie Kurniawardhani

Artikel ini berlisensiCreative Commons Attribution-ShareAlike 4.0 International License.
Jurnal ini dilisensikan berdasarkan Lisensi Internasional Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0).
Penulis memegang hak cipta dan memberikan jurnal hak penerbitan pertama.
Karya tersebut dapat dibagikan dan diadaptasi, bahkan untuk tujuan komersial, selama penghargaan yang sesuai diberikan dan setiap kreasi baru dilisensikan dengan ketentuan yang sama.
