journal article·2022-04-20Open access

Arabic Language Opinion Mining Based on Long Short-Term Memory (LSTM)

Arief Setyanto, Arif Laksito, Fawaz Alarfaj, Mohammed Alreshoodi, Kusrini, Irwan Oyong, Mardhiya Hayaty, Abdullah Alomair, Naif Almusallam, Lilis Kurniasari

Applied Sciences· Volume 12· Issue 9

Abstract

Arabic is one of the official languages recognized by the United Nations (UN) and is widely used in the middle east, and parts of Asia, Africa, and other countries. Social media activity currently dominates the textual communication on the Internet and potentially represents people’s views about specific issues. Opinion mining is an important task for understanding public opinion polarity towards an issue. Understanding public opinion leads to better decisions in many fields, such as public services and business. Language background plays a vital role in understanding opinion polarity. Variation is not only due to the vocabulary but also cultural background. The sentence is a time series signal; therefore, sequence gives a significant correlation to the meaning of the text. A recurrent neural network (RNN) is a variant of deep learning where the sequence is considered. Long short-term memory (LSTM) is an implementation of RNN with a particular gate to keep or ignore specific word signals during a sequence of inputs. Text is unstructured data, and it cannot be processed further by a machine unless an algorithm transforms the representation into a readable machine learning format as a vector of numerical values. Transformation algorithms range from the Term Frequency–Inverse Document Frequency (TF-IDF) transform to advanced word embedding. Word embedding methods include GloVe, word2vec, BERT, and fastText. This research experimented with those algorithms to perform vector transformation of the Arabic text dataset. This study implements and compares the GloVe and fastText word embedding algorithms and long short-term memory (LSTM) implemented in single-, double-, and triple-layer architectures. Finally, this research compares their accuracy for opinion mining on an Arabic dataset. It evaluates the proposed algorithm with the ASAD dataset of 55,000 annotated tweets in three classes. The dataset was augmented to achieve equal proportions of positive, negative, and neutral classes. According to the evaluation results, the triple-layer LSTM with fastText word embedding achieved the best testing accuracy, at 90.9%, surpassing all other experimental scenarios.
Source: crossref · 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.

Affiliations

Magister of Informatics Engineering, Universitas Amikom Yogyakarta, Yogyakarta 55281, Indonesia

Faculty of Computer Science, Universitas Amikom Yogyakarta, Yogyakarta 55281, Indonesia

Department of Computer and Information Sciences, Imam Mohammad Ibn Saud Islamic University, Riyadh 11564, Saudi Arabia

Department of Natural Applied Science, Applied College, Qassim University, Buraydah 52571, Saudi Arabia

Departemen of Electrical Engineering, Universitas Nahdlatul Ulama Yogyakarta, Yogyakarta 55162, Indonesia

Funding

The Deanship of Scientific Research at Imam Mohammad Ibn Saud Islamic University

References (48)

Show source-provided references
1. Sentiment analysis based on improved pre-trained word embeddings10.1016/j.eswa.2018.08.044 ↗
2. New avenues in opinion mining and sentiment analysis10.1109/MIS.2013.30 ↗
3. Hubert, R.B., Estevez, E., Maguitman, A., and Janowski, T. (2018, January 30). Examining government-citizen interactions on twitter using visual and sentiment analysis. Proceedings of the 19th Annual International Conference on Digital Government Research: Governance in the Data Age, Delft, The Netherlands.10.1145/3209281.3209356 ↗
4. Noor, N.H.M., Sapuan, S., and Bond, F. (2011, January 16–18). Creating the open wordnet Bahasa. Proceedings of the 25th Pacific Asia Conference on Language, Information and Computation, Singapore.
5. Building large arabic multi-domain resources for sentiment analysis
6. BiSAL—A bilingual sentiment analysis lexicon to analyze Dark Web forums for cyber security10.1016/j.diin.2015.07.006 ↗
7. Badaro, G., Baly, R., Hajj, H., Habash, N., and El-Hajj, W. (2014, January 25). A Large Scale Arabic Sentiment Lexicon for Arabic Opinion Mining. Proceedings of the EMNLP 2014 Workshop on Arabic Natural Langauge Processing (ANLP), Doha, Qatar.10.3115/v1/W14-3623 ↗
8. Eskander, R., and Rambow, O. (2015, January 17–21). SLSA: A sentiment lexicon for Standard Arabic. Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, Lisbon, Portugal.10.18653/v1/D15-1304 ↗
9. Sentiment analysis using recurrent neural network-lstm in bahasa Indonesia
10. Gelbukh, A. (2015). Computational Linguistics and Intelligent Text Processing. Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), Proceedings of the 16th International Conference, CICLing 2015, Cairo, Egypt, 14–20 April 2015, Springer.10.1007/978-3-319-18117-2 ↗
11. Lexicon-based approach outperforms Supervised Machine Learning approach for Urdu Sentiment Analysis in multiple domains10.1016/j.tele.2018.08.003 ↗
12. A statistical interpretation of term specificity and its application in retrieval10.1108/eb026526 ↗
13. Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013, January 2–4). Efficient estimation of word representations in vector space. Proceedings of the 1st International Conference on Learning Representations ICLR 2013, Scottsdale, AZ, USA.
14. Enriching Word Vectors with Subword Information10.1162/tacl_a_00051 ↗
15. Pennington, J., Socher, R., and Manning, C.D. (2014, January 25–29). GloVe: Global Vectors for Word Representation. Proceedings of the Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar.10.3115/v1/D14-1162 ↗
16. Sentiment analysis in Arabic: A review of the literature10.1016/j.asej.2017.04.007 ↗
17. Arabic natural language processing: An overview
18. Darwish, K. (2015). Arabizi Detection and Conversion to Arabic. arXiv.10.3115/v1/W14-3629 ↗
19. Alharbi, B., Alamro, H., Alshehri, M., Khayyat, Z., Kalkatawi, M., Jaber, I.I., and Zhang, X. (2020). ASAD: A Twitter-based Benchmark Arabic Sentiment Analysis Dataset. arXiv.
20. Deep transfer learning baselines for sentiment analysis in Russian10.1016/j.ipm.2020.102484 ↗
21. A Sentiment Treebank and Morphologically Enriched Recursive Deep10.1145/3086576 ↗
22. Ranked WordNet graph for Sentiment Polarity Classification in Twitter10.1016/j.csl.2013.04.001 ↗
23. Kouloumpis, E., Wilson, T., and Moore, J. (2011, January 17–21). Twitter Sentiment Analysis: The Good the Bad and the OMG!. Proceedings of the Fifth International AAAI Conference on Weblogs and Social Media, Barcelona, Spain.
24. Liu, B., Blasch, E., Chen, Y., Shen, D., and Chen, G. (2013, January 6–9). Scalable sentiment classification for Big Data analysis using Naïve Bayes Classifier. Proceedings of the IEEE International Conference on Big Data, Silicon Valley, CA, USA.10.1109/BigData.2013.6691740 ↗
25. A review of sentiment analysis research in Arabic language10.1016/j.future.2020.05.034 ↗
26. Sentiment Analysis Challenges of Informal Arabic Language
27. Aly, M., and Atiya, A. (2013, January 4–9). LABR: A large scale arabic book reviews dataset. Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics, Sofia, Bulgaria.
28. Abdulla, N.A., Ahmed, N.A., Shehab, M.A., and Al-Ayyoub, M. (2013, January 3–5). Arabic Sentiment Analysis: Lexicon-based and Corpus-based. Proceedings of the 2013 IEEE Jordan Conference on Applied Electrical Engineering and Computing Technologies (AEECT), Amman, Jordan.10.1109/AEECT.2013.6716448 ↗
29. Nabil, M., Aly, M., and Atiya, A.F. (2015, January 17–21). ASTD: Arabic sentiment tweets dataset. Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, Lisbon, Portugal.10.18653/v1/D15-1299 ↗
30. Comparative Evaluation of Sentiment Analysis Methods Across Arabic Dialects10.1016/j.procs.2017.10.118 ↗
31. Lexicon-basedmethods for sentiment analysis10.1162/COLI_a_00049 ↗
32. Abdulla, N., Majdalawi, R., Mohammed, S., Al-Ayyoub, M., and Al-Kabi, M. (2014, January 27–29). Automatic lexicon construction for arabic sentiment analysis. Proceedings of the 2014 International Conference on Future Internet of Things and Cloud, Barcelona, Spain.10.1109/FiCloud.2014.95 ↗
33. Lexicon-based sentiment analysis of Arabic tweets Mahmoud Al-Ayyoub * and Safa Bani Essa Izzat Alsmadi10.1504/IJSNM.2015.072280 ↗
34. Lexicon-based sentiment analysis: Comparative evaluation of six sentiment lexicons10.1177/0165551517703514 ↗
35. Document-level sentiment classification: An empirical comparison between SVM and ANN10.1016/j.eswa.2012.07.059 ↗
36. Altowayan, A.A., and Elnagar, A. (2017, January 11–14). Improving Arabic sentiment analysis with sentiment-specific embeddings. Proceedings of the 2017 IEEE International Conference on Big Data (Big Data), Boston, MA, USA.10.1109/BigData.2017.8258460 ↗
37. Hierarchical Classifiers for Multi-Way Sentiment Analysis of Arabic Reviews
38. Alayba, A.M., Palade, V., England, M., and Iqbal, R. (2017, January 3–5). Arabic language sentiment analysis on health services. Proceedings of the International Workshop on Arabic Script Analysis and Recognition (ASAR), Nancy, France.10.1109/ASAR.2017.8067771 ↗
39. Cho, K., van Merrienboer, B., Bahdanau, D., and Bengio, Y. (2014, January 25). On the Properties of Neural Machine Translation: Encoder–Decoder Approaches. Proceedings of the SSST-8, Eighth Workshop on Syntax, Semantics and Structure in Statistical Translation, Doha, Qatar.10.3115/v1/W14-4012 ↗
40. A Hybrid CNN-LSTM Model for Improving Accuracy of Movie Reviews Sentiment Analysis10.1007/s11042-019-07788-7 ↗
41. Deep learning approaches for Arabic sentiment analysis10.1007/s13278-019-0596-4 ↗
42. Sentiment Analysis of Arabic Tweets using Deep Learning10.1016/j.procs.2018.10.466 ↗
43. ArAutoSenti: Automatic annotation and new tendencies for sentiment classification of Arabic messages10.1007/s13278-020-00688-x ↗
44. Deep learning CNN–LSTM framework for Arabic sentiment analysis using textual information shared in social networks10.1007/s13278-020-00668-1 ↗
45. Understanding inverse document frequency: On theoretical arguments for IDF10.1108/00220410410560582 ↗
47. Grave, E., Bojanowski, P., Gupta, P., Joulin, A., and Mikolov, T. (2019). Learning word vectors for 157 languages. arXiv.
48. Kingma, D.P., and Ba, J.L. (2014). Adam: A method for stochastic optimization. arXiv.