Source-linked AI summary
Arabic aspect based sentiment analysis using bidirectional GRU based models
Mohammed M. Abdelgwad, Taysir Hassan A Soliman, Ahmed I. Taloba, Mohamed Fawzy Farghaly
TL;DR
Arabic ABSA research is limited, and document- or sentence-level sentiment analysis cannot specify which aspects people liked or disliked. This paper proposes two GRU-based models for opinion-target extraction and aspect-polarity classification. On the evaluated tasks, the models outperform baseline research.
Problem
Arabic ABSA work is limited, while document- and sentence-level sentiment analysis cannot pinpoint opinions about particular aspects in reviews with multiple or conflicting opinions.
Source: §1 · p. 2, §2.2 · p. 6Method
The paper proposes BGRU-CNN-CRF for opinion-target extraction and IAN-BGRU for sentiment-polarity classification toward extracted aspects.
Source: §1 · pp. 3–4Results
39.7% enhancement in F1-score for opinion target extraction (T2) and 7.58% in accuracy for aspect-based sentiment polarity classification (T3) over baseline research.
Source: §1 · p. 4Takeaways & Limitations
The proposed models are reported to outperform baseline research on both evaluated Arabic ABSA tasks.
Source: §1 · p. 4
Abstract
from arXiv · showhide
Aspect-based Sentiment analysis (ABSA) accomplishes a fine-grained analysis that defines the aspects of a given document or sentence and the sentiments conveyed regarding each aspect. This level of analysis is the most detailed version that is capable of exploring the nuanced viewpoints of the reviews. The bulk of study in ABSA focuses on English with very little work available in Arabic. Most previous work in Arabic has been based on regular methods of machine learning that mainly depends on a group of rare resources and tools for analyzing and processing Arabic content such as lexicons, but the lack of those resources presents another challenge. In order to address these challenges, Deep Learning (DL)-based methods are proposed using two models based on Gated Recurrent Units (GRU) neural networks for ABSA. The first is a DL model that takes advantage of word and character representations by combining bidirectional GRU, Convolutional Neural Network (CNN), and Conditional Random Field (CRF) making up the (BGRU-CNN-CRF) model to extract the main opinionated aspects (OTE). The second is an interactive attention network based on bidirectional GRU (IAN-BGRU) to identify sentiment polarity toward extracted aspects. We evaluated our models using the benchmarked Arabic hotel reviews dataset. The results indicate that the proposed methods are better than baseline research on both tasks having 39.7% enhancement in F1-score for opinion target extraction (T2) and 7.58% in accuracy for aspect-based sentiment polarity classification (T3). Achieving F1 score of 70.67% for T2, and accuracy of 83.98% for T3.
1. Introduction
Aspect-based sentiment analysis (ABSA) links opinions to specific aspects, addressing what document- and sentence-level sentiment analysis cannot pinpoint. This study proposes GRU-based models for Arabic opinion-target extraction and aspect-polarity classification, reporting improvements over baseline research on both tasks.
1. Introduction
- Sentiment analysis determines an author's attitude toward a subject and classifies document polarity as positive, negative, or neutral.The introduction identifies corpus-based, lexicon-based, and hybrid-based approaches for Arabic sentiment analysis.Source: §1 · p. 1
- The study targets T2 opinion-target extraction and T3 aspect-polarity detection, two ABSA tasks that identify opinions associated with particular aspects.Document- and sentence-level sentiment analysis cannot precisely identify what people liked or disliked when reviews contain multiple or conflicting aspect opinions.Source: §1 · p. 2
- The BGRU-CNN-CRF model combines word and character representations to extract opinion targets, while IAN-BGRU classifies sentiment polarity toward those extracted aspects.The workflow first processes reviews sentence by sentence, then tokenizes, removes stopwords, and vectorizes each sentence before applying the models.Source: §1 · pp. 3–4
- 39.7% enhancement in F1-score for opinion target extraction (T2) and 7.58% in accuracy for aspect-based sentiment polarity classification (T3) over baseline research.The reported scores are 70.67% for T2 and 83.98% for T3.Source: §1 · p. 4
- The proposed models do not rely on handcrafted features or external resources such as lexicons, which are not widely available for Arabic content analysis.The paper notes that collecting such resources requires considerable effort.Source: §1 · p. 4
2. Related work
The related work reviews opinion-target extraction and aspect-polarity methods, then describes the limited Arabic ABSA literature. It positions the proposed GRU models against prior Arabic hotel-review approaches.
2. Related work
- The review is organized around English and Arabic ABSA studies covering opinion-target extraction and aspect-polarity tasks.These are the two principal areas treated in the section.Source: §2 · p. 4
2.1.1. Opinion Target Extraction (OTE)
- Deep recurrent networks, CNNs, and Bi-LSTM-CRF have been applied to opinion-target extraction, with reported gains from POS and domain-specific embeddings in one CNN approach.The cited studies include deep recurrent networks instead of CRF [Irsoy and Cardie, 2014], RNN variations, CNN [Da’u and Salim, 2019], and Bi-LSTM-CRF [Chen et al., 2017b].Source: §2.1.1 · p. 4
2.1.2. aspect sentiment polarity classification
- Aspect-polarity research ranges from target-dependent and attention-based LSTMs to memory and multi-attention models; BERT-based networks were reported to outperform non-BERT complex models.Prior work also describes target-context interactions, recurrent attention, and multi-hop attention for representing aspect-relevant context.Source: §2.1.2 · pp. 4–6
2.2. Arabic ABSA
- The paper describes Arabic ABSA research as limited despite the large number of Arabic speakers and the language's rich morphology.The section introduces the available studies in its following subsection.Source: §2.2 · p. 6
2.2.1. OTE and aspect sentiment polarity classification
- Prior Arabic hotel-review studies used handcrafted features or LSTM-based models; the paper investigates BGRU-CNN-CRF for extraction and IAN-BGRU for polarity.Earlier work includes supervised classifiers with morphological, syntactic, and semantic features, SVM and RNN, and Bi-LSTM-CRF and AB-LSTM-PC. The paper reports competitive results for its models and high OTE results with FastText embeddings.Source: §2.2.1 · p. 6
3. Proposed methods
The proposed methods use GRU-based models for the paper's Arabic ABSA tasks. GRU is presented as a response to training difficulties associated with vanishing and exploding gradients in recurrent neural networks.
3. Proposed methods
- Two GRU-based models are proposed: BGRU-CNN-CRF for opinion-target extraction (T2) and IAN-BGRU for aspect-polarity classification (T3).The section introduces them as the models addressing the study's research tasks.Source: §3 · p. 7
- GRU is presented as a solution to vanishing and exploding gradient problems that make recurrent neural networks harder to train.The section notes that recurrent hidden-unit activations depend on the previous step and that RNNs can process inputs of any length.Source: §3 · p. 7
- RNNs process sequential data using recurrent hidden units whose activations depend on the preceding step.The section describes their ability to process inputs of any length and remember information over time.Source: §3 · p. 7
3.1. Background
The background introduces recurrent and sequence-labeling components used in the paper’s ABSA models. GRU and bidirectional context, character-level CNN features, and CRF sequence decoding serve distinct roles.
3.1.1. Gated Recurrent Unit (GRU)
- A GRU updates its state by interpolating between the previous activation and a candidate activation, using reset and update gates.The update gate controls how much past information is carried forward and how much new memory is added; the reset gate controls how much past information is forgotten.Source: §3.1.1 · p. 7
3.1. Background
- GRU is presented as a recurrent neural network component with fewer parameters and lower memory use than LSTM.The paper states that this simpler architecture makes GRU faster than LSTM during training.Source: §3.1.1 · p. 7, §3.1 · p. 7
3.1.2. Convolutional neural network (CNN)
- CNNs provide character-level word features, including prefixes and suffixes, which are combined with other representations for the OTE model.Character embeddings are processed with convolution filters and max pooling; dropout is applied before the CNN.Source: §3.1.2 · p. 8
3.1.3. Bidirectional GRU (BGRU)
- A bidirectional GRU combines forward and reverse sequence processing to provide context from both directions.The two GRUs process the input sequence in normal and reverse time order, and their outputs are combined.Source: §3.1.3 · p. 8
3.1.4. Conditional random field (CRF)
- The CRF layer decodes the most likely sequence of aspect labels, using a transition matrix to model dependencies between adjacent tags.The paper represents aspect spans with B-Aspect, I-Aspect, and O labels.Source: §3.1.4 · p. 8
3.2. Models
The paper describes two GRU-based models for its ABSA tasks: IAN-BGRU for aspect polarity and BGRU-CNN-CRF for aspect-term extraction.
3.2.1. IAN-BGRU for polarity classification
- IAN-BGRU uses bidirectional GRU representations for a target and its context, applies attention in both directions, then concatenates the attended representations for polarity classification.The target representation guides context attention, while the context representation guides target attention; the concatenated vectors are fed to softmax.Source: §3.2.1 · p. 9
3.2.2. BGRU-CNN-CRF for aspect term extraction
- BGRU-CNN-CRF concatenates character-level CNN features with word embeddings, models context with a bidirectional GRU, and decodes label sequences with a CRF.Dropout is applied before the CNN and to the BGRU output vectors.Source: §3.2.2 · p. 10
4. Data and baseline research
The experiments use sentence-level tasks on the benchmark Arabic hotel reviews dataset, prepared for SemEval-2016 Task 5. The dataset includes annotated ABSA tuples and baseline research for comparison.
- The study focuses on sentence-level tasks, although the dataset provides both text-level and sentence-level annotations.The dataset was prepared for SemEval-2016 Task 5, a multilingual ABSA task spanning eight languages and seven domains.Source: §4 · pp. 10–11
- The dataset is supplemented with SVM and N-gram baseline research, whose results serve as task-specific baselines.Table 1 is described as presenting dataset size and distribution across the research tasks.Source: §4 · p. 11, Table 1 · p. 11
5. Experimentation and results
Both proposed models were trained and tested on the Arabic hotel reviews dataset, using a held-out validation split and separate model computations.
- 70% of the dataset was used for training, 10% for validation, and 20% for testing.Source: §5 · p. 11
- The models were trained and tested on the Arabic hotel reviews dataset using PyTorch.Source: §5 · p. 11
- Computations for each model were performed separately on a GeForce GTX 1080 Ti GPU.Source: §5 · p. 11
5.1. opinion target expression extraction task (T2)
The T2 system extracts opinion targets with a word- and character-based BGRU-CNN-CRF model. It is reported to outperform Bi-LSTM-CRF and perform close to Al-Dabet et al. (2020) with fastText embeddings.
5.1. opinion target expression extraction task (T2)
- BGRU-CNN-CRF extracts opinion targets using word and character embeddings.Source: §5.1 · p. 11
5.1.1. Evaluation method
- F1 is adopted to evaluate OTE, with the score computed from precision and recall.Source: §5.1.1 · p. 11
5.1.2. Hyperparameters Setting
- Word embeddings use fastText or AraVec Word2Vec, with 100-dimensional word embeddings and GRU states; character embeddings are 25-dimensional.Training uses batch size 16, momentum 0.9, dropout 0.5, and early stopping; the best parameters appeared at about 60 epochs.Source: §5.1.2 · pp. 11–12
5.1.3. Results
- The model replaces character-level BLSTM with CNN and the baseline LSTM with GRU, citing fewer parameters for both choices.The authors describe GRU as easier to train and learn.Source: §5.1.3 · p. 12
- With fastText embeddings, the model outperformed Bi-LSTM-CRF and achieved results close to Al-Dabet et al. (2020).The comparison is reported for the Arabic hotel reviews dataset.Source: §5.1.3 · p. 12
5.2. aspect sentiment polarity identification (T3)
The T3 evaluation compares aspect-polarity models on Arabic hotel reviews, and the authors report that IAN-BGRU achieves the best results among the methods compared. Their discussion highlights interactive target-context attention and demonstrates the model on sentences with multiple aspects and differing sentiment polarities.
5.2.1. Evaluation method
- Accuracy was adopted to evaluate aspect sentiment polarity identification, measuring the percentage of samples predicted correctly.The passage defines T and N as the correctly predicted samples and the total samples, respectively.Source: §5.2.1 · pp. 12–13
5.2.2. Hyperparameters Setting
- The IAN-BGRU used AraVec CBOW-unigram Twitter embeddings and was trained with Adam for 12 epochs, with batch size 64, dropout 0.3, and learning rate 3e−5.The reported word-embedding, attention-vector, and hidden-state dimensions were each 300; the L2-regularization weight was 2e−5.Source: §5.2.2 · pp. 13–14
5.2.3. Comparison Models
- The comparison set included an n-gram SVM baseline and systems whose reported results were adopted from prior research rather than reimplemented.The comparison used Arabic hotel reviews; INSIGHT-1 used CNN with concatenated aspect and word embeddings, while TD-LSTM modeled left and right context separately.Source: §5.2.3 · p. 14
- The comparison also included target-aware attention systems: AB-LSTM-PC integrates aspect embeddings, while IAN variants interactively model target and context using LSTM or GRU encoders.IAN-BGRU uses bidirectional GRU to model the aspect term and its context.Source: §5.2.3 · p. 14
5.2.4. Discussions
- The discussion reports that target-aware TD-LSTM outperformed LSTM, and AB-LSTM-PC stably outperformed TD-LSTM; it also links these differences to target modeling and attention.The authors describe IAN as the best-performing baseline family and report that IAN-GRU exceeded IAN-LSTM and IAN-BLSTM by about 0.5% and 0.25%, respectively.Source: §5.2.4 · pp. 14–15
- IAN-BGRU achieved the best results among the compared methods on T3, with Table 3 comparing accuracy for the proposed model, baseline, and other Arabic models.The discussion attributes IAN-BGRU's performance to two related attention networks that model context and target interactively.Source: §5.2.4 · p. 15, Table 3 · p. 15, §5.2.5 · p. 15
- MEMNET's multiple attention layers did not improve performance; it slightly exceeded AB-LSTM-PC but scored below all IAN variations.The authors suggest model complexity and the lack of a mechanism to stop attention when no useful information remains as possible reasons.Source: §5.2.4 · p. 15
5.2.5. Case study
- The case study describes IAN-BGRU correctly assigning positive sentiment to location and negative sentiment to rooms in one review.The authors also report that their model can classify polarity for a location when the review contains the shifting word “not,” without an external lexicon.Source: §5.2.5 · pp. 15–16
6. Conclusion and future work
The paper reports improved results over baseline research on Arabic hotel-review opinion target extraction and aspect-based sentiment polarity classification, and proposes transformer-based models as future work.
6. Conclusion and future work
- 39.7% enhancement in F1-score for opinion target extraction (T2) and 7.58% in accuracy for aspect-based sentiment polarity classification (T3) were reported over baseline research.The reported results were an F1 score of 70.67% for T2 and accuracy of 83.98% for T3.Source: §6 · p. 16
- The BGRU-CNN-CRF model extracts opinion targets, while IAN-BGRU identifies sentiment polarity toward the extracted aspects.The first combines word and character representations with bidirectional GRU, CNN, and CRF; the second is an interactive attention network based on bidirectional GRU.Source: §6 · p. 16
- The authors intend to apply transformer-based models to ABSA tasks in future work.Source: §6 · p. 16