Improving sentiment classification using a RoBERTa-based hybrid model
Open Access
- 7 December 2023
- journal article
- research article
- Published by Frontiers Media SA in Frontiers in Human Neuroscience
- Vol. 17, 1292010
Abstract
Introduction: Several attempts have been made to enhance text-based sentiment analysis’s performance. The classifiers and word embedding models have been among the most prominent attempts. This work aims to develop a hybrid deep learning approach that combines the advantages of transformer models and sequence models with the elimination of sequence models’ shortcomings.Methods: In this paper, we present a hybrid model based on the transformer model and deep learning models to enhance sentiment classification process. Robustly optimized BERT (RoBERTa) was selected for the representative vectors of the input sentences and the Long Short-Term Memory (LSTM) model in conjunction with the Convolutional Neural Networks (CNN) model was used to improve the suggested model’s ability to comprehend the semantics and context of each input sentence. We tested the proposed model with two datasets with different topics. The first dataset is a Twitter review of US airlines and the second is the IMDb movie reviews dataset. We propose using word embeddings in conjunction with the SMOTE technique to overcome the challenge of imbalanced classes of the Twitter dataset.Results: With an accuracy of 96.28% on the IMDb reviews dataset and 94.2% on the Twitter reviews dataset, the hybrid model that has been suggested outperforms the standard methods.Discussion: It is clear from these results that the proposed hybrid RoBERTa–(CNN+ LSTM) method is an effective model in sentiment classification.Keywords
This publication has 32 references indexed in Scilit:
- Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) networkPhysica D: Nonlinear Phenomena, 2020
- Solving the twitter sentiment analysis problem based on a machine learning-based approachEvolutionary Intelligence, 2019
- A Sentiment analysis approach through deep learning for a movie review2018
- A review on the application of deep learning in system health managementMechanical Systems and Signal Processing, 2018
- Random Forest and Support Vector Machine based Hybrid Approach to Sentiment AnalysisProcedia Computer Science, 2018
- Natural Language Processing for Sentiment Analysis: An Exploratory Analysis on Tweets2014
- Deep Learning: Methods and ApplicationsFoundations and Trends® in Signal Processing, 2014
- Local neighbourhood extension of SMOTE for mining imbalanced data2011
- Safe-Level-SMOTE: Safe-Level-Synthetic Minority Over-Sampling TEchnique for Handling the Class Imbalanced Problem2009
- SMOTE: Synthetic Minority Over-sampling TechniqueJournal of Artificial Intelligence Research, 2002