[Paper Review] Sentiment Analysis for Sinhala Language using Deep Learning Techniques
This paper presents a comprehensive study on multi-class sentiment analysis for the low-resource Sinhala language using deep learning models, including RNN, LSTM, Bi-LSTM, hierarchical attention networks, and capsule networks. It introduces the largest publicly available Sinhala sentiment dataset with 15,059 comments annotated into four classes (POSITIVE, NEGATIVE, NEUTRAL, CONFLICT), achieving a best weighted F1-score of 59.11% using capsule-B architecture with 10-fold cross-validation.
Due to the high impact of the fast-evolving fields of machine learning and deep learning, Natural Language Processing (NLP) tasks have further obtained comprehensive performances for highly resourced languages such as English and Chinese. However Sinhala, which is an under-resourced language with a rich morphology, has not experienced these advancements. For sentiment analysis, there exists only two previous research with deep learning approaches, which focused only on document-level sentiment analysis for the binary case. They experimented with only three types of deep learning models. In contrast, this paper presents a much comprehensive study on the use of standard sequence models such as RNN, LSTM, Bi-LSTM, as well as more recent state-of-the-art models such as hierarchical attention hybrid neural networks, and capsule networks. Classification is done at document-level but with more granularity by considering POSITIVE, NEGATIVE, NEUTRAL, and CONFLICT classes. A data set of 15059 Sinhala news comments, annotated with these four classes and a corpus consists of 9.48 million tokens are publicly released. This is the largest sentiment annotated data set for Sinhala so far.
Motivation & Objective
- To address the lack of large-scale, multi-class annotated datasets for Sinhala sentiment analysis, especially beyond binary classification.
- To evaluate a broad range of deep learning architectures—ranging from standard RNNs to state-of-the-art capsule networks—for document-level sentiment classification in Sinhala.
- To explore the effectiveness of language-independent word embeddings (Word2Vec, fastText) in low-resource NLP tasks for morphologically rich languages like Sinhala.
- To provide a publicly available codebase, pre-trained embeddings, and a large-scale annotated dataset to support future research in Sinhala NLP.
Proposed method
- Constructed a new dataset of 15,059 Sinhala news comments from two online newspapers, GossipLanka and Lankadeepa, annotated into four sentiment classes: POSITIVE, NEGATIVE, NEUTRAL, and CONFLICT.
- Preprocessed text using tokenization, normalization, and removed non-Sinhala characters to reduce noise before model training.
- Employed pre-trained word embeddings using Word2Vec and fastText on a 9.48 million token unannotated corpus to improve representation learning.
- Trained and compared multiple deep learning models: RNN, LSTM, GRU, Bi-LSTM, stacked variants, CNN+GRU/LSTM/BiLSTM, HAHNN, and capsule networks (capsule-A and capsule-B).
- Applied 10-fold cross-validation and holdout validation to evaluate model performance, using weighted accuracy and F1-score as primary metrics.
- Utilized attention mechanisms in HAHNN and pose-covariant routing in capsule networks to better capture hierarchical and structural dependencies in text.
Experimental results
Research questions
- RQ1Which deep learning architectures perform best for multi-class sentiment classification in low-resource, morphologically rich languages like Sinhala?
- RQ2How does the inclusion of multi-class sentiment labels (including NEUTRAL and CONFLICT) improve the granularity and realism of sentiment analysis compared to binary classification?
- RQ3To what extent do language-independent word embeddings enhance performance in low-resource NLP tasks for Sinhala?
- RQ4How do attention mechanisms and capsule networks compare in modeling long-range dependencies and sentiment compositionality in Sinhala text?
- RQ5What are the main sources of misclassification in Sinhala sentiment analysis, and how do they relate to class imbalance and linguistic complexity?
Key findings
- The capsule-B model achieved the highest performance with a weighted F1-score of 59.11% and weighted accuracy of 63.23% under 10-fold cross-validation.
- Bi-LSTM and stacked Bi-LSTM models outperformed standard RNN and LSTM, indicating the benefit of bidirectional context modeling in Sinhala.
- The HAHNN model achieved a weighted F1-score of 59.25%, showing that hierarchical attention mechanisms can effectively model sentence and word-level sentiment cues.
- Capsule networks, particularly capsule-B, outperformed simpler architectures like RNN and basic LSTM, suggesting their potential for modeling complex syntactic and semantic relationships in low-resource languages.
- The confusion matrix revealed significant misclassification of NEUTRAL and CONFLICT classes as NEGATIVE, primarily due to class imbalance and the presence of mixed sentiment expressions.
- Despite low overall performance, the study provides a clear benchmark and comparative analysis of deep learning models, identifying capsule-B and stacked Bi-LSTM as top-performing architectures for Sinhala sentiment analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.