Education, Science, Technology, Innovation and Life
Open Access
Sign In

Fine-Tuned BERT for Sentiment Classification of Online Reviews

Download as PDF

DOI: 10.23977/autml.2026.070214 | Downloads: 1 | Views: 50

Author(s)

Hongru Li 1, Zhitao Wu 1

Affiliation(s)

1 School of Electronic and Information Engineering, University of Science and Technology Liaoning, Anshan, China

Corresponding Author

Zhitao Wu

ABSTRACT

Online review sentiment classification requires models to interpret contextual meaning, negation, and evaluative expressions that may be distributed across a document. This paper presents a fine-tuning study of BERT and compares it with TextCNN and LSTM classifiers on the public IMDB movie review dataset. The design preserves the official test partition, derives validation data from the training partition, and controls the review passage supplied to each model. BERT is adapted with a binary classification head, while the baselines use pretrained word embeddings and task-specific encoders. Learning rate, batch size, and maximum sequence length are examined alongside classification accuracy, positive-class precision, recall, F1, and inference latency. Training duration is included to expose the computational cost of contextual fine-tuning. In the experiments, BERT achieves an accuracy of 93.8% and an F1 of 93.8%, accompanied by greater training and inference costs than the baseline systems. The analysis evaluates gains associated with each complete pretrained system and examines how truncation can remove sentiment-bearing evidence. Subsequent work will address long reviews, mixed sentiment, domain transfer, and probability calibration to support customer-opinion summarization.

KEYWORDS

Online reviews; Sentiment classification; BERT; Fine tuning; Contextual representation

CITE THIS PAPER

Hongru Li, Zhitao Wu. Fine-Tuned BERT for Sentiment Classification of Online Reviews. Automation and Machine Learning (2026). Vol. 7, No. 2, 120-125. DOI: http://dx.doi.org/10.23977/autml.2026.070214.

REFERENCES

[1] Kim Y. Convolutional neural networks for sentence classification[C]//Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing. 2014: 1746-1751.
[2] Hochreiter S, Schmidhuber J. Long short-term memory[J]. Neural Computation, 1997, 9(8): 1735-1780.
[3] Vaswani A, Shazeer N, Parmar N, et al. Attention is all you need[C]//Advances in Neural Information Processing Systems. 2017: 5998-6008.
[4] Devlin J, Chang M W, Lee K, Toutanova K. BERT: Pre-training of deep bidirectional transformers for language understanding[C]//Proceedings of NAACL-HLT. 2019: 4171-4186.
[5] Pennington J, Socher R, Manning C D. GloVe: Global vectors for word representation[C]//Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing. 2014: 1532-1543.
[6] Srivastava N, Hinton G, Krizhevsky A, et al. Dropout: a simple way to prevent neural networks from overfitting[J]. Journal of Machine Learning Research, 2014, 15(1): 1929-1958.
[7] Kingma D P, Ba J. Adam: A method for stochastic optimization[C]//International Conference on Learning Representations. 2015.

Downloads: 5903
Visits: 360462

Sponsors, Associates, and Links


All published work is licensed under a Creative Commons Attribution 4.0 International License.

Copyright © 2016 - 2031 Clausius Scientific Press Inc. All Rights Reserved.