A multimodal approach to cross-lingual sentiment analysis with ensemble of transformer and LLM
- PMID: 38671064
- PMCID: PMC11053029
- DOI: 10.1038/s41598-024-60210-7
A multimodal approach to cross-lingual sentiment analysis with ensemble of transformer and LLM
Abstract
Sentiment analysis is an essential task in natural language processing that involves identifying a text's polarity, whether it expresses positive, negative, or neutral sentiments. With the growth of social media and the Internet, sentiment analysis has become increasingly important in various fields, such as marketing, politics, and customer service. However, sentiment analysis becomes challenging when dealing with foreign languages, particularly without labelled data for training models. In this study, we propose an ensemble model of transformers and a large language model (LLM) that leverages sentiment analysis of foreign languages by translating them into a base language, English. We used four languages, Arabic, Chinese, French, and Italian, and translated them using two neural machine translation models: LibreTranslate and Google Translate. Sentences were then analyzed for sentiment using an ensemble of pre-trained sentiment analysis models: Twitter-Roberta-Base-Sentiment-Latest, bert-base-multilingual-uncased-sentiment, and GPT-3, which is an LLM from OpenAI. Our experimental results showed that the accuracy of sentiment analysis on translated sentences was over 86% using the proposed model, indicating that foreign language sentiment analysis is possible through translation to English, and the proposed ensemble model works better than the independent pre-trained models and LLM.
Keywords: Cross-lingual communication; Ensemble with LLM; Neural machine translation; Pretrained sentiment analyzer model; Sentiment analysis.
© 2024. The Author(s).
Conflict of interest statement
The authors declare no competing interests.
Figures
References
-
- Yadav A, Vishwakarma DK. Sentiment analysis using deep learning architectures: A review. Artif. Intell. Rev. 2020;53:4335–4385. doi: 10.1007/s10462-019-09794-5. - DOI
-
- Gandhi A, Adhvaryu K, Poria S, Cambria E, Hussain A. Multimodal sentiment analysis: A systematic review of history, datasets, multimodal fusion methods, applications, challenges and future directions. Inf. Fusion. 2023;91:424–444. doi: 10.1016/j.inffus.2022.09.025. - DOI
-
- Cambria, E., Das, D., Bandyopadhyay, S. & Feraco, A. Affective computing and sentiment analysis. In A Practical Guide to Sentiment Analysis 1–10 (2017).
-
- Das, R. & Singh, T. D. Multimodal sentiment analysis: A survey of methods, trends and challenges. ACM Comput. Surv. (2023).
Grants and funding
LinkOut - more resources
Full Text Sources
