TY - GEN
T1 - Optimizing BERT for Sentiment Classification of Amazon Product Reviews
T2 - 20th International Joint Symposium on Artificial Intelligence and Natural Language Processing, iSAI-NLP 2025
AU - Korsakpaisarn, Ornjira
AU - Noraset, Thanapon
AU - Lapamnuaypol, Jirayus
AU - Jin'no, Kenya
N1 - Publisher Copyright:
© 2025 IEEE.
PY - 2025
Y1 - 2025
N2 - This paper presents a custom BERT-based sentiment classification pipeline for Amazon product reviews. Reviews are grouped into three sentiment classes - bad (1-2 stars), normal (3 stars), and good (4-5 stars). Two practical challenges are addressed: the semantic ambiguity of the neutral ('normal') class and skewed class distributions that bias prediction toward majority categories. In particular, the underrepresentation of neutral reviews often yields models that favor the dominant classes, limiting effectiveness in real applications. To mitigate these issues, stratified sampling and class-weighted cross-entropy are applied while fine-tuning bert-base-uncased. A moderate emphasis on the normal class increases its recall and F1 without significantly lowering overall accuracy, according to multi-run trials across four weight settings.
AB - This paper presents a custom BERT-based sentiment classification pipeline for Amazon product reviews. Reviews are grouped into three sentiment classes - bad (1-2 stars), normal (3 stars), and good (4-5 stars). Two practical challenges are addressed: the semantic ambiguity of the neutral ('normal') class and skewed class distributions that bias prediction toward majority categories. In particular, the underrepresentation of neutral reviews often yields models that favor the dominant classes, limiting effectiveness in real applications. To mitigate these issues, stratified sampling and class-weighted cross-entropy are applied while fine-tuning bert-base-uncased. A moderate emphasis on the normal class increases its recall and F1 without significantly lowering overall accuracy, according to multi-run trials across four weight settings.
KW - Amazon Reviews
KW - BERT
KW - Class Imbalance
KW - Sentiment Analysis
KW - Weighted Loss
UR - https://www.scopus.com/pages/publications/105032731380
U2 - 10.1109/iSAI-NLP66160.2025.11320736
DO - 10.1109/iSAI-NLP66160.2025.11320736
M3 - Conference contribution
AN - SCOPUS:105032731380
T3 - 2025 20th International Joint Symposium on Artificial Intelligence and Natural Language Processing, iSAI-NLP 2025
BT - 2025 20th International Joint Symposium on Artificial Intelligence and Natural Language Processing, iSAI-NLP 2025
PB - Institute of Electrical and Electronics Engineers Inc.
Y2 - 12 November 2025 through 14 November 2025
ER -