Enhancing Arabic Sentiment Analysis with Pre-Trained CAMeLBERT: A Case Study on Noisy Texts
Source abstract
Abstract
Dialectal Arabic text classification (DA-TC) provides a mechanism for performing sentiment analysis on recent Arabic social media leading to many challenges owing to the natural morphology of the Arabic language and its wide range of dialect variations. The availability of annotated datasets is limited, and preprocessing of the noisy content is even more challenging, sometimes resulting in the removal of important cues of sentiment from the input. To overcome such problems, this study investigates the applicability of using transfer learning based on pre-trained transformer models to classify sentiment in Arabic texts with high accuracy. Specifically, it uses the CAMeLBERT model finetuned for the Multi-Domain Arabic Resources for Sentiment Analysis (MARSA) dataset containing more than 56,000 manually annotated tweets annotated across political, social, sports, and technology domains. The proposed method avoids extensive use of preprocessing and shows that raw data provides better results because they tend to retain more linguistic features. The fine-tuned CAMeLBERT model produces state-of-the-art accuracy of 92%, precision of 91.7%, recall of 92.3%, and F1-score of 91.5%, outperforming standard machine learning models and ensemble-based/deep learning techniques. Our performance comparisons against other pre-trained models, namely AraBERTv02-twitter and MARBERT, show that transformer-based architectures are consistently the best suited when dealing with noisy Arabic texts. This work leads to a strong remedy for the problems in Arabic sentiment analysis and provides recommendations on easy tuning of the pre-trained models to adapt to challenging linguistic features and domain-specific tasks.
Source: openalex_inverted_index · Quality: baseline
Research context
OpenAlex topics: Sentiment Analysis and Opinion Mining · Advanced Text Analysis Techniques · Topic Modeling
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
References (34)
Show source-provided references
1. Towards harnessing based learning algorithms for tweets sentiment analysis
2. Sentiment analysis in Arabic tweets
3. Sentiment difficulty in aspect-based sentiment analysis10.3390/math11224647 ↗
4. Sentiment analysis of Arabic tweets using deep learning10.1016/j.procs.2018.10.466 ↗
5. BERT-based model for aspect-based sentiment analysis for analyzing Arabic open-ended survey responses: a case study10.1109/ACCESS.2023.3348342 ↗
6. Sentiment classification using convolutional neural networks10.3390/app9112347 ↗
7. Yin Q. Three-class text sentiment analysis based on LSTM. arXiv:2412.17347v1. 2024.
8. Deep learning models for sentiment analysis in Arabic
9. Comparison between deep learning models and traditional machine learning approaches for facial expression recognition in ageing adults10.1007/s11390-020-9665-4 ↗
10. A review of sentiment analysis research in Arabic language10.1016/j.future.2020.05.034 ↗
11. MARSA: multi-domain Arabic resources for sentiment analysis10.1109/ACCESS.2021.3120746 ↗
12. Improving sentiment analysis in Arabic using word representation
13. Obeid · Proceedings of the Twelfth Language Resources and Evaluation Conference; 2020 May 11–16; Marseille, France
14. Sentiment analysis using stacked gated recurrent unit for Arabic tweets10.1109/ACCESS.2021.3114313 ↗
15. Unveiling sentiments: a comprehensive analysis of Arabic Hajj-related tweets from 2017–2022 utilizing advanced AI models10.3390/bdcc8010005 ↗
16. Capturing public concerns about coronavirus using Arabic tweets: an NLP-driven approach
17. Surface and deep features ensemble for sentiment analysis of Arabic tweets10.1109/ACCESS.2019.2924314 ↗
18. Sentiment analysis of Arabic course reviews of a Saudi university using support vector machine10.3390/app132312539 ↗
19. Improving sentiment domain adaptation for Arabic using an unsupervised self-labeling framework10.1016/j.ipm.2023.103338 ↗
20. Emotion analysis of Arabic tweets using deep learning approach10.1186/s40537-019-0252-x ↗
21. Deep learning for emotion analysis in Arabic tweets10.1186/s40537-021-00523-w ↗
22. A comparative study of effective approaches for Arabic sentiment analysis10.1016/j.ipm.2020.102438 ↗
23. Switch-transformer sentiment analysis model for Arabic dialects that utilizes a mixture of experts mechanism10.3390/math12020242 ↗
24. ChatGPT across Arabic twitter: a study of topics, sentiments, and sarcasm10.3390/data8110171 ↗
25. Arabic sentiment analysis and sarcasm detection using probabilistic projections-based variational switch transformer10.1109/ACCESS.2023.3289715 ↗
26. Improving Arabic sentiment analysis using LSTM based on word embedding models10.1142/S2196888823500069 ↗
27. Twitter sentiment analysis using deep learning models
28. Improving the performance of sentiment analysis of tweets containing fuzzy sentiment using the feature ensemble model10.1109/ACCESS.2019.2963702 ↗
29. Devlin J, Chang MW, Lee K, Toutanova K. BERT: pre-training of deep bidirectional transformers for language understanding. arXiv:1810.04805v2. 2019.
30. Inoue G, Alhafni B, Baimukan N, Bouamor H, Habash N. The interplay of variant, size, and task type in Arabic pre-trained language models. arXiv:2103.06678v2. 2021.
31. Aldhafeeri L. CAMelBERT [Internet]. [cited 2024 Oct 19]. Available from: https://github.com/Lama-Aldhafeeri/CAMelBERT.
32. ABMM: Arabic BERT-mini model for hate-speech detection on social media10.3390/electronics12041048 ↗
33. Bishop · Pattern recognition and machine learning · 2006 · 778
34. Loshchilov I, Hutter F. Decoupled weight decay regularization. arXiv:1711.05101v3. 2019.