Deep Learning in Sentiment Analysis: A comparative analysis between traditional models and BERT.
Year: 2025
Type: dissertation
Abstract: Sentimental analysis has gained importance in natural language processing, with applications that span from monitoring consumer opinion to corporate and public policy decision-making. Its origins date back to opinion research in the early 20th century, and with the emergence of blogs, social media, and online reviews in the mid-2000s, it has regained its popularity. Since then, sentiment analysis has progressed beyond manual keyword counting and now includes machine learning classifiers, including deep learning models like LSTM, CNN, and transformer-based architectures like BERT. However, there are still many obstacles to overcome, even with these developments. Traditional approaches often struggle with analyzing complex linguistic occurrences, such as sarcasm, denial, and the existence of multiple sentiments in a single statement. Additionally, the lack of high-quality annotated datasets for Aspect-Based Sentiment Analysis (ABSA) makes it harder for models to generalize across languages and domains. Therefore, two research questions are the main focus of this dissertation. Firstly, it takes into account the performance of deep learning architectures such as CNN, LSTM, and BERT in sentiment analysis tasks. Secondly, it explores how BERT can be adjusted to handle ABSA more effectively, specifically with regards to multi-aspect sentiments, sarcasm, and negation. A comparative experimental framework was created using several benchmark datasets in order to address these problems. The fine-tuning of BERT was done using a pre-trained model while CNN and LSTM were trained from scratch. The evaluation metrics used to measure performance included accuracy, precision, recall, F1-score, macro-F1, weighted-F1. The findings were statistically compared using the Autorank framework, since it ensures a solid and reasonable comparison across models while providing insights into the unique advantages and disadvantages of each architecture. The results show that BERT consistently performs well across datasets, balancing precision and recall across sentiment classifications, despite its higher computational costs. CNN is beneficial when speed is crucial, but LSTM is a strong substitute in resource-constrained situations, offering a reasonable balance between accuracy and efficiency. Moreover, applying BERT to the SemEval dataset for ABSA showed that it can handle multiple-aspect sentiments like sarcasm and negation, which highlights its suitability for fine-grained sentiment analysis tasks.
Author: Inês Isabel Moreira da Silva
Institution: Universidade do Porto
Language: English
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7113588046
