User comments on clothing websites offer valuable feedback for both potential customers and apparel companies. However, manually analyzing large comment sections is time-consuming. Therefore, this study explores the use of a machine learning model based on bidirectional encoder representations from transformers (BERT) for sentiment analysis of these comments. Given the challenge of optimizing model performance, which is non-deterministic polynomial hard (NP-hard), a hybrid firefly algorithm (FA) for hyperparameters’ tuning challenge is introduced. This optimizer is applied to an adaptive boosting (AdaBoost) classifier, achieving an accuracy of 86.9%. Obtained results are compared to other common metaheuristics algorithms, and proposed hybrid optimizer demonstrated superior performance, making it an effective approach for improving sentiment analysis models. Besides capturing accuracy, other metrics, such as f1-score, precision, and recall per each class, were also observed.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Optimizing Sentiment Analysis on Clothing Reviews Using a BERT-Based Model and Firefly Algorithm for Hyperparameter Tuning

  • Stanislava Kozakijevic,
  • Luka Jovanovic,
  • Miodrag Zivkovic,
  • Milos Mravik,
  • Milos Antonijevic,
  • Nebojsa Bacanin,
  • Jasmina Perisic

摘要

User comments on clothing websites offer valuable feedback for both potential customers and apparel companies. However, manually analyzing large comment sections is time-consuming. Therefore, this study explores the use of a machine learning model based on bidirectional encoder representations from transformers (BERT) for sentiment analysis of these comments. Given the challenge of optimizing model performance, which is non-deterministic polynomial hard (NP-hard), a hybrid firefly algorithm (FA) for hyperparameters’ tuning challenge is introduced. This optimizer is applied to an adaptive boosting (AdaBoost) classifier, achieving an accuracy of 86.9%. Obtained results are compared to other common metaheuristics algorithms, and proposed hybrid optimizer demonstrated superior performance, making it an effective approach for improving sentiment analysis models. Besides capturing accuracy, other metrics, such as f1-score, precision, and recall per each class, were also observed.