Skip to main content

Research Repository

Advanced Search

Arabic Sentiment Analysis Based on Word Embeddings and Deep Learning

Elhassan, Nasrin; Varone, Giuseppe; Ahmed, Rami; Gogate, Mandar; Dashtipour, Kia; Almoamari, Hani; El-Affendi, Mohammed A.; Al-Tamimi, Bassam Naji; Albalwy, Faisal; Hussain, Amir

Authors

Nasrin Elhassan

Giuseppe Varone

Rami Ahmed

Hani Almoamari

Mohammed A. El-Affendi

Bassam Naji Al-Tamimi

Faisal Albalwy



Abstract

Social media networks have grown exponentially over the last two decades, providing the opportunity for users of the internet to communicate and exchange ideas on a variety of topics. The outcome is that opinion mining plays a crucial role in analyzing user opinions and applying these to guide choices, making it one of the most popular areas of research in the field of natural language processing. Despite the fact that several languages, including English, have been the subjects of several studies, not much has been conducted in the area of the Arabic language. The morphological complexities and various dialects of the language make semantic analysis particularly challenging. Moreover, the lack of accurate pre-processing tools and limited resources are constraining factors. This novel study was motivated by the accomplishments of deep learning algorithms and word embeddings in the field of English sentiment analysis. Extensive experiments were conducted based on supervised machine learning in which word embeddings were exploited to determine the sentiment of Arabic reviews. Three deep learning algorithms, convolutional neural networks (CNNs), long short-term memory (LSTM), and a hybrid CNN-LSTM, were introduced. The models used features learned by word embeddings such as Word2Vec and fastText rather than hand-crafted features. The models were tested using two benchmark Arabic datasets: Hotel Arabic Reviews Dataset (HARD) for hotel reviews and Large-Scale Arabic Book Reviews (LARB) for book reviews, with different setups. Comparative experiments utilized the three models with two-word embeddings and different setups of the datasets. The main novelty of this study is to explore the effectiveness of using various word embeddings and different setups of benchmark datasets relating to balance, imbalance, and binary and multi-classification aspects. Findings showed that the best results were obtained in most cases when applying the fastText word embedding using the HARD 2-imbalance dataset for all three proposed models: CNN, LSTM, and CNN-LSTM. Further, the proposed CNN model outperformed the LSTM and CNN-LSTM models for the benchmark HARD dataset by achieving 94.69%, 94.63%, and 94.54% accuracy with fastText, respectively. Although the worst results were obtained for the LABR 3-imbalance dataset using both Word2Vec and FastText, they still outperformed other researchers’ state-of-the-art outcomes applying the same dataset.

Citation

Elhassan, N., Varone, G., Ahmed, R., Gogate, M., Dashtipour, K., Almoamari, H., …Hussain, A. (2023). Arabic Sentiment Analysis Based on Word Embeddings and Deep Learning. Computers, 12(6), Article 126. https://doi.org/10.3390/computers12060126

Journal Article Type Article
Acceptance Date Jun 13, 2023
Online Publication Date Jun 19, 2023
Publication Date 2023-06
Deposit Date Jun 26, 2023
Publicly Available Date Jun 26, 2023
Journal Computers
Publisher MDPI
Peer Reviewed Peer Reviewed
Volume 12
Issue 6
Article Number 126
DOI https://doi.org/10.3390/computers12060126
Keywords long short-term memory, convolutional neural networks, Arabic Sentiment Analysis, recurrent neural networks, FastText, Word2Vec

Files




You might also like



Downloadable Citations