Text sentiment classification optimization based on a fine-tuned BERT and large language model

Sentiment classification and prediction are critical research areas in natural language processing (NLP), primarily focused on extracting sentiment tendencies and opinions from text. Previous studies have predominantly relied on sentiment dictionaries, machine learning, or deep learning methods, each of which presents two main challenges. First, sentiment dictionaries and machine learning methods heavily depend on manually constructed sentiment lexicons and features, resulting in relatively low accuracy. Second, deep learning models often suffer from a lack of interpretability and are frequently regarded as “black box” systems, making it difficult to understand their decision-making processes. To address these issues, we propose an optimization method for text sentiment classification that combines a large language model (LLM) with a deep learning BERT model. Specifically, building on the concept of ensemble learning, we perform dual sentiment determination by fine-tuning the BERT model in conjunction with the cue-based GPT-3.5-turbo LLM. This approach utilizes the LLM to provide a robust basis for sentiment judgment. Validation is conducted using two classical datasets: one from the entertainment domain and another from the marketing domain. The results demonstrate that the proposed method achieves an average accuracy exceeding 90%, outperforming the benchmark model by at least 2 percentage points. This improvement highlights the effectiveness of the proposed method in enhancing multi-domain sentiment classification performance.

Authors

Institutions

Publication Details

Journal
Journal of Computational Methods in Sciences and Engineering
Published
2025-06-29
DOI
https://doi.org/10.1177/14727978251355795
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Text sentiment classification optimization based on a fine-tuned BERT and large language model

W. Shao
Journal of Computational Methods in Sciences and Engineering
Topic Modeling
article

Text sentiment classification optimization based on a fine-tuned BERT and large language model

W. Shao
article en

Abstract

Sentiment classification and prediction are critical research areas in natural language processing (NLP), primarily focused on extracting sentiment tendencies and opinions from text. Previous studies have predominantly relied on sentiment dictionaries, machine learning, or deep learning methods, each of which presents two main challenges. First, sentiment dictionaries and machine learning methods heavily depend on manually constructed sentiment lexicons and features, resulting in relatively low accuracy. Second, deep learning models often suffer from a lack of interpretability and are frequently regarded as “black box” systems, making it difficult to understand their decision-making processes. To address these issues, we propose an optimization method for text sentiment classification that combines a large language model (LLM) with a deep learning BERT model. Specifically, building on the concept of ensemble learning, we perform dual sentiment determination by fine-tuning the BERT model in conjunction with the cue-based GPT-3.5-turbo LLM. This approach utilizes the LLM to provide a robust basis for sentiment judgment. Validation is conducted using two classical datasets: one from the entertainment domain and another from the marketing domain. The results demonstrate that the proposed method achieves an average accuracy exceeding 90%, outperforming the benchmark model by at least 2 percentage points. This improvement highlights the effectiveness of the proposed method in enhancing multi-domain sentiment classification performance.

Journal of Computational Methods in Sciences and Engineering
Beijing Foreign Studies University (CN)
Openalex Percentile: Top 93%
Topic Modeling
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.