Skip to main navigation Skip to search Skip to main content

Optimizing BERT for Sentiment Classification of Amazon Product Reviews: A Study on Class Imbalance and Misclassification Analysis

  • Mahidol University
  • Tokyo City University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

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.

Original languageEnglish
Title of host publication2025 20th International Joint Symposium on Artificial Intelligence and Natural Language Processing, iSAI-NLP 2025
PublisherInstitute of Electrical and Electronics Engineers Inc.
ISBN (Electronic)9798331502171
DOIs
Publication statusPublished - 2025
Event20th International Joint Symposium on Artificial Intelligence and Natural Language Processing, iSAI-NLP 2025 - Hybrid, Phuket, Thailand
Duration: 12 Nov 202514 Nov 2025

Publication series

Name2025 20th International Joint Symposium on Artificial Intelligence and Natural Language Processing, iSAI-NLP 2025

Conference

Conference20th International Joint Symposium on Artificial Intelligence and Natural Language Processing, iSAI-NLP 2025
Country/TerritoryThailand
CityHybrid, Phuket
Period12/11/2514/11/25

Keywords

  • Amazon Reviews
  • BERT
  • Class Imbalance
  • Sentiment Analysis
  • Weighted Loss

Fingerprint

Dive into the research topics of 'Optimizing BERT for Sentiment Classification of Amazon Product Reviews: A Study on Class Imbalance and Misclassification Analysis'. Together they form a unique fingerprint.

Cite this