A Comparative Exploration of BERT, RNN, and GRU for Sentiment Classification

Sentiment classification tasks are a large branch of current natural language processing problems. The purpose of this task lies in determining the sentiment that the text is trying to convey given a piece of text or sentence. This technique can be widely referenced in areas such as, monitoring market opinion, protecting social security, and developing ai customer service. Currently, the most advanced solutions to the sentiment classification problem are based on Bidirectional Encoder Representations from Transformers (BERT), in order to try to research a better solution, this study will start from the bottom, first find the optimal Recurrent Neural Network (RNN) model to pave the way for future improvements. The research method is to start from one layer and keep adjusting the parameters or RNN types until the best model is found. Through an experimental study, it was found that the two-layer bidirectional Long Short-Term Memory (LSTM) performed best on the sentiment classification problem with an accuracy of 93.21%. It proves that LSTM is better than Gated Recurrent Unit (GRU) and simple RNN in understanding long text, and in the future, more datasets can be collected from other platforms, not twitter, and then the model can be trained more complexly, which will help the model to be generalized to other domains or occasions.

Authors

Institutions

Publication Details

Journal
Highlights in Science Engineering and Technology
Published
2024-12-26
DOI
https://doi.org/10.54097/3v5crt36
Citations
2
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.69
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Comparative Exploration of BERT, RNN, and GRU for Sentiment Classification

Can Zhang
2 citations
Highlights in Science Engineering and Technology
Sentiment Analysis and Opinion Mining
0.69
article

A Comparative Exploration of BERT, RNN, and GRU for Sentiment Classification

Can Zhang
article en
2 citations

Abstract

Sentiment classification tasks are a large branch of current natural language processing problems. The purpose of this task lies in determining the sentiment that the text is trying to convey given a piece of text or sentence. This technique can be widely referenced in areas such as, monitoring market opinion, protecting social security, and developing ai customer service. Currently, the most advanced solutions to the sentiment classification problem are based on Bidirectional Encoder Representations from Transformers (BERT), in order to try to research a better solution, this study will start from the bottom, first find the optimal Recurrent Neural Network (RNN) model to pave the way for future improvements. The research method is to start from one layer and keep adjusting the parameters or RNN types until the best model is found. Through an experimental study, it was found that the two-layer bidirectional Long Short-Term Memory (LSTM) performed best on the sentiment classification problem with an accuracy of 93.21%. It proves that LSTM is better than Gated Recurrent Unit (GRU) and simple RNN in understanding long text, and in the future, more datasets can be collected from other platforms, not twitter, and then the model can be trained more complexly, which will help the model to be generalized to other domains or occasions.

Highlights in Science Engineering and TechnologyVol. 120
University of Wisconsin–Madison (US)
Openalex Percentile: Top 22%
Sentiment Analysis and Opinion Mining
0.69
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.